pub struct MarkdownFormat;Expand description
Markdown, drawn by core’s Markdown (a faithful port of upstream’s).
Trait Implementations§
Source§impl Clone for MarkdownFormat
impl Clone for MarkdownFormat
impl Copy for MarkdownFormat
Source§impl Debug for MarkdownFormat
impl Debug for MarkdownFormat
Source§impl Default for MarkdownFormat
impl Default for MarkdownFormat
Source§impl DocumentFormat for MarkdownFormat
Available on crate feature markdown only.
impl DocumentFormat for MarkdownFormat
Available on crate feature
markdown only.Source§fn extensions(&self) -> Vec<String>
fn extensions(&self) -> Vec<String>
The file extensions it claims, lowercase, without the dot.
Source§fn features(&self) -> Vec<String>
fn features(&self) -> Vec<String>
What the format supports (
"tables", "admonitions", …), for
listings and for callers that want to know before rendering.Source§fn render(&self, source: &str, options: &RenderOptions) -> Rendered
fn render(&self, source: &str, options: &RenderOptions) -> Rendered
Render
source. The default draws parse’s document
with DocumentView, or the source as plain text when the format
does not parse into the model.Source§fn match_name(&self, file_name: &str) -> NameMatch
fn match_name(&self, file_name: &str) -> NameMatch
How
file_name (a base name) relates to this format. By default a
name whose extension is one of extensions is
NameMatch::Yes.Auto Trait Implementations§
impl Freeze for MarkdownFormat
impl RefUnwindSafe for MarkdownFormat
impl Send for MarkdownFormat
impl Sync for MarkdownFormat
impl Unpin for MarkdownFormat
impl UnsafeUnpin for MarkdownFormat
impl UnwindSafe for MarkdownFormat
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