(cleanup-whitespace hiccup)
Removes excess whitespace from the resulting AST.
Removes excess whitespace from the resulting AST.
(close-tag? tag)
(contains-close-tag? vec)
(contains-inner-html? vec)
(contains-open-tag? vec)
(fold-inline-html xf)
Provides the protocol for (to-hiccup)
method. Dispatches on AST node type
Provides the protocol for `(to-hiccup)` method. Dispatches on AST node type
(to-hiccup this)
(html-attr-to-map attr)
(map-children-to-hiccup node)
(md-to-ir md)
Given md
as a string, generates a Cybermonday hiccup IR
Inline HTML gets folded inplace and excess whitespace is removed
Given `md` as a string, generates a Cybermonday hiccup IR Inline HTML gets folded inplace and excess whitespace is removed
The default mapping from Flexmark AST node to Hiccup tag
The default mapping from Flexmark AST node to Hiccup tag
(node-to-tag node)
Gets the default tag for this node
or throws an error if we encounter a node we aren't handling.
Gets the default tag for this `node` or throws an error if we encounter a node we aren't handling.
(open-tag? tag)
The default options for the Flexmark parser There shouldn't be a reason to change this
The default options for the Flexmark parser There shouldn't be a reason to change this
(parse-tag tag)
The instance of the Flexmark parser.
Can be called like (.parse parser document-string)
to yeild a document
Flexmark parse object
The instance of the Flexmark parser. Can be called like `(.parse parser document-string)` to yeild a `document` Flexmark parse object
(print-ast document)
Utility function to print the AST. Consumes the document
from the parser
Utility function to print the AST. Consumes the `document` from the parser
(process-inline-html almost-hiccup)
Parses the HtmlInline fragments into partial hiccup, and folds in the inner AST
Parses the HtmlInline fragments into partial hiccup, and folds in the inner AST
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close