-
-
Notifications
You must be signed in to change notification settings - Fork 821
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
feat(vscode): Add DavidAnson.vscode-markdownlint extension #4527
base: develop
Are you sure you want to change the base?
feat(vscode): Add DavidAnson.vscode-markdownlint extension #4527
Conversation
It might be a good idea to also add Code Spell Checker to the list of recommended vscode extensions to easily catch spelling mistakes. Creating a custom project-specific dictionary is as easy as creating a This also applies to GameServerManagers/LinuxGSM-Docs#104 and GameServerManagers/LinuxGSM-Dev-Docs#8, of course. I'd be happy to add this to the pull requests and do a first sweep to collect project-specific words that don't exist in regular English dictionaries, like |
Using this also allows LinuxGSM to use a GitHub Action to spell check all the code when pushing to a branch. |
I am currently using prettier https://prettier.io/ for formatting markdown. I believe I used to use this extension but it and Prettier didn't always agree so I chose to go with Prettier as it supports most of what I need. So in this case this extension might be redundant unless there is a specific requirement that might be useful |
Unfortunately, that's correct. However, I think it would be even better to coordinate the two, so that Prettier can do the quick formatting for developers, and markdownlint can check for convention compliance. This would eliminate many Markdown "errors" from the docs and improve the uniformity across different files and repos. A few examples where conventions are currently not being followed:
One of the "disagreements" between the two is, for example, that Prettier would like to see 3 spaces after lists and markdownlint would like to see only 1 space Prettier:
Markdownlint:
Since Prettier is known to be quite inflexible (for good reason!), markdownlint would have to give way here, which would not be difficult to configure in this case.
In the event that markdownlint is not sufficiently configurable, certain rules could be completely ignored. |
The other issue is that I use gitbook for the docs does have some of its own custom markdown I believe. So we need to keep an eye out for that. I use gitbook itself for editing the docs rather than the raw markdown. I am also unsure how compliant gitbook is with markdown. I did notice that there is no one size fits all markdown standard which is annoying. But in general I like your suggestion. So the only thing I would add to this is the ignore rules for the markdown extension to prevent the markdown extention highlighting prettier conflicts. |
Okay, i'll try to find as many conflicts as possible and configure markdownlint to either agree with prettier or ignore the conflicting rules. Regarding GitBook it doesn't look like markdownlint has anything to say about GitBooks {% hint style="success" %}
To exit debug mode use `CTRL+c`
{% endhint %} Although it prefers regular Image embedding: ![Rocky Linux Logo](../.gitbook/assets/Rocky_Linux.png) Instead of inline html: <figure><img src="../.gitbook/assets/Rocky_Linux.png" alt=""><figcaption></figcaption></figure> Which will result in: What do you think of Spell Checker? |
4803f3c
to
b409530
Compare
a100d08
to
5e99f6b
Compare
5e99f6b
to
5cfe5bb
Compare
aae0a9a
to
4d05908
Compare
I made sure that markdownlint doesn't conflict with prettier by using the prettier ruleset as suggested by markdownlint Now, this pull request and the linked ones (GameServerManagers/LinuxGSM-Docs#104 & GameServerManagers/LinuxGSM-Dev-Docs#8) are ready for review, @dgibbs64. |
Description
This PR adds the VSCode extension vscode-markdownlint to the recommended extensions to help developers write more consistent Markdown by linting and style checking Markdown.
Related Pull Requests:
Fixes N/A
Type of change
Checklist
PR will not be merged until all steps are complete.
develop
branch as its base.Documentation
If documentation does need updating either update it by creating a PR (preferred) or request a documentation update.
Thank you for your Pull Request!