Liking cljdoc? Tell your friends :D

cybermonday.ir


cleanup-whitespaceclj

(cleanup-whitespace hiccup)

Removes excess whitespace from the resulting AST.

Removes excess whitespace from the resulting AST.
sourceraw docstring

close-tag?clj

(close-tag? tag)
source

contains-close-tag?clj

(contains-close-tag? vec)
source

contains-inner-html?clj

(contains-inner-html? vec)
source

contains-open-tag?clj

(contains-open-tag? vec)
source

fold-inline-htmlclj

(fold-inline-html xf)
source

HiccupRepresentablecljprotocol

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-hiccupclj

(to-hiccup this)
sourceraw docstring

html-attr-to-mapclj

(html-attr-to-map attr)
source

map-children-to-hiccupclj

(map-children-to-hiccup node)
source

md-to-irclj

(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
sourceraw docstring

node-tagsclj

The default mapping from Flexmark AST node to Hiccup tag

The default mapping from Flexmark AST node to Hiccup tag
sourceraw docstring

node-to-tagclj

(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.
sourceraw docstring

open-tag?clj

(open-tag? tag)
source

optionsclj

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
sourceraw docstring

parse-tagclj

(parse-tag tag)
source

parserclj

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
sourceraw docstring

(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
sourceraw docstring

process-inline-htmlclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close