Specify type of string (strong, emphasis, blockquote)
This commit is contained in:
parent
07d82837b4
commit
f18a57126d
1 changed files with 3 additions and 3 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue