pub struct MarkdownExportOptions {
pub page_breaks: bool,
pub omit_images: bool,
}Fields§
§page_breaks: boolEmit markdown_page_break before a block that asks to start a new page. Off by
default: raw HTML is not Markdown, and an export nobody is going to paginate is
better off clean.
omit_images: boolDrop inline images instead of emitting .
A Markdown export references its images by path and cannot carry their
bytes, so a caller that will not place those files beside the output is
choosing between a dangling reference and no image at all. Off by
default, because the reference is what a caller who does write the
files needs — see crate::parser_tools::HtmlImageMode for the same
choice in the one text format that can also inline the bytes.
Trait Implementations§
Source§impl Clone for MarkdownExportOptions
impl Clone for MarkdownExportOptions
Source§fn clone(&self) -> MarkdownExportOptions
fn clone(&self) -> MarkdownExportOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MarkdownExportOptions
Source§impl Debug for MarkdownExportOptions
impl Debug for MarkdownExportOptions
Source§impl Default for MarkdownExportOptions
impl Default for MarkdownExportOptions
Source§fn default() -> MarkdownExportOptions
fn default() -> MarkdownExportOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarkdownExportOptions
impl<'de> Deserialize<'de> for MarkdownExportOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarkdownExportOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarkdownExportOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MarkdownExportOptions
Source§impl PartialEq for MarkdownExportOptions
impl PartialEq for MarkdownExportOptions
Source§impl Serialize for MarkdownExportOptions
impl Serialize for MarkdownExportOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.