Sign in Join
FPDoc Onlineexperiment

TMarkdownWriter class

In unit WMarkDown

Markdown output writer with native Markdown formatting

Declaration

pascal
TMarkdownWriter = class(TFormattingWriter)

Inheritance

  1. TMarkdownWriter
  2. TFormattingWriter

Description

TMarkdownWriter generates standard Markdown output from formatted content.

Headers use # symbols (number matches level + 1), bold text uses ** delimiters, italic text uses * delimiters, and underline uses HTML <u> tags. Tables use pipe (|) separators with automatic header row underlining, lists use dash (-) bullets, and code blocks use triple backticks (```).

Special characters are escaped to prevent structural conflicts with Markdown syntax.

See also

  • TFormattingWriter

Methods

CreatepublicCreates a new Markdown writer instance
EscapeTextpublicEscapes special Markdown characters
DocumentStartpublicBegins document with title header
DocumentEndpublicCompletes document output
HeaderStartpublicBegins header with # symbols
HeaderEndpublicCompletes header with blank lines
ParagraphStartpublicBegins paragraph
ParagraphEndpublicCompletes paragraph with blank lines
LineBreakpublicForces line break with trailing spaces
RulepublicWrites horizontal rule
BoldStartpublicBegins bold formatting with double asterisks
BoldEndpublicEnds bold formatting with double asterisks
ItalicStartpublicBegins italic formatting with single asterisk
ItalicEndpublicEnds italic formatting with single asterisk
UnderlineStartpublicBegins underline formatting with HTML tag
UnderlineEndpublicEnds underline formatting with HTML tag
PreformatStartpublicBegins preformatted code block
PreformatEndpublicEnds preformatted code block
TableStartpublicBegins Markdown table with pipe separators
TableEndpublicCompletes table output
RowStartpublicBegins table row with pipe
RowEndpublicCompletes table row with separator line
CellStartpublicBegins table cell with spacing
CellEndpublicCompletes table cell with pipe separator
HeaderCellStartpublicBegins table header cell
HeaderCellEndpublicCompletes table header cell
ListStartpublicBegins list with blank line
ListEndpublicCompletes list with blank line
ListItemStartpublicBegins list item with dash bullet
ListItemEndpublicCompletes list item
DefinitionItempublicWrites definition item with term and description

Inherited

From TFormattingWriter (11)

CellNext Dump DumpLn Header HeaderCellNext ListItem RowNext Stream Write WriteFmt WriteList

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.