More permissive code block labels. Fixes #600
This commit is contained in:
parent
394209c4e5
commit
1cc2363f0e
@ -16,7 +16,7 @@
|
|||||||
"stacktrace": "~0.6.2",
|
"stacktrace": "~0.6.2",
|
||||||
"requirejs-text": "~2.0.10",
|
"requirejs-text": "~2.0.10",
|
||||||
"bootstrap-tour": "~0.7.1",
|
"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",
|
"crel": "https://github.com/KoryNunn/crel.git#8dbda04b129fc0aec01a2a080d1cab26816e11c1",
|
||||||
"waitForImages": "https://github.com/alexanderdickson/waitForImages.git#~1.4.2",
|
"waitForImages": "https://github.com/alexanderdickson/waitForImages.git#~1.4.2",
|
||||||
"to-markdown": "https://github.com/benweet/to-markdown.git#jquery",
|
"to-markdown": "https://github.com/benweet/to-markdown.git#jquery",
|
||||||
|
@ -24,7 +24,7 @@ define([
|
|||||||
if(_.some(markdownExtra.config.extensions, function(extension) {
|
if(_.some(markdownExtra.config.extensions, function(extension) {
|
||||||
return extension == "fenced_code_gfm";
|
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) {
|
if(mathJax.enabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user