-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint markdown in PRs #62
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
34fea04
to
9698d1f
Compare
Rebased to work with the new Jekyll 4.x deployment |
Also adds a .markdownlint.yaml file for use with markdownlint-cli We use a fork for the markdown-cli action The original action uses an old version of markdownlint-cli that triggers some false-positives with MD051 that doesn't support predefined ID's for sections
9698d1f
to
8e9d4ab
Compare
This is a hack to get some specific styling on the website Currently the hack lexer supports '#' comments, anything else is parsed as text
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some style consistency issues.
Worth considering if we want to add markdown linting via docker image to avoid pulling node/npm:
|
Nice, will test which is faster before merging. |
Co-authored-by: Oscar Ivan Silvestre <[email protected]>
Co-authored-by: Oscar Ivan Silvestre <[email protected]>
I think its current state can be merged now as-is, but I'm leaving that decision to you @gonX since I'm not sure if you still have some other plans for this PR. Fwiw, the docker thing can just be done on a later PR as it doesn't change anything functionally. |
Ok, makes sense |
Lints markdown with
markdownlint-cli
with the GitHub action nosborn/github-action-markdown-cli.Uses my local fork until a PR is merged that we need: nosborn/github-action-markdown-cli#64
Notes
Fragments to other pages does not seem to be verified (e.g.less of a concern with workflows: Add HTML Verification #76{% link /index.md %}#myid %}
)<ol>
's are not linted for indentation. We can't reasonably lint for this even with a custom rule so I've tried to make sure code blocks are indented correctly with this PR.