pub struct ParseOptions {
pub hard_breaks: bool,
pub enable_highlight: bool,
pub enable_strikethrough: bool,
pub enable_underline: bool,
pub enable_tables: bool,
pub enable_autolink: bool,
pub enable_task_lists: bool,
}Expand description
Options for customizing Markdown parsing behavior.
Fields§
§hard_breaks: boolWhen true, every newline inside a paragraph becomes a hard line break (<br />),
similar to GitHub Flavored Markdown. Default: true.
enable_highlight: boolEnable ==highlight== syntax → <mark>. Default: true.
enable_strikethrough: boolEnable ~~strikethrough~~ syntax → <del>. Default: true.
enable_underline: boolEnable ++underline++ syntax → <u>. Default: true.
enable_tables: boolEnable pipe table syntax. Default: true.
enable_autolink: boolAutomatically detect bare URLs (https://...) and emails (user@example.com)
and wrap them in <a> tags. Default: true.
enable_task_lists: boolEnable GitHub-style task lists (- [ ] unchecked, - [x] checked)
in list items. Default: true.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnsafeUnpin for ParseOptions
impl UnwindSafe for ParseOptions
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