/

On this page

Pipeline - Rendering

Main packages: core.rendering

Rendering modules: quarkdown-html, quarkdown-plaintext

Once the AST is fully generated and enriched, it is time to translate it into a target format, such as HTML.

This translation is performed via a depth-first traversal of the AST, starting from the root. Each visit to a node produces some output (in the case of HTML, an element tag) which, ideally in a one-to-one fashion, translates the information stored by the node into the target format.

To ensure scalability, Quarkdown locates each rendering target in external modules, such as quarkdown-html, which can be plugged into the core architecture.


Example Markdown input:

## Title

This is **bold** and _italic_ text.

- Item 1
- Item 2

Output HTML:

<h1>Title</h1>
<p>This is <strong>bold</strong> and <em>italic</em> text.</p>
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
</ul>