Crate note_mark

Source
Expand description

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>");

Modules§

layer
Layer to transform a model to a model.
model
The model module contains the data structures used to parse and transform the markdown.
prelude
The prelude of the note-mark crate.

Structs§

Markdown
Markdown parser and transformer.