pub struct Markdown<'a> { /* private fields */ }Expand description
Markdown renderer
Implementations§
Source§impl<'a> Markdown<'a>
impl<'a> Markdown<'a>
Sourcepub fn new(data: &'a str, base: &'a str, highlight: bool) -> Markdown<'a>
pub fn new(data: &'a str, base: &'a str, highlight: bool) -> Markdown<'a>
Create a new markdown renderer.
data should contain the markdown to be rendered and base should specify a relative url
prefix (for relative links and images).
Note: base will only affect markdown links and images, not inline html ones.
Trait Implementations§
Source§impl<'a> Render for Markdown<'a>
impl<'a> Render for Markdown<'a>
Source§fn render(&self, tmpl: &mut TemplateBuffer<'_>)
fn render(&self, tmpl: &mut TemplateBuffer<'_>)
Render this into a template buffer.
Source§impl<'a> RenderMut for Markdown<'a>
impl<'a> RenderMut for Markdown<'a>
Source§fn render_mut(&mut self, tmpl: &mut TemplateBuffer<'_>)
fn render_mut(&mut self, tmpl: &mut TemplateBuffer<'_>)
Render this into a template buffer.
Source§impl<'a> RenderOnce for Markdown<'a>
impl<'a> RenderOnce for Markdown<'a>
Source§fn render_once(self, tmpl: &mut TemplateBuffer<'_>)
fn render_once(self, tmpl: &mut TemplateBuffer<'_>)
Render this into a template buffer.
impl<'a> Copy for Markdown<'a>
impl<'a> Eq for Markdown<'a>
impl<'a> StructuralPartialEq for Markdown<'a>
Auto Trait Implementations§
impl<'a> Freeze for Markdown<'a>
impl<'a> RefUnwindSafe for Markdown<'a>
impl<'a> Send for Markdown<'a>
impl<'a> Sync for Markdown<'a>
impl<'a> Unpin for Markdown<'a>
impl<'a> UnwindSafe for Markdown<'a>
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