Ghost/ghost/admin/helpers/format-markdown.js

6 lines
216 B
JavaScript
Raw Normal View History

/* global Showdown, Handlebars */
var showdown = new Showdown.converter();
export default Ember.Handlebars.makeBoundHelper(function (markdown) {
return new Handlebars.SafeString(showdown.makeHtml(markdown));
});