Parse inline markdown within blockquotes in ACE

This commit is contained in:
benweet 2013-11-19 20:12:58 +00:00
parent bacc1a7408
commit da118e5074
2 changed files with 12 additions and 4 deletions

View File

@ -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" : [ {

View File

@ -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;
}