pub struct PandocExportOptions {
pub image_mode: ImageMode,
pub artifacts_dir: String,
pub layers: ContentLayers,
pub api_version: Option<String>,
pub heading_depth: HeadingDepth,
pub track_changes: Option<TrackChanges>,
}Expand description
Options for to_pandoc.
Fields§
§image_mode: ImageModeHow pictures carry their image (see the module docs); Embedded by
default, so the AST alone rebuilds a document with its pictures.
artifacts_dir: StringThe directory referenced images are written under
(<artifacts_dir>/image_NNNNNN.<ext>, the Markdown export’s names).
layers: ContentLayersThe content layers written; body only by default.
api_version: Option<String>The Pandoc API version the caller needs ("1.23", "1.23.1.1", …);
None = PANDOC_API_VERSION. Only that API is supported.
heading_depth: HeadingDepthThe Header depth of a section_header (#848): docling’s
title-reserving n + 1 by default, or the source’s own n.
track_changes: Option<TrackChanges>The tracked-changes policy the document was read under (#851).
None (no policy asked for) and Some(All) write the reviewer
comments as Span .comment-start / .comment-end pairs; an
explicit Accept / Reject leaves them out, as Pandoc’s
--track-changes=accept|reject do.