Added codeblock latex/stext support

For #3458
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

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',

View File

@ -23,6 +23,7 @@
<a refs="code-editor@languageLink" data-lang="Java">Java</a>
<a refs="code-editor@languageLink" data-lang="JavaScript">JavaScript</a>
<a refs="code-editor@languageLink" data-lang="JSON">JSON</a>
<a refs="code-editor@languageLink" data-lang="LaTeX">LaTeX</a>
<a refs="code-editor@languageLink" data-lang="Lua">Lua</a>
<a refs="code-editor@languageLink" data-lang="MarkDown">MarkDown</a>
<a refs="code-editor@languageLink" data-lang="Nginx">Nginx</a>