Forked from gyllstromk/ember_handlebars_markdown_helper.js
Last active
August 29, 2015 14:14
-
-
Save szalishchuk/0fbb7e08c531e97432d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.Handlebars.registerBoundHelper('markdown', function (content) { | |
return new Handlebars.SafeString(markdown.toHTML(content)); | |
}); | |
/* | |
In template call it on any available property | |
{{markdown controller.property}} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment