pub struct MarkdownOptions {
pub input_limits: InputLimits,
pub track_changes: TrackChanges,
pub extract_media: Option<String>,
pub ids: bool,
pub comments: bool,
pub source: Option<String>,
pub pages: Option<Vec<String>>,
pub page_markers: bool,
pub dates: bool,
pub select: Option<Select>,
}Expand description
How docx_to_markdown reads a .docx. Defaults to the plain
Markdown conversion with all revisions kept; <!-- page N of M -->
lines from Word’s cached breaks come only with ids (the agent view).
Fields§
§input_limits: InputLimitsActive XML tag and attribute budgets, checked before tree construction.
track_changes: TrackChangesAll writes tracked changes and comments as CriticMarkup; Accept
and Reject write the text after Word’s Accept All or Reject All,
without comments.
extract_media: Option<String>Collect the document’s raster pictures and name them in the Markdown
under this directory, as pandoc’s --extract-media. None writes a
picture as its alt text.
ids: boolAgent view: a YAML header, an id line before every block, Word’s ids on revisions and comments. Off, the plain conversion, unchanged.
comments: boolWith ids: comments inline (true), or hidden with their ids on the
id line of the paragraph that holds them.
source: Option<String>With ids: the name printed as source: in the header; None
prints (bytes).
pages: Option<Vec<String>>With ids: the text painted on each page by the layout pass
(convert::RenderReport::pages), for <!-- page N of M --> lines.
None falls back to Word’s cached page breaks.
page_markers: boolWith ids and no pages: write <!-- page N of M --> lines from
Word’s cached breaks (true, the default), or no page lines at all;
the header’s page count is unaffected.
dates: boolWith ids: timestamps inline on notes when an author’s marks and
comments have different recorded date forms, including local offsets.
An author with undated marks always gets explicit dated notes.
select: Option<Select>With ids: which blocks of the body to print.
Trait Implementations§
Source§impl Clone for MarkdownOptions
impl Clone for MarkdownOptions
Source§fn clone(&self) -> MarkdownOptions
fn clone(&self) -> MarkdownOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MarkdownOptions
impl Debug for MarkdownOptions
Source§impl Default for MarkdownOptions
impl Default for MarkdownOptions
Source§fn default() -> MarkdownOptions
fn default() -> MarkdownOptions
impl Eq for MarkdownOptions
Source§impl PartialEq for MarkdownOptions
impl PartialEq for MarkdownOptions
impl StructuralPartialEq for MarkdownOptions
Auto Trait Implementations§
impl Forget for MarkdownOptions
impl Freeze for MarkdownOptions
impl Move for MarkdownOptions
impl RefUnwindSafe for MarkdownOptions
impl Send for MarkdownOptions
impl Sync for MarkdownOptions
impl Unpin for MarkdownOptions
impl UnsafeUnpin for MarkdownOptions
impl UnwindSafe for MarkdownOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.