Markdown as data
Markdown as data
(->hiccup markdown)
(->hiccup hiccup-renderers markdown)
Turns a markdown string or document node into hiccup. Optionally takes
hiccup-renderers
as first argument.
Turns a markdown string or document node into hiccup. Optionally takes `hiccup-renderers` as first argument.
Default map of node type -> hiccup renderers, to be used with ->hiccup
Default map of node type -> hiccup renderers, to be used with `->hiccup`
Empty document to be used with parse*
Empty document to be used with `parse*`
Helper function to be used with custom hiccup renderer.
Helper function to be used with custom hiccup renderer.
(parse markdown-text)
(parse ctx markdown-text)
Turns a markdown string into an AST of nested clojure data.
Accept options:
:text-tokenizers
to customize parsing of text in leaf nodes (see https://nextjournal.github.io/markdown/notebooks/parsing_extensibility).Turns a markdown string into an AST of nested clojure data. Accept options: - `:text-tokenizers` to customize parsing of text in leaf nodes (see https://nextjournal.github.io/markdown/notebooks/parsing_extensibility).
(parse* markdown-text)
(parse* ctx markdown-text)
Turns a markdown string into an AST of nested clojure data.
Allows to parse multiple strings into the same document
e.g. (-> empty-doc (parse* text-1) (parse* text-2))
.
Turns a markdown string into an AST of nested clojure data. Allows to parse multiple strings into the same document e.g. `(-> empty-doc (parse* text-1) (parse* text-2))`.
Takes a table-ish node, returns a map suitable for hiccup style attributes with a :text-align property.
Takes a table-ish node, returns a map suitable for hiccup style attributes with a :text-align property.
Transform a toc node into hiccup data, suitable for using as renderer function in hiccup transform, see ->hiccup
Transform a toc node into hiccup data, suitable for using as renderer function in hiccup transform, see [->hiccup](#markdown.transform/toc->hiccup)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close