sigildocs

(sigil publish model)

(sigil publish model) - Document Model

Abstract representation of document content using structs. All content formats (Markdown, Org, SXML) are converted to this intermediate representation for uniform processing.

Each struct has an optional attrs field (alist) for arbitrary metadata like IDs, CSS classes, or format-specific hints.

Exports

documentprocedure

Construct a document struct.

document?procedure

Test if a value is a document struct.

Get the metadata field of a document struct.

Get the children field of a document struct.

Get the attrs field of a document struct.

headingprocedure

Construct a heading struct.

heading?procedure

Test if a value is a heading struct.

heading-levelprocedure

Get the level field of a heading struct.

heading-titleprocedure

Get the title field of a heading struct.

Get the children field of a heading struct.

heading-attrsprocedure

Get the attrs field of a heading struct.

paragraphprocedure

Construct a paragraph struct.

paragraph?procedure

Test if a value is a paragraph struct.

Get the children field of a paragraph struct.

Get the attrs field of a paragraph struct.

code-blockprocedure

Construct a code-block struct.

code-block?procedure

Test if a value is a code-block struct.

Get the language field of a code-block struct.

Get the content field of a code-block struct.

Get the attrs field of a code-block struct.

blockquoteprocedure

Construct a blockquote struct.

blockquote?procedure

Test if a value is a blockquote struct.

Get the children field of a blockquote struct.

Get the attrs field of a blockquote struct.

list-nodeprocedure

Construct a list-node struct.

list-node?procedure

Test if a value is a list-node struct.

Get the ordered? field of a list-node struct.

Get the children field of a list-node struct.

Get the attrs field of a list-node struct.

list-itemprocedure

Construct a list-item struct.

list-item?procedure

Test if a value is a list-item struct.

Get the children field of a list-item struct.

Get the attrs field of a list-item struct.

tableprocedure

Construct a table struct.

table?procedure

Test if a value is a table struct.

table-headersprocedure

Get the headers field of a table struct.

table-rowsprocedure

Get the rows field of a table struct.

table-attrsprocedure

Get the attrs field of a table struct.

Construct a horizontal-rule struct.

Test if a value is a horizontal-rule struct.

Get the attrs field of a horizontal-rule struct.

textprocedure

Construct a text struct.

text?procedure

Test if a value is a text struct.

text-contentprocedure

Get the content field of a text struct.

text-attrsprocedure

Get the attrs field of a text struct.

boldprocedure

Construct a bold struct.

bold?procedure

Test if a value is a bold struct.

bold-childrenprocedure

Get the children field of a bold struct.

bold-attrsprocedure

Get the attrs field of a bold struct.

italicprocedure

Construct a italic struct.

italic?procedure

Test if a value is a italic struct.

Get the children field of a italic struct.

italic-attrsprocedure

Get the attrs field of a italic struct.

codeprocedure

Construct a code struct.

code?procedure

Test if a value is a code struct.

code-contentprocedure

Get the content field of a code struct.

code-attrsprocedure

Get the attrs field of a code struct.

link?procedure

Test if a value is a link struct.

imageprocedure

Construct a image struct.

image?procedure

Test if a value is a image struct.

image-srcprocedure

Get the src field of a image struct.

image-altprocedure

Get the alt field of a image struct.

image-attrsprocedure

Get the attrs field of a image struct.

refprocedure

Construct a ref struct.

ref?procedure

Test if a value is a ref struct.

ref-targetprocedure

Get the target field of a ref struct.

ref-textprocedure

Get the text field of a ref struct.

ref-attrsprocedure

Get the attrs field of a ref struct.

assetprocedure

Construct a asset struct.

asset?procedure

Test if a value is a asset struct.

asset-pathprocedure

Get the path field of a asset struct.

Get the mime-type field of a asset struct.

asset-attrsprocedure

Get the attrs field of a asset struct.