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*$",
|
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"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue