Expand description
The article lenses: formatted view, source view, and export.
Two lenses render the same document value side by side – a formatted view
(outline plus a block canvas) and a source view (each block’s raw value).
Embedded live blocks render through scene/embed: a runtime value drawn by
its own lens inside the article, using a cached output when one is attached.
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: the title and each block’s raw value as text.
- export_
intermediate - The stable intermediate document value used for export. Export formats are derived from this single IR; here it is the normalized document value.
- export_
markdown - A Markdown export stub over the stable intermediate document value.
- with_
cache - Attach a cached rendered output (a Scene) to an embed block.