marko

Trait Markdown

Source
pub trait Markdown {
    // Required methods
    fn bold(&self) -> String;
    fn bullet(&self) -> String;
    fn code(&self) -> String;
    fn header(&self, level: u8) -> String;
    fn image(&self, path: &str) -> String;
    fn indent(&self, level: u8) -> String;
    fn italic(&self) -> String;
    fn link(&self, link: &str) -> String;
    fn quote(&self) -> String;
    fn strike(&self) -> String;
    fn task(&self, is_complete: bool) -> String;
}

Required Methods§

Source

fn bold(&self) -> String

Source

fn bullet(&self) -> String

Source

fn code(&self) -> String

Source

fn header(&self, level: u8) -> String

Source

fn image(&self, path: &str) -> String

Source

fn indent(&self, level: u8) -> String

Source

fn italic(&self) -> String

Source

fn quote(&self) -> String

Source

fn strike(&self) -> String

Source

fn task(&self, is_complete: bool) -> String

Implementors§

Source§

impl<T: AsRef<str>> Markdown for T