0.0.6 • Published 8 years ago
ember-markdown-it v0.0.6
ember-markdown-it 
An Ember addon that provides a ES2015 module shim for working with the markdown-it Markdown parser.
Installation
ember install ember-markdown-itUsage
import markdownit from 'markdown-it';
markdownit().render('# A Top Level Header');
// => "<h1>A Top Level Header</h1>"In your templates
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.