Fixed latex syntax highlighting. Fixes #555
This commit is contained in:
parent
0d2f649320
commit
af05cb3a75
@ -120,7 +120,7 @@ Prism.languages.md = (function() {
|
||||
}
|
||||
};
|
||||
md['latex block'] = {
|
||||
pattern: /\\?\\begin\{[a-z]*\*?\}[\s\S]*?\\?\\end\{[a-z]*\*?\}/g,
|
||||
pattern: /\\?\\begin\{([a-z]*\*?)\}[\s\S]*?\\?\\end\{\1\}/g,
|
||||
inside: {
|
||||
"keyword": /\\?\\(begin|end)/,
|
||||
lf: lf,
|
||||
|
Loading…
Reference in New Issue
Block a user