An Ember addon that provides a ES2015 module shim for working with markdown-it
MIT License
An Ember addon that provides a ES2015 module shim for working with the markdown-it Markdown parser.
ember install ember-markdown-it
import markdownit from 'markdown-it';
markdownit().render('# A Top Level Header');
// => "<h1>A Top Level Header</h1>"
A helper is provided for easily rendering Markdown as HTML in your templates:
{{markdown-render someMarkdown}}
Note: This returns an
Ember.Handlebars.SafeString
. We are relying on markdown-it for sanitization. For more info, checkout the markdown-it Security docs.
Refer to the markdown-it documentation for more information.