2 releases

0.0.2 Apr 19, 2023
0.0.1 Apr 13, 2023

#11 in #parse-markdown

MIT/Apache

93KB
2K SLoC

note-mark

crates.io docs.rs

A markdown parser under development.

Please read the documentation.

Example

[dependencies]
note-mark = "0.0.2"
use note_mark::prelude::*;

fn main() {
    let markdown = Markdown::default();

    let html = markdown.execute("# Hello, world!\n\nThis is a new line.");

    assert_eq!(html, "<h1>Hello, world!</h1><p>This is a new line.</p>");
}

License

Licensed under either of

at your option.


lib.rs:

note-mark is a markdown parser. It is a library that can be used to parse markdown into HTML.

Example

use note_mark::prelude::*;

let markdown = Markdown::default();

let html = markdown.execute("# Hello, world!");

assert_eq!(html, "<h1>Hello, world!</h1>");

let html = markdown.execute("# Hello, world!\n\nThis is a paragraph.");

assert_eq!(html, "<h1>Hello, world!</h1><p>This is a paragraph.</p>");

Dependencies

~69KB