(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
documentprocedureConstruct a document struct.
document?procedureTest if a value is a document struct.
document-metadataprocedureGet the metadata field of a document struct.
document-childrenprocedureGet the children field of a document struct.
document-attrsprocedureGet the attrs field of a document struct.
headingprocedureConstruct a heading struct.
heading?procedureTest if a value is a heading struct.
heading-levelprocedureGet the level field of a heading struct.
heading-titleprocedureGet the title field of a heading struct.
heading-childrenprocedureGet the children field of a heading struct.
heading-attrsprocedureGet the attrs field of a heading struct.
paragraphprocedureConstruct a paragraph struct.
paragraph?procedureTest if a value is a paragraph struct.
paragraph-childrenprocedureGet the children field of a paragraph struct.
paragraph-attrsprocedureGet the attrs field of a paragraph struct.
code-blockprocedureConstruct a code-block struct.
code-block?procedureTest if a value is a code-block struct.
code-block-languageprocedureGet the language field of a code-block struct.
code-block-contentprocedureGet the content field of a code-block struct.
code-block-attrsprocedureGet the attrs field of a code-block struct.
blockquoteprocedureConstruct a blockquote struct.
blockquote?procedureTest if a value is a blockquote struct.
blockquote-childrenprocedureGet the children field of a blockquote struct.
blockquote-attrsprocedureGet the attrs field of a blockquote struct.
list-nodeprocedureConstruct a list-node struct.
list-node?procedureTest if a value is a list-node struct.
list-node-ordered?procedureGet the ordered? field of a list-node struct.
list-node-childrenprocedureGet the children field of a list-node struct.
list-node-attrsprocedureGet the attrs field of a list-node struct.
list-itemprocedureConstruct a list-item struct.
list-item?procedureTest if a value is a list-item struct.
list-item-childrenprocedureGet the children field of a list-item struct.
list-item-attrsprocedureGet the attrs field of a list-item struct.
tableprocedureConstruct a table struct.
table?procedureTest if a value is a table struct.
table-headersprocedureGet the headers field of a table struct.
table-rowsprocedureGet the rows field of a table struct.
table-attrsprocedureGet the attrs field of a table struct.
horizontal-ruleprocedureConstruct a horizontal-rule struct.
horizontal-rule?procedureTest if a value is a horizontal-rule struct.
horizontal-rule-attrsprocedureGet the attrs field of a horizontal-rule struct.
textprocedureConstruct a text struct.
text?procedureTest if a value is a text struct.
text-contentprocedureGet the content field of a text struct.
text-attrsprocedureGet the attrs field of a text struct.
boldprocedureConstruct a bold struct.
bold?procedureTest if a value is a bold struct.
bold-childrenprocedureGet the children field of a bold struct.
bold-attrsprocedureGet the attrs field of a bold struct.
italicprocedureConstruct a italic struct.
italic?procedureTest if a value is a italic struct.
italic-childrenprocedureGet the children field of a italic struct.
italic-attrsprocedureGet the attrs field of a italic struct.
codeprocedureConstruct a code struct.
code?procedureTest if a value is a code struct.
code-contentprocedureGet the content field of a code struct.
code-attrsprocedureGet the attrs field of a code struct.
linkprocedureConstruct a link struct.
link?procedureTest if a value is a link struct.
link-urlprocedureGet the url field of a link struct.
link-childrenprocedureGet the children field of a link struct.
link-attrsprocedureGet the attrs field of a link struct.
imageprocedureConstruct a image struct.
image?procedureTest if a value is a image struct.
image-srcprocedureGet the src field of a image struct.
image-altprocedureGet the alt field of a image struct.
image-attrsprocedureGet the attrs field of a image struct.
refprocedureConstruct a ref struct.
ref?procedureTest if a value is a ref struct.
ref-targetprocedureGet the target field of a ref struct.
ref-textprocedureGet the text field of a ref struct.
ref-attrsprocedureGet the attrs field of a ref struct.
assetprocedureConstruct a asset struct.
asset?procedureTest if a value is a asset struct.
asset-pathprocedureGet the path field of a asset struct.
asset-mime-typeprocedureGet the mime-type field of a asset struct.
asset-attrsprocedureGet the attrs field of a asset struct.