Last active
April 13, 2023 19:33
-
-
Save gyllstromk/5409699 to your computer and use it in GitHub Desktop.
Render markdown as HTML in Ember via `registerBoundHelper`. This example uses https://github.com/evilstreak/markdown-js.
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)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment