diff --git a/bower.json b/bower.json index ed12f2a1..ce3c3116 100644 --- a/bower.json +++ b/bower.json @@ -16,7 +16,7 @@ "stacktrace": "~0.6.2", "requirejs-text": "~2.0.10", "bootstrap-tour": "~0.7.1", - "pagedown-extra": "https://github.com/jmcmanus/pagedown-extra.git#4484dd6696c82f1880b264bd610947f6f1cbdfb6", + "pagedown-extra": "https://github.com/jmcmanus/pagedown-extra.git#ea782c3d11eb78f57d00aa819527338996a70721", "crel": "https://github.com/KoryNunn/crel.git#8dbda04b129fc0aec01a2a080d1cab26816e11c1", "waitForImages": "https://github.com/alexanderdickson/waitForImages.git#~1.4.2", "to-markdown": "https://github.com/benweet/to-markdown.git#jquery", diff --git a/public/res/extensions/markdownSectionParser.js b/public/res/extensions/markdownSectionParser.js index 6f6f781e..271cced2 100644 --- a/public/res/extensions/markdownSectionParser.js +++ b/public/res/extensions/markdownSectionParser.js @@ -24,7 +24,7 @@ define([ if(_.some(markdownExtra.config.extensions, function(extension) { return extension == "fenced_code_gfm"; })) { - regexp = '^```.*\\n[\\s\\S]*?\\n```|' + regexp; // Fenced block delimiters + regexp = '^```[^`\\n]*\\n[\\s\\S]*?\\n```|' + regexp; // Fenced block delimiters } } if(mathJax.enabled) {