Specify type of string (strong, emphasis, blockquote)

This commit is contained in:
Sawyer Hollenshead 2013-11-11 17:09:52 -05:00
commit f18a57126d

View file

@ -82,7 +82,7 @@ var MarkdownHighlightRules = function() {
regex : "^```\\s*[a-zA-Z]*(?:{.*?\\})?\\s*$", regex : "^```\\s*[a-zA-Z]*(?:{.*?\\})?\\s*$",
next : "githubblock" next : "githubblock"
}, { // block quote }, { // block quote
token : "string", token : "string.blockquote",
regex : "^>[ ].+$", regex : "^>[ ].+$",
next : "blockquote" next : "blockquote"
}, { // HR * - _ }, { // HR * - _
@ -119,10 +119,10 @@ var MarkdownHighlightRules = function() {
'(\\s*"' + escaped('"') + '"\\s*)?' + // "title" '(\\s*"' + escaped('"') + '"\\s*)?' + // "title"
"(\\))" // ) "(\\))" // )
}, { // strong ** __ }, { // strong ** __
token : "string", token : "string.strong",
regex : "([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)" regex : "([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"
}, { // emphasis * _ }, { // emphasis * _
token : "string", token : "string.emphasis",
regex : "([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)" regex : "([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"
}, { // }, { //
token : ["text", "url", "text"], token : ["text", "url", "text"],