mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Adds markdown highlight support
closes #4574 - adds highlight showdown extension with tests
This commit is contained in:
parent
fd4dee1885
commit
853db11f27
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ ul ol, ol ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
mark {
|
mark {
|
||||||
background-color: #ffc336;
|
background-color: #fdffb6;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import cajaSanitizers from 'ghost/utils/caja-sanitizers';
|
||||||
var showdown,
|
var showdown,
|
||||||
formatMarkdown;
|
formatMarkdown;
|
||||||
|
|
||||||
showdown = new Showdown.converter({extensions: ['ghostimagepreview', 'ghostgfm', 'footnotes']});
|
showdown = new Showdown.converter({extensions: ['ghostimagepreview', 'ghostgfm', 'footnotes', 'highlight']});
|
||||||
|
|
||||||
formatMarkdown = Ember.Handlebars.makeBoundHelper(function (markdown) {
|
formatMarkdown = Ember.Handlebars.makeBoundHelper(function (markdown) {
|
||||||
var escapedhtml = '';
|
var escapedhtml = '';
|
||||||
|
|
Loading…
Add table
Reference in a new issue