Egui::Markdown
Inherits Egui::Widget < Reference < Object
Constants
Fenced-code background (non-inline blocks; the inline chip is RichLabel::INLINE_CODE_BG).
Default page background — white, a reader page. nil via
background: nil disables it (transparent over the panel).
Default horizontal reading padding (the text never touches the
window edges); override per widget with pad_x:.
HTML-ish heading scale over the style's font size; all bold. h1/h2 are GitHub's 2em/1.5em — 32/24px at the default 16px body.
Horizontal rule stroke: soft gray, ~70% opacity.
Horizontal rules carry at least this much breathing room above and below the line.
Constructors
Class methods
Block model of a markdown source. Pure string surgery — the rendering side never re-reads the source.
Instance methods
Root relative image paths resolve against (nil = paths stay as written — cwd-relative). Page background behind the rendered blocks (nil = transparent).
Root relative image paths resolve against (nil = paths stay as written — cwd-relative). Page background behind the rendered blocks (nil = transparent).
Short human label for the inspector (the button's text, a label's text…); nil = no meaningful label.
Link click interceptor for a markdown viewer: receives the RAW markdown target (url or relative path). Nil = the default — http(s) through the browser, anything else resolved against #base_dir and opened by the OS double-click handler.
Link click interceptor for a markdown viewer: receives the RAW markdown target (url or relative path). Nil = the default — http(s) through the browser, anything else resolved against #base_dir and opened by the OS double-click handler.
The stylable properties of THIS widget kind: the StyleVars
keys its #ui actually reads, declared here — not hardcoded in
the inspector. StyleProps.textlike / .buttonlike provide the
common sets. An empty list (the default) means the widget reads
no style keys and the inspector shows it as non-stylable.