mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
e9c27bb633
no issue - this ports over screens from old admin to allow people to begin working on aspects of the screen - All logged out screens have been imported: Signup, Signin, Forgotten password, reset password - Those screens are now ready for behavior to be ported over - This also updates templates to be more in line with how they were in the old admin - Littered through the code are @TODO comments of functionality that is missing and will need to be resolved before this is production ready - Also scaffolds out the settings screen and every tab
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; |