2 releases
0.0.2 | Apr 19, 2023 |
---|---|
0.0.1 | Apr 13, 2023 |
#11 in #parse-markdown
93KB
2K
SLoC
note-mark
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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