Parse inline markdown within blockquotes in ACE
This commit is contained in:
parent
bacc1a7408
commit
da118e5074
@ -63,7 +63,7 @@ var MarkdownHighlightRules = function() {
|
||||
next : "githubblock"
|
||||
}, { // block quote
|
||||
token : "blockquote",
|
||||
regex : "^\\s*>[ ].+$",
|
||||
regex : "^\\s*>[ ]",
|
||||
next : "blockquote"
|
||||
}, { // HR * - _
|
||||
token : "constant",
|
||||
@ -73,6 +73,9 @@ var MarkdownHighlightRules = function() {
|
||||
token : "markup.list",
|
||||
regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
|
||||
next : "listblock-start"
|
||||
}, { // Escaped $
|
||||
token : "text",
|
||||
regex : "\\\\\\$",
|
||||
}, { // Math inline
|
||||
token : ["constant.language.escape", "keyword", "constant.language.escape"],
|
||||
regex : "(\\$)(.*)(\\$)"
|
||||
@ -164,8 +167,9 @@ var MarkdownHighlightRules = function() {
|
||||
regex : "^\\s*$",
|
||||
next : "start"
|
||||
}, {
|
||||
token : "blockquote",
|
||||
regex : ".+"
|
||||
include : "basic", noEscape: true
|
||||
}, {
|
||||
defaultToken : "blockquote"
|
||||
} ],
|
||||
|
||||
"githubblock" : [ {
|
||||
|
@ -1038,7 +1038,6 @@ ul,ol {
|
||||
|
||||
.ace_blockquote {
|
||||
color: @primary-color-lightest;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.ace_code {
|
||||
@ -1050,6 +1049,11 @@ ul,ol {
|
||||
color: @primary-color;
|
||||
}
|
||||
|
||||
.ace_link {
|
||||
color: @primary-color;
|
||||
background-color: @code-bg;
|
||||
}
|
||||
|
||||
.ace_description {
|
||||
color: @primary-color-lightest;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user