LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

markdownlint

style checker and linter for Markdown files

TLDR

Lint Markdown file
$ markdownlint [file.md]
copy
Lint directory
$ markdownlint [docs/]
copy
Fix issues automatically
$ markdownlint --fix [file.md]
copy
Use config file
$ markdownlint --config [.markdownlint.json] [file.md]
copy
Ignore specific rules
$ markdownlint --disable [MD013] [MD033] -- [file.md]
copy
Output JSON format
$ markdownlint --json [file.md]
copy

SYNOPSIS

markdownlint [options] files...

DESCRIPTION

markdownlint is a style checker and linter for Markdown files. It enforces consistent Markdown formatting based on configurable rules.The tool checks for issues like inconsistent heading styles, line length, trailing spaces, and proper list formatting.

PARAMETERS

-f, --fix

Fix issues automatically.
-c, --config file
Configuration file.
-d, --disable rules
Disable rules.
-e, --enable rules
Enable rules.
-i, --ignore pattern
Ignore files.
-o, --output file
Output file.
-j, --json
JSON output.

CONFIGURATION

$ // .markdownlint.json
{
  "MD013": { "line_length": 120 },
  "MD033": false,
  "MD041": false
}
copy

COMMON RULES

$ MD001 - Heading increment
MD013 - Line length
MD022 - Heading blank lines
MD033 - Inline HTML
copy

INSTALL

sudo pacman -S markdownlint
copy

CAVEATS

CLI (markdownlint-cli) separate from library. Rules may conflict with some Markdown processors. Auto-fix limited to some rules.

HISTORY

markdownlint was created by David Anson as a Node.js library, with the CLI wrapper (markdownlint-cli) developed separately.

SEE ALSO

prettier(1), markdown(1), vale(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid