Rules#

gomarklint currently runs the following checks (ordered as executed):

Rule keyWhat it detectsNotes / Options
final-blank-lineMissing final blank line at EOFToggle: --enable-final-blank-line-check (default on)
unclosed-code-blockUnclosed fenced code blocks (```)Always on
empty-alt-textImage syntax with an empty alt textAlways on
heading-levelInvalid heading level progression (e.g., H2 → H4 skip)Toggle: --enable-heading-level-check (default on) / --min-heading (default 2)
duplicate-headingDuplicate headings within one fileToggle: --enable-duplicate-heading-check (default on)
no-multiple-blank-linesMultiple consecutive blank linesToggle: --enable-no-multiple-blank-lines-check (default on)
external-linkExternal links that fail validationToggle: --enable-link-check (default off). Skips URLs that match --skip-link-patterns (regex).
no-setext-headingsSetext heading used instead of ATX styleToggle: --enable-no-setext-headings-check (default on)

Execution details#

  • Files/dirs are expanded with ignore patterns from config.
  • Per-file issues are sorted by line asc before printing.
  • Line count is computed as \n count + 1 for reporting.