pub struct MarkdownExportOptions {
pub image_mode: ImageMode,
pub artifacts_dir: String,
pub layers: ContentLayers,
pub traverse_pictures: bool,
pub escape_html: bool,
pub escape_underscores: bool,
pub image_placeholder: String,
}Expand description
Options of the Markdown export
(DoclingDocument::export_to_markdown_with_options, #599): the
docling-core MarkdownParams the port honours beyond the image mode.
Default is upstream’s default export — placeholder images,
artifacts as the referenced-image directory, the body layer only, no
picture traversal, HTML and underscore escaping on, <!-- image --> —
so a document exported with it is byte-identical to
DoclingDocument::export_to_markdown.
Fields§
§image_mode: ImageModeHow pictures render (MarkdownParams.image_mode): the placeholder,
data: URIs when embedded, 
when referenced (the bytes come back for the caller to write).
artifacts_dir: StringThe directory referenced images are named under.
layers: ContentLayersThe content layers rendered (MarkdownParams.layers,
export_to_markdown(included_content_layers=…)): an item on a layer
outside the set is skipped, its children still walked. The default
body-only set drops page headers/footers (furniture), reviewer
comments (notes) and hidden sheets (invisible), as upstream does; a
scanned form’s running header reads out with
ContentLayers::BODY.with(ContentLayer::Furniture). The extra items
render through the body’s serializers — a page header is a paragraph.
traverse_pictures: boolCommonParams.traverse_pictures: render the text items nested in a
picture (the PDF pipeline’s picture children — a bordered form laid
out as one picture holds every field as a child) after the picture’s
own caption and image, as upstream yields them. Off, a picture prints
only its caption and image.
escape_html: boolMarkdownParams.escape_html: &, < and > in text as &,
<, > (Python’s html.escape(quote=False)). Off, R&D stays
R&D.
escape_underscores: boolMarkdownParams.escape_underscores: _ in text as \_. Off, the
text keeps its underscores.
image_placeholder: StringMarkdownParams.image_placeholder: what a picture prints as when it
renders no image data (the placeholder mode, or a picture without a
payload); upstream’s <!-- image -->.
Trait Implementations§
Source§impl Clone for MarkdownExportOptions
impl Clone for MarkdownExportOptions
Source§impl Debug for MarkdownExportOptions
impl Debug for MarkdownExportOptions
Source§impl Default for MarkdownExportOptions
impl Default for MarkdownExportOptions
impl Eq for MarkdownExportOptions
Source§impl PartialEq for MarkdownExportOptions
impl PartialEq for MarkdownExportOptions
impl StructuralPartialEq for MarkdownExportOptions
Auto Trait Implementations§
impl Freeze for MarkdownExportOptions
impl RefUnwindSafe for MarkdownExportOptions
impl Send for MarkdownExportOptions
impl Sync for MarkdownExportOptions
impl Unpin for MarkdownExportOptions
impl UnsafeUnpin for MarkdownExportOptions
impl UnwindSafe for MarkdownExportOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.