No matching definitions.

notebook/cmark

src/notebook/cmark.tur
defn

md-tag-document

(md-tag-document :int)
defn

md-tag-heading

(md-tag-heading :int)
defn

md-tag-paragraph

(md-tag-paragraph :int)
defn

md-tag-blockquote

(md-tag-blockquote :int)
defn

md-tag-list

(md-tag-list :int)
defn

md-tag-list-item

(md-tag-list-item :int)
defn

md-tag-code-block

(md-tag-code-block :int)
defn

md-tag-thematic-break

(md-tag-thematic-break :int)
defn

md-tag-table

(md-tag-table :int)
defn

md-tag-table-row

(md-tag-table-row :int)
defn

md-tag-table-cell

(md-tag-table-cell :int)
defn

md-tag-text

(md-tag-text :int)
defn

md-tag-emph

(md-tag-emph :int)
defn

md-tag-strong

(md-tag-strong :int)
defn

md-tag-code-span

(md-tag-code-span :int)
defn

md-tag-image

(md-tag-image :int)
defn

md-tag-strikethrough

(md-tag-strikethrough :int)
defn

md-tag-hard-break

(md-tag-hard-break :int)
defn

md-tag-soft-break

(md-tag-soft-break :int)
defn

md-tag-math-block

(md-tag-math-block :int)
defn

md-tag-math-inline

(md-tag-math-inline :int)
defn

md-node-tag

(md-node-tag [n :int])

return the block tag of a parsed markdown node.

nnode handle returned by md-parse or md-node-children

One of the md-tag-* integer constants implemented in NB0.

(md-node-tag (md-parse "# Hi"))

Since: NB0

defn

md-node-children

(md-node-children [n :int])

return the children of a node as a cons list.

nnode handle

A cons list of child node handles in document order.

(md-node-children doc)

Since: NB0

defn

md-node-text

(md-node-text [n :int])

return the node text payload for block-level nodes.

nnode handle

Paragraph text, heading text, or code-block body depending on node kind.

(md-node-text heading)

Since: NB0

defn

md-node-info

(md-node-info [n :int])

return the node info payload.

nnode handle

Fence info string for code blocks, or list marker info for list nodes.

(md-node-info code-block)

Since: NB0

defn

md-node-meta

(md-node-meta [n :int])

return the node integer metadata field.

nnode handle

Heading level for headings or list start number for ordered lists.

(md-node-meta heading)

Since: NB0

defn

md-source-span

(md-source-span [n :int])

return the start/end line pair for a node.

nnode handle

A cons pair (start-line . end-line), both 1-based.

(md-source-span node)

Since: NB0

defn

md-parse

(md-parse [source :cstr])
defn

md-emit

(md-emit [n :int])

serialize a parsed NB0 AST back to normalized markdown.

nnode handle

Markdown source string.

(md-emit (md-parse "# Title"))

Since: NB0

defn

md-emit-html

(md-emit-html [n :int])
Internal definitions
nil-value
list-nil?
cons
tail
__str-concat
__repeat-char
__int->cstr
__int-as-cstr
__cstr-as-int
__cstr-eq?
__prefix-lines
__format-list-item
__md-void
__md-inline-fill
__md-upgrade-gfm-node
__md-upgrade-gfm-list
__md-upgrade-gfm
__md-annotate-inline-list
__md-annotate-inlines
__md-parse-blocks-- parse a markdown string into a block-level AST.
__emit-nodes-with-sep
__emit-list-items
__table-align-mark
__emit-table-row-cells
__emit-table-align-cells
__emit-table-row
__emit-table-body-rows
__emit-table-node
__emit-node-int
__html-escape-math
__html-escape
__emit-inline-plain-list
__emit-inline-html-list
__emit-block-html-list
__emit-inline-plain-node-int
__emit-image-html-int
__emit-inline-html-node-int
__table-align-attr
__emit-table-cells-html
__emit-table-row-html
__emit-table-body-html
__emit-table-html-int
__emit-heading-html-int
__emit-block-html-node-int