markdown

Concepts

How parsing works, what the AST looks like, and how rendering composes from it.

The library has three layers — parsing, the AST, and rendering. Read this section once and you’ll be able to follow the API surface without surprise.

Pages

  • AST — Document, Block, and Inline — the three families of nodes that come out of parseDocumentContent.
  • Parsing — The pipeline from source string to Document — InputReader, block parsers, inline parsers.
  • Rendering — How blocks and inlines become HTML — escaping, raw HTML, code highlighters, and the XML alternative.