0.1.1 • Published 8 years ago

ractive-markdown v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

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!_')}}}

Outputs:

Hello World!