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 {
|
||||
background-color: #ffc336;
|
||||
background-color: #fdffb6;
|
||||
}
|
||||
|
||||
a {
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Reference in a new issue