pub struct RenderOptions {
pub html_image_tags: bool,
pub mermaid: bool,
pub qr: bool,
pub chess: bool,
pub toc_depth: Option<u8>,
pub layout_assets: Vec<String>,
pub layout_fonts: Vec<String>,
}Expand description
The pipeline flags mdcast render exposes, minus the ones that are
meaningless over HTTP (--out, --assets DIR).
Fields§
--html-image-tags: rewrite <img src="X"> / <image path="X"> to
 before splitting.
mermaid: bool--mermaid: render ```mermaid fences to SVG before
splitting.
qr: bool--qr: render ```qr fences and <qr> tags to SVG QR codes
before splitting. Advertised as qr in
CapabilitiesResponse::generators; a server without it ignores the
flag.
chess: bool--chess: render ```fen / ```pgn fences and
<fen> / <pgn> tags to SVG chess boards before splitting.
Advertised as fen/pgn in CapabilitiesResponse::generators; a
server without them ignores the flag and leaves the fences as code.
toc_depth: Option<u8>--toc-depth N: request a table of contents at heading depth 1-6.
layout_assets: Vec<String>--layout-asset KEY (repeatable): ResolvedDoc.assets entries a
typst layout reaches via asset-path.
layout_fonts: Vec<String>--layout-font KEY (repeatable): ResolvedDoc.fonts entries to
register with the typst font book.