Reference TMarkDownStyle
Declared in Codebot.Render.Widgets.Custom.pas on line 110
TMarkDownLabel is a label which draws its text as markdown. Set MaxWidth to wrap the text to a width, which is then the width of the label. Without a MaxWidth each paragraph is one line. The height of the label fits the text.
These parts of markdown are drawn:
# Heading, ## Heading, ### Heading (and deeper levels)
Paragraphs, which are separated by blank lines. Lines next to each other
are joined. End a line with two spaces or a backslash to break it.
**bold**, __bold__, *italic*, _italic_, ***bold italic***, `code`
[links](url), drawn underlined
- bullets, * bullets, + bullets, and 1. numbered lists, indented two
spaces for each level
> block quotes
``` fenced code blocks ```
--- horizontal rules
\ escapes the next character
Paragraphs, which are separated by blank lines. Lines next to each other
are joined. End a line with two spaces or a backslash to break it.
**bold**, __bold__, *italic*, _italic_, ***bold italic***, `code`
[links](url), drawn underlined
- bullets, * bullets, + bullets, and 1. numbered lists, indented two
spaces for each level
> block quotes
``` fenced code blocks ```
--- horizontal rules
\ escapes the next character
The text uses the NotoSans fonts and DejaVuSansMono from the fonts folder
of the render context assets. A font which can not be loaded is replaced
by the theme font. FontSize is the size of plain text, and when it is zero
the size of the theme font is used.
of the render context assets. A font which can not be loaded is replaced
by the theme font. FontSize is the size of plain text, and when it is zero
the size of the theme font is used.
TMarkDownStyle = (mdRegular, mdBold, mdItalic, mdBoldItalic, mdCode);