ractive-markdown
v0.1.1
Published
A markdown mustache helper for [Ractive](http://www.ractivejs.org/), using [Markdown-it](https://github.com/markdown-it/markdown-it)
Downloads
3
Readme
Ractive Markdown helper
A markdown mustache helper for Ractive, using Markdown-it
Also supports emoji via Markdown-it-emoji
Usage
Note: this helper is a self-registering CommonJS module, and in the browser requires a module system such as Webpack or Browserify.
npm install ractive-markdown
ES5:
var Ractive = require('ractive');
require('ractive-markdown');
ES6/2015+:
import Ractive from 'ractive';
import 'ractive-markdown';
In Ractive template
(Requires triple brackets to show unescaped HTML):
{{{md('# Hello _World!_')}}}