[GH-ISSUE #488] MD046: Make a fixable rule #402

Open
opened 2026-03-03 01:26:36 +03:00 by kerem · 0 comments
Owner

Originally created by @nschonni on GitHub (Jan 21, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/488

This probably isn't a straight forward one to be fixable. Some of the edges I can think of:

  • Sometimes the indented code fences in lists are actually indent errors
  • sometimes there are nested backticked fences inside an explicitly indented fence. Would need to decide on a quad or ~ style fence to wrap it
  • Language detection would need to be out of scope as it would be very complicated

I'm trying to cleanup https://github.com/mdn/content with a forced

  "MD045": false,
  "MD046": {
    "style": "fenced"
  }

And although it would need manual review on each file anyway, it would make the cleanup much quicker

Originally created by @nschonni on GitHub (Jan 21, 2022). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/488 This probably isn't a straight forward one to be fixable. Some of the edges I can think of: - Sometimes the indented code fences in lists are actually indent errors - sometimes there are nested backticked fences inside an explicitly indented fence. Would need to decide on a quad or `~` style fence to wrap it - Language detection would need to be out of scope as it would be very complicated I'm trying to cleanup https://github.com/mdn/content with a forced ```json "MD045": false, "MD046": { "style": "fenced" } ``` And although it would need manual review on each file anyway, it would make the cleanup much quicker
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#402
No description provided.