swig-marked
Markdown filter and tag based on marked. As the name already states, this module combines swig and marked.
There is already a markdown filter/tag in the package swig-extras
, however, that one uses
markdown, and I wanted to have marked
for it's
support for tables and GFM.
usage:
var markedSwig = swig = ; markedSwig; markedSwig; swig; // <h1 id="hello-word">hello world</h1> swig; // <h1 id="hello-world">hello world</h1> // filter and tag are also exposed like so: swig; swig; // <h1 id="hello-world">hello world</h1> // provide configuration options to marked: var configured = markedSwig;