Expand description
The article lenses: formatted view, source view, edit decoding, and export.
Both lenses render one shared sim_codec_doc::MarkupDoc value. The
formatted lens projects semantic blocks to Scene nodes, the source lens shows
the deterministic source text for the same markup value, and intent decoding
turns validated edit-field gestures into reversible markup edits.
Constants§
- ARTICLE_
FORMATTED_ LENS - The formatted article lens id.
- ARTICLE_
SOURCE_ LENS - The source article lens id.
Functions§
- article_
formatted - Render the formatted article: outline plus a block canvas.
- article_
outline - The outline: a tree of the article’s section headings.
- article_
source - Render the source article as deterministic source text.
- export_
intermediate - The stable intermediate document value used for export.
- export_
markdown - Export the document through the shared markup source writer.
- markup_
edit_ from_ intent - Decode a document edit Intent into a reversible markup edit.
- with_
cache - Attach a cached rendered output (a Scene) to an embed block.