No matching definitions.

notebook/format

src/notebook/format.tur
defn

node-tag

(node-tag [node :int])

return 0 for prose nodes and 1 for cell nodes.

defn

node-prose

(node-prose [node :int])

extract the md-node handle from a prose node.

defn

node-cell

(node-cell [node :int])

extract the cell handle from a cell node.

defn

parse-string

(parse-string [s :cstr])

parse notebook markdown into prose and cell nodes.

defn

parse-file

(parse-file [path :cstr])

read a notebook file from disk and parse it.

defn

nodes->str

(nodes->str [nodes :int])

serialize notebook nodes back to normalized markdown.

defn

nodes-update-cell

(nodes-update-cell [nodes :int cell-id-want :cstr new-source :cstr])

replace the source of a named cell in an immutable node list.

Internal definitions
__fmt-nil-value
__fmt-list-nil?
__fmt-cons
__fmt-head
__fmt-tail
__ok
__err
__fmt-cstr-eq?
__fmt-str-concat
__fmt-cstr-as-int
__fmt-int-as-cstr
__fmt-slurp
__fmt-cstr-free
__fmt-cstr-null?
__fmt-node-make
__node-prose-make
__node-cell-make
__lang-from-info
__lang-label
__span-start
__span-end
__inject-no-check-attr
__block->node
__blocks->nodes
__render-attr-list
__render-attrs
__render-node
__nodes->str-int
__copy-cell-with-source
__replace-node-if-match
__node-list-has-cell?
__replace-node-list