X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/1e41546e51cbb11540af09a814c05c80ed172b30..refs/pull/3630/head:/resources/js/code.mjs diff --git a/resources/js/code.mjs b/resources/js/code.mjs index 5d4186dd0..eca941f1c 100644 --- a/resources/js/code.mjs +++ b/resources/js/code.mjs @@ -39,6 +39,7 @@ import 'codemirror/addon/scroll/scrollpastend'; // Value can be a mode string or a function that will receive the code content & return the mode string. // The function option is used in the event the exact mode could be dynamic depending on the code. const modeMap = { + bash: 'shell', css: 'css', c: 'text/x-csrc', java: 'text/x-java', @@ -88,7 +89,6 @@ const modeMap = { shell: 'shell', sh: 'shell', stext: 'text/x-stex', - bash: 'shell', toml: 'toml', ts: 'text/typescript', typescript: 'text/typescript',