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