Skip to content

Diagnostics

MDLeaf checks your document as you type. Problems appear as wavy underlines and gutter markers in the editor, and in the problems panel (macOS: ⇧⌘;, Windows and Linux: Ctrl+Shift+;). F8 and macOS: ⇧F8, Windows and Linux: Shift+F8 jump between them.

This table is generated from MDLeaf’s source code.

CodeSeverityFix
directive-unknownwarningCheck the spelling. Known directives: pagebreak, toc, header, footer, hide, pagenumber.
directive-misplacedwarningMove the directive to the start of a top-level line: no indentation, not inside a list or quote.
directive-attr-unknownwarningRemove the attribute; see the directive’s attribute table.
directive-attr-invaliderrorFix the value (for example depth=1–6, start=whole number).
image-attr-unknownwarningUse only width, height and align.
image-attr-invaliderrorUse a number with px, %, mm, cm, in or pt; align is left, center or right.
placeholder-unknownwarningUse {page} or {pages}; write {{ and }} for literal braces.
html-disallowedwarningRemove the tag; scripts, styles, frames and forms never reach the preview or PDF.
asset-missingerrorUpload the image, fix the path, or pick an existing image with Insert image.
asset-outsideerrorStore images under assets/ (paste or upload them in MDLeaf).
math-errorerrorFix the LaTeX; the KaTeX message tells you where.
block-oversizedwarningShorten the block or split it; images can be given a smaller height.
CodeMessage
directive-unknownUnknown directive ‘::name’.
directive-misplacedDirectives only work at the start of a top-level line.
directive-attr-unknown‘key’ is not an attribute of ::name.
directive-attr-invalidInvalid value for ‘key’ in ::name: reason. The directive is ignored.
image-attr-unknownImage attribute ‘key’ is not supported (use width, height, align).
image-attr-invalidInvalid image key ‘value’.
placeholder-unknownUnknown placeholder ‘{name}’ (use {page} or {pages}).
html-disallowed<tag> is removed from the preview and PDF.
asset-missingImage not found: path.
asset-outsideImages must be stored under assets/ (found path).
math-errorMath error: KaTeX message.
block-oversizedThis table is taller than one page and will be split across pages.

block-oversized appears only in page view.

Document-level problems — a missing profile or theme, a URL theme that could not be refreshed, invalid overrides, or linked-folder issues — are listed at the top of the problems panel.