mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #148] md040 should not require a language #1977
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#1977
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @marcelomgarcia on GitHub (Oct 10, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/148
This is more a suggestion.
I use Markdown to write text related with system administration, and I use the fencing of text as the HTML "pre", so I don't need a language after the backticks . If I use "bash", the text block is treated as a shell script, and the prompt "#" becomes a commented line.
Searching about this issue, it seems that the language is not a requirement, only a convenience for having syntax highlighting. I disabled the rule "md040" on my settings, but I wonder if it really make sense.
Regads
@DavidAnson commented on GitHub (Oct 10, 2018):
Many of the linting rules are suggestions instead of requirements. Language detection is not always reliable, so some people want to be sure a language is specified. If that is not an issue for you, the rule can be disabled like you’ve done.
Sent with GitHawk