Render pikchr in static outputs
bollwyvl opened this issue · comments
Elevator Pitch
Allow pikchr
to be either rendered in-browser or as img
or svg
tags in various outputs.
There might also be the case for rendering syntax-highlighted pikchr
source.
Motivation
This would make pickhr
diagrams more useful in documentation.
Prior Art
Design Ideas
drawing pikchr:
- rendering in-browser
- get the
.wasm
and a (new).js
into the document somehow and then rendering.
- get the
- rendering in python
- getting
pickhr
more widely-installable and shelling out - using a
wasm
backend (probablywasmer-python
)- this would be an optional dependency
- getting
highlighting pikchr:
- probably means a pygments lexer
The emscripten-compiled .wasm
doesn't work simply in wasmer. May proceed with getting it compiled for e.g. conda-forge.
This is now available on conda-forge
as fossil-pikchr.