doc/markdownlint-rules-grav-pages
2024-03-02 04:33:13 +01:00
..
lib fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00
rules fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00
tests fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00
.eslintrc fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00
.gitignore fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00
.travis.yml fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00
CHANGELOG.md fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00
LICENSE add license for Markdown Lint Rules for Grav Pages 2024-03-02 02:15:16 +01:00
package-lock.json fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00
package.json fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00
README.md fix markdownlint-rules-grav-pages 2024-03-02 04:33:13 +01:00

Markdown Lint Rules for Grav Pages

Build Status

This package contains additional linting rules for markdownlint that check if a Markdown file is a valid Grav CMS page.

Rules

valid-images

  • Checks if a relatively referenced image is present.
  • Checks if a link to a another markdown file in the same repo is correct.

valid-metadata-block

  • Checks if a Frontmatter metadata block is present and valid.

Usage

See https://github.com/DavidAnson/markdownlint/blob/master/doc/CustomRules.md

Development

To lint all source files run:

$ npm run lint

To run all tests:

$ npm run test

To release a new version, ensure that the checkout is clean, then run:

$ npm run release && git push --follow-tags origin master && npm publish