Open jfmengels opened 3 years ago
#
is 6:
#Title
is pretty much always meant as # Title
You might find markdownlint to be a useful reference here as well. I actually use markdownlint in VS Code and find it helpful for things like making sure heading levels don't skip a level.
https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
What the rule should do:
Report when (module/function/type) documentation contains what looks like a title but isn't.
What problems does it solve:
Fixes a Markdown issue that can surprise documentation authors.
Example of things the rule would report:
Here's an example of the result: https://package.elm-lang.org/packages/stil4m/elm-syntax/7.2.6/Elm-Syntax-Infix (
#Types
)Multiplying the number of
#
'sExample of things the rule would not report:
When (not) to enable this rule:
This can probably have some false positives, if authors genuinely want to start a line with
#
.I am looking for:
#
for titles.(cc @dillonkearns who might know some of the answers)