This document contains a description of all HC rules.
Tags: line_length
Aliases: heading-increment, header-length-x
This rule is triggered when a heading is longer than the set limit.
Rationale: Overely long headings are hard to read and display (especially in lists and other navigation).
Tags: images
Aliases: no-missing-images
This rule is triggered when a linked image does not exist.
Check if the image has been removed or renamed.
Tags: front-matter
Aliases: valid-front-matter
This rule is triggered when a valid front matter couldn't be found.
A front matter with the title
variable only should look exactly like this:
---
title: "Some article title"
---
Read more about front matter here.
Tags: front-matter
Aliases: front-matter-variables-required
The front matter must specify all required variables.
Fix it by adding the missing variable to the front matter.
Note that the error can also be triggered by a mispelling, such as
---
tile: "Article title"
---
instead of
---
title: "Article title"
---
Tags:
Aliases: front-matter-variables-unrecognized
This rule is triggered if a variable in the front matter is not allowed for in the rule configuration.
Fix it by removing the specified variable from the front matter.
Note that the error can also be triggered by a mispelling, such as
---
tile: "Article title"
---
instead of
---
title: "Article title"
---
Tags: line_length
Aliases: title-length-x
This rule is triggered when a title is longer than the set limit.
Rationale: Overely long titles are hard to read and display (especially in lists and other navigation).
Tags: headings, headers
Aliases: heading-increment-x, header-increment-x
Improves on MD001 by:
- Printing the offending heading for context
- Catches skipped heading levels after front matter, for example:
---
title: "Example title"
---
### Level 3 heading
Tags: filenames
Aliases: filename-match
Enforces a filename standard based on the article title.
Starting with the article title, the filename is determined by following these steps:
- Remove all single quotes
'
and double quotes"
- Convert all sequences (1 or more) of non-alphanumeric characters to a single dash
-
- Remove any leading or trailing dash
-
- Append the
.md
extension
Resolve the error by renaming the file to the expected filename.