#1138 Markdown mode should be based on HTML mode
This commit is contained in:
parent
fa90671619
commit
230bca6b1b
1 changed files with 9 additions and 0 deletions
|
|
@ -180,6 +180,15 @@ var MarkdownHighlightRules = function() {
|
||||||
regex : "^```",
|
regex : "^```",
|
||||||
next : "start"
|
next : "start"
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
var html = new HtmlHighlightRules().getRules();
|
||||||
|
for (var i in html) {
|
||||||
|
if (this.$rules[i])
|
||||||
|
this.$rules[i] = this.$rules[i].concat(html[i]);
|
||||||
|
else
|
||||||
|
this.$rules[i] = html[i];
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
oop.inherits(MarkdownHighlightRules, TextHighlightRules);
|
oop.inherits(MarkdownHighlightRules, TextHighlightRules);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue