notebook/cell
src/notebook/cell.tur
defn
attr-name
(attr-name [attr : int])
defn
attr-value
(attr-value [attr : int])
defn
parse-attrs
(parse-attrs [s : cstr])
parse a Quarto-style attribute block from a fence info string.
defn
attr-get
(attr-get [attrs : int name : cstr fallback : cstr])
fetch an attribute value or return the provided default.
defn
attr-get-bool
(attr-get-bool [attrs : int name : cstr fallback : int])
parse a boolean attribute into 0 or 1.
defn
attr-get-int
(attr-get-int [attrs : int name : cstr fallback : int])
parse an integer attribute with a default fallback.
defn
cell-make
(cell-make [id : cstr lang : int source : cstr attrs : int start-line : int end-line : int])
create a notebook cell handle.
defn
cell-id
(cell-id [cell : int])
defn
cell-lang
(cell-lang [cell : int])
defn
cell-source
(cell-source [cell : int])
defn
cell-attrs
(cell-attrs [cell : int])
defn
cell-start-line
(cell-start-line [cell : int])
defn
cell-end-line
(cell-end-line [cell : int])
defn
cells-assign-ids
(cells-assign-ids [cells : int])
fill in missing cell ids with sequential cell-N names.
Internal definitions
__cell-nil-value__cell-list-nil?__cell-cons__cell-head__cell-tail__cell-cstr-eq?__cell-str-concat__cell-int->cstr__reverse-list__attr-make__assign-cell-id__cells-assign-ids-rev