MarkUP GitHub

Diagnostic reference

Every problem MarkUP reports has a stable code. Tools can filter on codes; messages may improve between versions.

Severities are the defaults; a few diagnostics use a different severity in specific situations (for example, chart length mismatches are warnings).

Syntax

CodeNameSeverityMeaning
MU1001unclosed-directiveerrorA container directive was never closed with a ::: fence.
MU1002implicitly-closed-directiveerrorA container directive was closed implicitly by the closing fence of an outer directive or by the end of its parent block.
MU1003stray-closing-fenceerrorA closing fence does not match any open container directive at this nesting level.
MU1004short-closing-fenceerrorA closing fence is shorter than the opening fence of the innermost open directive.
MU1005directive-trailing-contenterrorUnexpected text after a block directive’s name, label or attributes.
MU1006directive-name-spacingwarningWhitespace between the colons and a directive name (::: note). The directive is still recognised; write :::note.
MU1007unterminated-labelerrorA directive label [ is not closed on the same line.
MU1008unterminated-attributeserrorAn attribute block { is not closed.
MU1009invalid-attributeerrorAn attribute block contains something that is not an id, class or key/value pair.
MU1010duplicate-attributewarningThe same attribute key appears more than once; the last value wins.
MU1011unclosed-code-fencewarningA fenced code block runs to the end of its container without a closing fence.
MU1012comment-problemwarningA <!-- comment block is never closed with -->, or has text after --> that is hidden with it.
MU1013missing-directive-nameerrorA directive fence is not followed by a name.
MU1014table-extra-cellswarningA table row has more cells than the header; the extra cells are dropped.
MU1015nesting-too-deeperrorNesting exceeds the parser’s depth limit; deeper structure is flattened into text.
MU1016unclosed-front-matterwarningA front matter block opened with --- on the first line is never closed.

MarkUP Data

CodeNameSeverityMeaning
MU1501data-syntaxerrorMarkUP Data (front matter or a data body) is malformed.
MU1502data-duplicate-keyerrorA key appears twice in the same MarkUP Data mapping; the later entry is ignored.
MU1503data-tab-indenterrorMarkUP Data indentation must use spaces, not tabs.
MU1504data-unterminated-stringerrorA quoted string in MarkUP Data is not closed on its line.

Validation

CodeNameSeverityMeaning
MU2001unknown-directivewarningNo component with this name is registered.
MU2002directive-form-not-allowederrorThe component cannot be used in this form (inline, leaf or container).
MU2003unknown-attributewarningThe component does not declare this attribute.
MU2004invalid-attribute-valueerrorAn attribute value does not match the component’s schema.
MU2005missing-attributeerrorA required attribute is missing.
MU2006missing-labelerrorThe component requires a [label].
MU2007unexpected-labelwarningThe component does not use a [label]; it is ignored.
MU2008invalid-parenterrorThe component is placed inside a parent that does not allow it.
MU2009invalid-childerrorThe component only accepts specific children.
MU2010invalid-dataerrorA data body or front matter value does not match its schema.
MU2011missing-bodyerrorThe component requires a body.
MU2020duplicate-idwarningTwo elements share the same id.
MU2021undefined-footnotewarningA footnote reference has no matching definition.
MU2022unused-footnotehintA footnote definition is never referenced.
MU2023unsafe-urlwarningA link or image URL uses a scheme that renderers refuse to output.
MU2024duplicate-definitionwarningA link reference or footnote label is defined more than once; the first definition wins.
MU2025unresolved-anchorwarningA #fragment link does not match any heading or id in the document.

Internal

CodeNameSeverityMeaning
MU9001internal-errorerrorThe parser hit an internal error. Please report it.