#[non_exhaustive]pub struct MarkdownOptions {
pub smart_punctuation: bool,
pub definition_lists: bool,
pub admonitions: bool,
}Expand description
Options for parsing markdown.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.smart_punctuation: boolEnables smart punctuation.
Converts quotes to curly quotes, ... to …, -- to en-dash, and
--- to em-dash.
This is true by default.
definition_lists: boolEnables definition lists.
This is true by default.
admonitions: boolEnables admonitions.
This is true by default.
Trait Implementations§
Source§impl Default for MarkdownOptions
impl Default for MarkdownOptions
Source§fn default() -> MarkdownOptions
fn default() -> MarkdownOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze 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
Mutably borrows from an owned value. Read more