Add markdown linter
marcoieni opened this issue · 3 comments
Problem
Right now we have to manually check if markdown is correct.
Solution
In the rust patterns book we setup an action that checks markdown correctness.
Here it is:
It uses markdownlint in the background and the rules customization is done in this file.
If you like the idea I can set up this for this repo, too.
That would be awesome!
Something related, I thought about using prettier in the repos that have js/ts code to address this VSpaceCode/VSpaceCode#114 like how VSCodeVim does it. (prettier can prettify md files as well)
Although, prettifying is a different than linting, I am wondering should we also have a prettifying process in addition to the lint you are adding?
In the CI prettier would just check if the code is formatted correctly, right?
If so, than it is the same use case of markdownlint for us.
But with markdownlint you can decide which rules to follow and in this way you create the style you like. Can you do this with prettier for markdown?
Anyway I like the idea of using prettier for js/ts in our repos for checking that code is formatted correctly :)
In the CI prettier would just check if the code is formatted correctly, right?
The way vscode vim use it in their CI will format it and rewrite the commit I think.
But with markdownlint you can decide which rules to follow and in this way you create the style you like. Can you do this with prettier for markdown?
I think prettier is fairly limited for their markdown formatting and doesn't seem to provide that much config intentionally.
It seems like lint and formatting are separate process that we probably should have prettier and linting like the CI in vscode repo. Since this feature request is only for listing, I am open to try the markdown lint :)