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 to transform a model to a model.
  • The model module contains the data structures used to parse and transform the markdown.
  • The prelude of the note-mark crate.

Structs

  • Markdown parser and transformer.