pub struct Markdown { /* private fields */ }
Expand description
Basic Markdown formatter
Currently this misses several important Markdown features, but may still prove a convenient way of constructing formatted texts.
Supported:
- Text paragraphs
- Code (embedded and blocks); caveat: extra line after code blocks
- Explicit line breaks
- Headings
- Lists (numerated and bulleted); caveat: indentation after first line
- Bold, italic (emphasis), strike-through
Not supported:
- Block quotes
- Footnotes
- HTML
- Horizontal rules
- Images
- Links
- Tables
- Task lists
Implementations§
Trait Implementations§
source§impl EditableText for Markdown
impl EditableText for Markdown
source§impl FormattableText for Markdown
impl FormattableText for Markdown
type FontTokenIter<'a> = FontTokenIter<'a>
source§fn font_tokens<'a>(&'a self, dpem: f32) -> Self::FontTokenIter<'a>
fn font_tokens<'a>(&'a self, dpem: f32) -> Self::FontTokenIter<'a>
Construct an iterator over formatting items Read more
impl StructuralPartialEq for Markdown
Auto Trait Implementations§
impl RefUnwindSafe for Markdown
impl Send for Markdown
impl Sync for Markdown
impl Unpin for Markdown
impl UnwindSafe for Markdown
Blanket Implementations§
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
source§impl<F> FormattableTextDyn for Fwhere
F: 'static + FormattableText + Clone,
impl<F> FormattableTextDyn for Fwhere
F: 'static + FormattableText + Clone,
source§fn clone_boxed(&self) -> Box<dyn FormattableTextDyn + 'static, Global>
fn clone_boxed(&self) -> Box<dyn FormattableTextDyn + 'static, Global>
Produce a boxed clone of self
source§fn font_tokens(&self, dpem: f32) -> OwningVecIter<FontToken> ⓘ
fn font_tokens(&self, dpem: f32) -> OwningVecIter<FontToken> ⓘ
Construct an iterator over formatting items Read more