No description
This repository has been archived on 2026-04-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
JMARyA 6d3395c23a
Some checks failed
ci/woodpecker/push/build/2 Pipeline failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build/1 Pipeline failed
deprecate in favour of jsaw
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 22:48:59 +02:00
.woodpecker update 2025-06-28 01:53:47 +02:00
src deprecate in favour of jsaw 2026-04-15 22:48:59 +02:00
.gitignore init 2023-10-30 13:29:13 +01:00
Cargo.lock chore(deps): update rust crate clap to v4.5.56 2026-01-29 16:47:13 +00:00
Cargo.toml chore(deps): update rust crate jsonschema to 0.40 2026-01-18 01:05:11 +00:00
flake.lock chore: nix flake 2025-11-30 22:24:56 +01:00
flake.nix chore: nix flake 2025-11-30 22:24:56 +01:00
PKGBUILD update 2025-06-28 01:53:47 +02:00
README.md deprecate in favour of jsaw 2026-04-15 22:48:59 +02:00
renovate.json Add renovate.json 2025-06-21 21:37:27 +00:00

mdlint

Deprecated. mdlint is no longer maintained. All functionality has been absorbed into jsaw.

Migration:

# mdlint schema.json doc.md
jsaw validate doc.md --schema schema.json

# mdlint --greedy schema.json doc.md
jsaw validate doc.md --schema schema.json --greedy

# mdlint --empty-frontmatter schema.json doc.md
jsaw validate doc.md --schema schema.json --empty-frontmatter

# mdlint --ignore-missing-frontmatter schema.json doc.md
jsaw validate doc.md --schema schema.json --ignore-missing-frontmatter

# Validate a whole directory recursively
jsaw validate ./docs --schema schema.json --recursive

Validate markdown frontmatter using JSON Schemas

Usage

$ mdlint [OPTIONS] <SchemaFile> <MarkdownFile> 

Options

Option Description
-g, --greedy Require all properties to be present even if they are not strictly required in schema
-e, --empty-frontmatter Treat missing frontmatter as empty frontmatter
-i, --ignore-missing-frontmatter Dont print an error when no frontmatter has been found
-h, --help Print help
-V, --version Print version