A marked extension to use pandoc flavored markdown.
npm install marked-pandoc
import { pandoc } from "marked-pandoc";
marked.use(pandoc);
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" />