pub struct App {}Implementations§
Source§impl App
impl App
Sourcepub fn exec(markdown: String) -> String
pub fn exec(markdown: String) -> String
let md_text = "# I'm <h1> tag!";
let html: String = App::exec(String::from(md_text));Examples found in repository?
examples/basic.rs (line 22)
5fn main() {
6 let markdown_text = r"
7mossy
8================
9A toy library for parsing Markdown.
10
11## Specification
12It's based [CommonMark].
13
14LICENSE
15----------------
16MIT
17
18[CommonMark]: https://spec.commonmark.org/0.28/
19"
20 .to_string();
21
22 println!("{}", App::exec(markdown_text));
23}Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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