markdown-it-pikchr
v0.0.2
Published
Allow pikchr diagrams in markdown fences
Downloads
21
Maintainers
Readme
markdown-it-plugin-pikchr
How to add Pikchr support to Markdown-It
Use markdown-it-pikchr
as a regular plugin.
npm install markdown-it markdown-it-pikchr
Configure the markdown-it instance:
// node.js, "classic" way:
var pikchr = require('markdown-it-pikchr');
var MarkdownIt = require('markdown-it'),
md = new MarkdownIt();
md.use(pikchr);
var result = md.render(aMarkdownDocument);
Document including:
pikchr
arrow right 200% "Markdown" "Source"
box rad 10px "Markdown" "Formatter" "(markdown.c)" fit
arrow right 200% "HTML+SVG" "Output"
arrow <-> down 70% from last box.s
box same "Pikchr" "Formatter" "(pikchr.c)" fit
Code based on: https://github.com/christianvoigt/argdown/tree/master/packages/argdown-markdown-it-plugin