pub struct MarkdownExtensions {
pub directives: bool,
pub math: bool,
pub html_elements: bool,
}Expand description
Opt-in Markdown extensions to enable for a parse — for either the read path
(Document::parse_with) or the edit path (Editor::new_ext). Ignored
for non-Markdown formats. Every field defaults off, matching the library; the
default-on extensions (tables, strikethrough, task lists, …) are always on
and need no flag here.
Fields§
§directives: boolGeneric directives: :name, ::name, :::name.
math: bool$...$ / $$...$$ math.
html_elements: boolParse recognized raw HTML into semantic AST nodes — an <img> becomes an
image node instead of an opaque raw_block/raw_inline, so
it is addressable by Document::query and the tree read paths. Only
tags that map verbatim onto the source are promoted; the rest stay raw.
Trait Implementations§
Source§impl Clone for MarkdownExtensions
impl Clone for MarkdownExtensions
Source§fn clone(&self) -> MarkdownExtensions
fn clone(&self) -> MarkdownExtensions
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 MarkdownExtensions
Source§impl Debug for MarkdownExtensions
impl Debug for MarkdownExtensions
Source§impl Default for MarkdownExtensions
impl Default for MarkdownExtensions
Source§fn default() -> MarkdownExtensions
fn default() -> MarkdownExtensions
Returns the “default value” for a type. Read more
impl Eq for MarkdownExtensions
Source§impl PartialEq for MarkdownExtensions
impl PartialEq for MarkdownExtensions
impl StructuralPartialEq for MarkdownExtensions
Auto Trait Implementations§
impl Freeze for MarkdownExtensions
impl RefUnwindSafe for MarkdownExtensions
impl Send for MarkdownExtensions
impl Sync for MarkdownExtensions
impl Unpin for MarkdownExtensions
impl UnsafeUnpin for MarkdownExtensions
impl UnwindSafe for MarkdownExtensions
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