Inline content that is part of the text flow.
- text {i : Type u} (string : String) : Inline i
Textual content.
- emph {i : Type u} (content : Array (Inline i)) : Inline i
Emphasis, typically rendered using italic text.
- bold {i : Type u} (content : Array (Inline i)) : Inline i
Strong emphasis, typically rendered using bold text.
- code {i : Type u} (string : String) : Inline i
Inline literal code, typically rendered in a monospace font.
- math {i : Type u} (mode : MathMode) (string : String) : Inline i
Embedded TeX math, to be rendered by an engine such as TeX or KaTeX. The
modedetermines whether it is rendered in inline mode or display mode; even display-mode math is an inline element for purposes of document structure. - linebreak {i : Type u} (string : String) : Inline i
A user's line break. These are typically ignored when rendering, but don't need to be.
- link {i : Type u} (content : Array (Inline i)) (url : String) : Inline i
A link to some URL.
- footnote {i : Type u} (name : String) (content : Array (Inline i)) : Inline i
A footnote. In Verso's concrete syntax, their contents are specified elsewhere, but elaboration places the contents at the use site.
- image {i : Type u} (alt url : String) : Inline i
An image.
altshould be displayed if the image can't be shown. - concat {i : Type u} (content : Array (Inline i)) : Inline i
A sequence of inline elements.
- other {i : Type u} (container : i) (content : Array (Inline i)) : Inline i
A genre-specific inline element.
containerspecifies what kind of element it is, andcontentspecifies the contained elements.
Instances For
An item in either an ordered or unordered list.
- contents : Array α
The contents of the list item.
Instances For
Block-level content in a document.
- para {i : Type u} {b : Type v} (contents : Array (Inline i)) : Block i b
A paragraph.
- code {i : Type u} {b : Type v} (content : String) : Block i b
A code block.
- ul {i : Type u} {b : Type v} (items : Array (ListItem (Block i b))) : Block i b
An unordered list.
- ol {i : Type u} {b : Type v} (start : Int) (items : Array (ListItem (Block i b))) : Block i b
An ordered list.
- dl {i : Type u} {b : Type v} (items : Array (DescItem (Inline i) (Block i b))) : Block i b
A description list that associates explanatory text with shorter items.
- blockquote {i : Type u} {b : Type v} (items : Array (Block i b)) : Block i b
A quotation.
- concat {i : Type u} {b : Type v} (content : Array (Block i b)) : Block i b
Multiple blocks, merged.
- other {i : Type u} {b : Type v} (container : b) (content : Array (Block i b)) : Block i b
A genre-specific block.
containerspecifies what kind of block it is, whilecontentspecifies the content within the block.
Instances For
An empty block with no content.
Instances For
A logical division of a document.
The part's title
- titleString : String
A string approximation of the part's title, for use in contexts where formatted text is invalid.
- metadata : Option p
Genre-specific metadata
The part's textual content
Sub-parts (e.g. subsections of a section, sections of a chapter)
Instances For
A Verso document, which is a sequence of blocks. Its syntax is produced by Lean.Doc.Parser.document.
Use VersoDocument.view or TSyntax.getVersoBlocks to extract its contents.