mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
a47980149f
GH-ISSUE 2373
8 lines
260 B
JavaScript
8 lines
260 B
JavaScript
/* global Showdown, Handlebars */
|
|
var showdown = new Showdown.converter();
|
|
|
|
var formatMarkdown = Ember.Handlebars.makeBoundHelper(function (markdown) {
|
|
return new Handlebars.SafeString(showdown.makeHtml(markdown || ''));
|
|
});
|
|
|
|
export default formatMarkdown; |