class Mint::VDOMRenderer
- Mint::VDOMRenderer
- Reference
- Object
Overview
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 virtual dom nodes using the _h
function.
The tag_end(node)
function closes a call with or without a comma ,
depending if the node has a next sibling.
Defined in:
utils/markd_vdom_renderer.crConstant Summary
-
HEADINGS =
["h1", "h2", "h3", "h4", "h5", "h6"] of ::String
Instance Method Summary
- #block_quote(node, entering)
- #code(node, entering)
- #code_block(node, entering)
- #document(node, entering)
- #emphasis(node, entering)
- #heading(node, entering)
- #image(node, entering)
-
#io : String::Builder
Io contains the end result.
- #item(node, entering)
- #line_break(node, entering)
- #link(node, entering)
- #list(node, entering)
- #paragraph(node, entering)
- #render(document : Markd::Node)
-
#skip_next=(skip_next : Bool)
Skip next is used to skip rendering of the next node.
-
#skip_next? : Bool
Skip next is used to skip rendering of the next node.
- #soft_break(node, entering)
- #strong(node, entering)
- #text(node, entering)
- #thematic_break(node, entering)