You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+40-63Lines changed: 40 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,14 @@
1
1
# Table of contents
2
2
-[`nextjournal.markdown`](#nextjournal.markdown) - Markdown as data.
3
-
-[`->hiccup`](#nextjournal.markdown/->hiccup) - Turns a markdown string into hiccup.
3
+
-[`->hiccup`](#nextjournal.markdown/->hiccup) - Turns a markdown string or document node into hiccup.
4
+
-[`default-hiccup-renderers`](#nextjournal.markdown/default-hiccup-renderers) - Default map of node type -> hiccup renderers, to be used with <code>->hiccup</code>.
4
5
-[`empty-doc`](#nextjournal.markdown/empty-doc) - Empty document to be used with <code>parse*</code>.
6
+
-[`into-hiccup`](#nextjournal.markdown/into-hiccup) - Helper function to be used with custom hiccup renderer.
7
+
-[`node->text`](#nextjournal.markdown/node->text) - Convert node into text.
5
8
-[`parse`](#nextjournal.markdown/parse) - Turns a markdown string into an AST of nested clojure data.
6
9
-[`parse*`](#nextjournal.markdown/parse*) - Turns a markdown string into an AST of nested clojure data.
7
-
-[`nextjournal.markdown.transform`](#nextjournal.markdown.transform) - transform markdown data as returned by <code>nextjournal.markdown/parse</code> into other formats, currently: * hiccup.
-[`into-markup`](#nextjournal.markdown.transform/into-markup) - Takes a hiccup vector, a context and a node, puts node's <code>:content</code> into markup mapping through <code>->hiccup</code>.
-[`table-alignment`](#nextjournal.markdown/table-alignment) - Takes a table-ish node, returns a map suitable for hiccup style attributes with a :text-align property.
11
+
-[`toc->hiccup`](#nextjournal.markdown/toc->hiccup) - Transform a toc node into hiccup data, suitable for using as renderer function in hiccup transform, see [->hiccup](#markdown.transform/toc->hiccup).
Takes a hiccup vector, a context and a node, puts node's `:content` into markup mapping through [`->hiccup`](#nextjournal.markdown.transform/->hiccup).
0 commit comments