mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
323ccb2765
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; |