Fixed latex syntax highlighting. Fixes #555

This commit is contained in:
benweet 2014-10-12 13:04:41 +01:00
parent 0d2f649320
commit af05cb3a75

View File

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