Struct kas_text::format::Markdown [−][src]
pub struct Markdown { /* fields omitted */ }
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), strikethrough
Not supported:
- Block quotes
- Footnotes
- HTML
- Horizontal rules
- Images
- Links
- Tables
- Task lists
Implementations
Trait Implementations
fn font_tokens(&self, dpp: f32, pt_size: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T: Clone> Iterator for OwningVecIter<T> type Item = T;
fn font_tokens(&self, dpp: f32, pt_size: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T: Clone> Iterator for OwningVecIter<T> type Item = T;
Notable traits for OwningVecIter<T>
impl<T: Clone> Iterator for OwningVecIter<T> type Item = T;
Construct an iterator over formatting items Read more
Auto Trait Implementations
impl RefUnwindSafe for Markdown
impl UnwindSafe for Markdown
Blanket Implementations
Mutably borrows from an owned value. Read more
Cast to integer, truncating Read more
Cast to the nearest integer Read more
Cast the floor to an integer Read more
Try converting to integer with truncation Read more
Try converting to the nearest integer Read more
Try converting the floor to an integer Read more
Try convert the ceiling to an integer Read more
Produce a boxed clone of self
pub fn font_tokens(&Self, f32, f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T: Clone> Iterator for OwningVecIter<T> type Item = T;
pub fn font_tokens(&Self, f32, f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>impl<T: Clone> Iterator for OwningVecIter<T> type Item = T;
Notable traits for OwningVecIter<T>
impl<T: Clone> Iterator for OwningVecIter<T> type Item = T;
Construct an iterator over formatting items Read more