Allow pikchr diagrams in markdown fences

Usage no npm install needed!

<script type="module">
  import markdownItPikchr from '';



Actions Status Actions Status

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();
var result = md.render(aMarkdownDocument);

Document including:

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: