From af05cb3a752d32ea0d287f06d5e4b8b2b0084268 Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 12 Oct 2014 13:04:41 +0100 Subject: [PATCH] Fixed latex syntax highlighting. Fixes #555 --- public/res/libs/prism-markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/res/libs/prism-markdown.js b/public/res/libs/prism-markdown.js index ac31ca1d..60ea229a 100644 --- a/public/res/libs/prism-markdown.js +++ b/public/res/libs/prism-markdown.js @@ -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,