diff options
Diffstat (limited to 'public/js/extra.js')
-rw-r--r-- | public/js/extra.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index a5be4251..6febd880 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -8,6 +8,7 @@ require('prismjs/components/prism-go') require('prismjs/components/prism-typescript') require('prismjs/components/prism-jsx') require('prismjs/components/prism-makefile') +require('prismjs/components/prism-gherkin') import Prism from 'prismjs' import hljs from 'highlight.js' @@ -510,7 +511,7 @@ export function finishView (view) { result = { value: code } - } else if (reallang === 'haskell' || reallang === 'go' || reallang === 'typescript' || reallang === 'jsx') { + } else if (reallang === 'haskell' || reallang === 'go' || reallang === 'typescript' || reallang === 'jsx' || reallang === 'gherkin') { code = S(code).unescapeHTML().s result = { value: Prism.highlight(code, Prism.languages[reallang]) |