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" next : "githubblock"
}, { // block quote }, { // block quote
token : "blockquote", token : "blockquote",
regex : "^\\s*>[ ].+$", regex : "^\\s*>[ ]",
next : "blockquote" next : "blockquote"
}, { // HR * - _ }, { // HR * - _
token : "constant", token : "constant",
@ -73,6 +73,9 @@ var MarkdownHighlightRules = function() {
token : "markup.list", token : "markup.list",
regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+", regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
next : "listblock-start" next : "listblock-start"
}, { // Escaped $
token : "text",
regex : "\\\\\\$",
}, { // Math inline }, { // Math inline
token : ["constant.language.escape", "keyword", "constant.language.escape"], token : ["constant.language.escape", "keyword", "constant.language.escape"],
regex : "(\\$)(.*)(\\$)" regex : "(\\$)(.*)(\\$)"
@ -164,8 +167,9 @@ var MarkdownHighlightRules = function() {
regex : "^\\s*$", regex : "^\\s*$",
next : "start" next : "start"
}, { }, {
token : "blockquote", include : "basic", noEscape: true
regex : ".+" }, {
defaultToken : "blockquote"
} ], } ],
"githubblock" : [ { "githubblock" : [ {

View File

@ -1038,7 +1038,6 @@ ul,ol {
.ace_blockquote { .ace_blockquote {
color: @primary-color-lightest; color: @primary-color-lightest;
font-style: italic;
} }
.ace_code { .ace_code {
@ -1050,6 +1049,11 @@ ul,ol {
color: @primary-color; color: @primary-color;
} }
.ace_link {
color: @primary-color;
background-color: @code-bg;
}
.ace_description { .ace_description {
color: @primary-color-lightest; color: @primary-color-lightest;
} }