#mdbook #pikchr #pic #md #markdown

app mdbook-pikchr

A mdbook preprocessor to render pikchr code blocks as images in your book

6 releases

0.1.5 Dec 7, 2022
0.1.4 Oct 22, 2022

#543 in Text processing

30 downloads per month

MIT license


C 7K SLoC // 0.1% comments Rust 259 SLoC

mdBook Pikchr

A mdBook preprocessor to render Pikchr code blocks as images in your book.

Taken from the Pikchr homepage:

Pikchr (pronounced like "picture") is a PIC-like markup language for diagrams in technical documentation. Pikchr is designed to be embedded in fenced code blocks of Markdown (or in similar mechanisms in other markup languages) to provide a convenient means of showing diagrams.

This crate use builtin copy of the pikchr.c file downloaded from that website.

How it's work


Install it via cargo:

$ cargo install mdbook-pikchr


Just type next line in your book.toml file:


Source code

Source code available on GitHub.


~691K SLoC