Module pikchr::raw[][src]

Constants

PIKCHR_DARK_MODE

Alter colour choices to make diagrams more suitable for rendering in a dark settings such as dark-mode web pages.

PIKCHR_PLAINTEXT_ERRORS

Include PIKCHR_PLAINTEXT_ERRORS among the bits of mFlags on the 3rd argument to pikchr() in order to cause error message text to come out as text/plain instead of as text/html

Functions

pikchr

The main interface. Invoke this routine to translate PIKCHR source text into SVG. The SVG is returned in a buffer obtained from malloc(). The caller is responsible for freeing the buffer.