marked-pandoc
v0.0.3
Published
A [marked](https://github.com/markedjs/marked) extension to use pandoc flavored markdown.
Downloads
6
Maintainers
Readme
marked-pandoc
A marked extension to use pandoc flavored markdown.
Installation
npm install marked-pandoc
Usage
import { pandoc } from "marked-pandoc";
marked.use(pandoc);
Markdown extensions
This extension allows to use the following pandoc syntax:
[Some text]{.myclass}
will generate<span class="myclass">Some text</span>
![Alt](image.jpg){.myclass}
will generate<img src="image.jpg" alt="Alt" class="myclass" />