Ghost/core/client/helpers/gh-format-markdown.js

8 lines
260 B
JavaScript
Raw Normal View History

/* 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;