Skip to content

An Ember addon that provides a ES2015 module shim for working with markdown-it

License

Notifications You must be signed in to change notification settings

HeroicEric/ember-markdown-it

Repository files navigation

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.

About

An Ember addon that provides a ES2015 module shim for working with markdown-it

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •