0
Fork 0
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:
Hannah Wolfe 2014-12-03 19:52:29 +00:00
parent fd4dee1885
commit 853db11f27
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ ul ol, ol ul {
}
mark {
background-color: #ffc336;
background-color: #fdffb6;
}
a {

View file

@ -4,7 +4,7 @@ import cajaSanitizers from 'ghost/utils/caja-sanitizers';
var showdown,
formatMarkdown;
showdown = new Showdown.converter({extensions: ['ghostimagepreview', 'ghostgfm', 'footnotes']});
showdown = new Showdown.converter({extensions: ['ghostimagepreview', 'ghostgfm', 'footnotes', 'highlight']});
formatMarkdown = Ember.Handlebars.makeBoundHelper(function (markdown) {
var escapedhtml = '';