class

Mint::VDOMRenderer

Inherits Reference < Object

This is a Virtual DOM renderer for markdown using Markd shard.

The AST for the markdown is a tree where each node refers to the parent node, next sibling and previous sibling.

We walk the nodes and create a tree of nodes and then using the JavaScript builder to render them.

Constants

HEADINGS = ["h1", "h2", "h3", "h4", "h5", "h6"] of ::String

Class methods

render(replacements : Array(Compiler::Compiled), node : Node | String, separator : String, js : Compiler::Js) : Compiler::Compiled
Source
render(*, highlight : Highlight = Highlight::None, replacements : Array(Compiler::Compiled), document : Markd::Node, separator : String, js : Compiler::Js) : Compiler::Compiled
Source
render_html(*, highlight : Highlight = Highlight::None, replacements : Array(String), document : Markd::Node, separator : String)
Source

Instance methods

render(document : Markd::Node, separator : String, highlight : Highlight) : Node
Source
replace(item : String, separator : String) : Array(Node | String)
Source
replace(node : Node, separator : String) : Array(Node | String)
Source
stack
Source

Nested types