Skip to content

Latest commit

 

History

History
70 lines (57 loc) · 3.62 KB

block-types.md

File metadata and controls

70 lines (57 loc) · 3.62 KB

Block Types

All block types derive from the base class MdBlock.

Container blocks

  • MdContainerBlock does not represent a syntactic construct in the markdown document but serves as a means to combine multiple blocks into one. For example, MdDocument has a single root block that represents the entire document. To build a document that contains multiple blocks, they are wrapped in an instance of MdContainerBlock
  • MdBlockQuote: Reprents a block quote The quoted content can be any other block (typically MdParagraph).
  • MdListItem: Represents an list item. Whether the item an item in an ordered list or a bullet list, depdens on whether the item is added to a MdOrderedList or a MdBulletList

Leaf blocks

Lists

Strictly speaking, lists are neither container blocks nor leaf blocks. Lists cannot directly contain other blocks, but a sequence of MdListItem instances that in turn are container blocks.

There are two types of lists:

Extension blocks

The namespace Grynwald.MarkdownGenerator.Extensions provides additional block types that implement elements supported by most Markdown renderers. Use with caution.