| |
| pub trait InlineStyler { |
| fn text(&self, text: &str) -> String; |
| fn bold(&self, text: &str) -> String; |
| fn italic(&self, text: &str) -> String; |
| fn bold_italic(&self, text: &str) -> String; |
| fn strikethrough(&self, text: &str) -> String; |
| fn underline(&self, text: &str) -> String; |
| fn code(&self, text: &str) -> String; |
| fn link(&self, text: &str, url: &str) -> String; |
| fn image(&self, alt: &str, url: &str) -> String; |
| fn footnote(&self, text: &str) -> String; |
| fn dimmed(&self, text: &str) -> String; |
| } |
|
|
| |
| pub trait HeadingStyler { |
| fn h1(&self, text: &str) -> String; |
| fn h2(&self, text: &str) -> String; |
| fn h3(&self, text: &str) -> String; |
| fn h4(&self, text: &str) -> String; |
| fn h5(&self, text: &str) -> String; |
| fn h6(&self, text: &str) -> String; |
| } |
|
|
| |
| pub trait ListStyler { |
| fn bullet_dash(&self, text: &str) -> String; |
| fn bullet_asterisk(&self, text: &str) -> String; |
| fn bullet_plus(&self, text: &str) -> String; |
| fn bullet_plus_expand(&self, text: &str) -> String; |
| fn number(&self, text: &str) -> String; |
| fn checkbox_checked(&self, text: &str) -> String; |
| fn checkbox_unchecked(&self, text: &str) -> String; |
| } |
|
|
| |
| pub trait TableStyler { |
| fn border(&self, text: &str) -> String; |
| fn header(&self, text: &str) -> String; |
| } |
|
|