Crate concisemark

source ·
Expand description

ConciseMark - a simplified markdown parsing library

ConciseMark can render markdown into HTML or Latex page, for example

use concisemark::Page;

let content = "# Title";
let page = Page::new(content);
let html = page.render();

The output html will be

<div><h1>Title</h1></div>

The outermost div is the root of the rendered html page.

If you want to render the markdown into a pretty PDF document, you may be interested in Page::render_latex, have it a look!

Hook

Page maintains an AST structure which you can use to hook the nodes you are interested in, please see its document for more information.

Modules

AST tree
Rough tokens for markdown

Structs

A markdown page
A placehodler for future usage