0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-18 06:11:03 +00:00

Added codeblock latex/stext support

For 
This commit is contained in:
Dan Brown 2022-05-30 18:41:40 +01:00
parent 16e023985d
commit 7c597a05f6
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
2 changed files with 4 additions and 0 deletions
resources/js

View file

@ -25,6 +25,7 @@ import 'codemirror/mode/ruby/ruby';
import 'codemirror/mode/rust/rust';
import 'codemirror/mode/shell/shell';
import 'codemirror/mode/sql/sql';
import 'codemirror/mode/stex/stex';
import 'codemirror/mode/toml/toml';
import 'codemirror/mode/vb/vb';
import 'codemirror/mode/vbscript/vbscript';
@ -59,6 +60,7 @@ const modeMap = {
js: 'javascript',
jl: 'julia',
julia: 'julia',
latex: 'text/x-stex',
lua: 'lua',
md: 'markdown',
mdown: 'markdown',
@ -83,6 +85,7 @@ const modeMap = {
rs: 'rust',
shell: 'shell',
sh: 'shell',
stext: 'text/x-stex',
bash: 'shell',
toml: 'toml',
sql: 'text/x-sql',