No matching definitions.

notebook/render-md

src/notebook/render-md.tur

render notebook documents to markdown with output blocks.

defn

render-opts-make

(render-opts-make [output_dir : cstr use_cache : int include_source : int include_output : int fail_fast : int])
defn

render-opts-output-dir

(render-opts-output-dir [opts : int])
defn

render-opts-use-cache

(render-opts-use-cache [opts : int])
defn

render-opts-include-source

(render-opts-include-source [opts : int])
defn

render-opts-include-output

(render-opts-include-output [opts : int])
defn

render-opts-fail-fast

(render-opts-fail-fast [opts : int])
defn

render-opts-set-math-mode

(render-opts-set-math-mode [opts : int mode : int])

set math rendering mode on an opts value.

defn

render-opts-set-assets-mode

(render-opts-set-assets-mode [opts : int mode : int])

set asset embedding mode (0=inline 1=sibling).

defn

default-render-opts

(default-render-opts)
defn

render-opts-free

(render-opts-free [opts : int])

release a RenderOpts. Safe on 0.

defn

render-md-string

(render-md-string [nodes : int outputs : int opts : int])

render a parsed notebook and its outputs to markdown.

defn

render-md

(render-md [path : cstr opts : int])

evaluate a notebook file and write rendered markdown beside it.

Internal definitions
__rmd-build-hint
__rmd-nil-value
__rmd-list-nil?
__rmd-cons
__rmd-head
__rmd-tail
__rmd-ok
__rmd-err
__rmd-result-ok?
__rmd-result-ok-val
__rmd-cstr-eq?
__rmd-cstr-empty?
__rmd-cstr-as-int
__rmd-int-as-cstr
__rmd-cstr-free
__rmd-str-concat
__rmd-strdup-- an owned copy of a borrowed string.
__rmd-join-owned-- join two OWNED blocks with a blank line, releasing
__rmd-join-blocks
__rmd-int->cstr
__rmd-output-path
__rmd-ensure-parent-dir
__rmd-write-file
__rmd-close-cache
__rmd-lang-label
__rmd-render-attr-list
__rmd-render-attrs
__rmd-attrs-wrap-- " {" + inner + "}" in one allocation.
__rmd-render-source-block-- the ```lang {attrs}\n<source>\n``` fence.
__rmd-source-fence
__rmd-output-fence
__rmd-render-cell-block-- source fence and/or output fence for one cell.
__rmd-render-state-make
__rmd-render-state-text
__rmd-render-state-outputs
__rmd-render-state-adopt-- build a state that TAKES OWNERSHIP of `text`.
__rmd-state-take-text-- hand the text out and clear the field, so the
__rmd-render-state-free-- release a state and its text. Safe on 0.
__rmd-render-nodes-- fold the node list into one rendered block.
__rmd-cells-from-nodes-rev
__rmd-reverse-- reverse a list, consuming its cons cells.
__rmd-cons-free-- free one cons cell, leaving its head alone.
__rmd-spine-free-- free a cons spine, leaving the heads alone. Used for
__rmd-cells-from-nodes
__rmd-list-length
__rmd-result-box-free-- release a Result box after taking its payload.
__rmd-noop-- void no-op, so a cleanup-only `if` has void on both arms.