Liking cljdoc? Tell your friends :D

nextjournal.markdown

Markdown as data

Markdown as data
raw docstring

->hiccupclj/s

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

default-hiccup-renderersclj/s

Default map of node type -> hiccup renderers, to be used with ->hiccup

Default map of node type -> hiccup renderers, to be used with `->hiccup`
sourceraw docstring

empty-docclj/s

Empty document to be used with parse*

Empty document to be used with `parse*`
sourceraw docstring

into-hiccupclj/s

Helper function to be used with custom hiccup renderer.

Helper function to be used with custom hiccup renderer.
sourceraw docstring

node->textclj/s

Convert node into text.

Convert node into text.
sourceraw docstring

parseclj/s

(parse markdown-text)
(parse ctx markdown-text)

Turns a markdown string into an AST of nested clojure data.

Accept options:

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

parse*clj/s

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

table-alignmentclj/s

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

toc->hiccupclj/s

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

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

× close