How block and inline elements work in Fizz
masterThe markdown.Builder distinguishes between two types of elements:
- Block elements: These are concatenated to the underlying builder buffer. They typically represent structural components like headers, paragraphs, or lists.
- Inline elements: These are returned directly as strings and are intended to be used within other elements (like inside a paragraph or a list item).
Block Elements
- Headers:
H1,H2,H3,H4,H5,H6 - Paragraph:
P - Line:
Line(similar to a paragraph but without a trailing line break) - Line break:
BR - Blockquote:
Blockquote - Horizontal rule:
HR - Code:
Code - Lists:
BulletedList,NumberedList(usebuilder.Block().NumberedList(...)for nested lists)
Inline Elements
- Alternative titles:
AltH1,AltH2 - Emphasis:
Emphasis,Italic - Strong emphasis:
StrongEmphasis,Bold - Combined emphasis:
StrongEmphasis - Strikethrough:
Strikethrough - Code:
InlineCode - Link:
Link - Image:
Image