ember-markdown-it

0.0.6 • Public • Published

ember-markdown-it Travis

An Ember addon that provides a ES2015 module shim for working with the markdown-it Markdown parser.

Installation

ember install ember-markdown-it

Usage

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.

Readme

Keywords

Package Sidebar

Install

npm i ember-markdown-it

Weekly Downloads

7

Version

0.0.6

License

MIT

Last publish

Collaborators

  • heroiceric