Reference

std/markdown/writer

std/markdown/src/writer.trb

The writer: a document tree back to Markdown, so that reading what it writes gives the same tree. It writes one form for each construct - * and **, fenced code, - and 1. lists, ATX headings where a heading fits on one line - and escapes every character of a text that could be read as markup.

fn markdownOf

fn markdownOf(document: MarkdownDocument): String

A document as Markdown, with its front matter.

extend MarkdownDocument

extend MarkdownDocument

Not documented.

fn markdown

fn markdown(): String

The document as Markdown text, which reads back as this document.