Add an option allowed_languages to the fenced-code-language
See original GitHub issueAdd an option allowed_languages to the fenced-code-language rule to define the allowed languages. With this option, markdownlint
will be able to check:
- name consistency (
javascript
/js
); - case (
html
/HTML
); - typos (
markdown
/markdonw
) - unsupported languages (
json
/jfather
).
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
DavidAnson Markdownlint Issues - IssueHint
Add rule to whitelist allowed languages in code fences ... Add an option allowed_languages to the fenced-code-language, open, 8, 2022-11-04, 2022-12-03.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I didn’t see that there was already the #608 issue. 😞
I looked at the commit, the languages are case insensitive. You could add
ignoreCase
option to check case (html
/HTML
).I think skipping the
ignoreCase
might be an easy sell, if the casing would be fixable based on the allowed values. That would probably add a bunch of complication though