better support to Github style code blocks in markdown

Issue #1131
This commit is contained in:
nightwing 2012-12-08 11:11:39 +04:00
commit f227cc67f0

View file

@ -78,7 +78,7 @@ var MarkdownHighlightRules = function() {
github_embed("css", "css-"),
{ // Github style block
token : "support.function",
regex : "^```[a-zA-Z]*\\s*$",
regex : "^```\\s*[a-zA-Z]*(?:{.*?\\})?\\s*$",
next : "githubblock"
}, { // block quote
token : "string",