Skip to content

Concepts

Read these pages when you want to understand how Markbridge works, or before you change how it works:

  • Architecture — the three steps of a conversion and why they are separate.
  • The AST — the node types, the rules of the tree, and how to build and walk it.
  • Result objects — what a conversion returns: Conversion and Parse.
  • Parsers — how each of the four parsers works and where they differ.
  • Renderers — the Discourse renderer, its tags, and what a tag can ask the renderer.
  • AST normalization — the step that rewrites nesting Markdown cannot express.
  • Performance — what to reuse, the limits of the parsers, and how to measure your own input.
  • Benchmark results — recorded measurements on CRuby, JRuby and TruffleRuby.