Markdownlint new rule: Custom replacement for MD048 - fenced codeblocks rule with fixer #27915
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Because
Markdownlint's built-in MD048 rule for fenced code block style does not include fix information, so will require manual fixing. It would be more straightforward for us to disable the built-in and use a custom rule to enforce the same style and provide a custom fixer for our fix scripts.
This PR
Issue
N/A
Additional Information
Discovered through this, TOP006 will need amending to account forFixed in #27916~
code blocks as well. Currently it only recognises`
code blocks, so something like~~~md
will be fixed to```md
instead of```markdown
. This will be handled in a separate PR.Pull Request Requirements
location of change: brief description of change
format, e.g.Intro to HTML and CSS lesson: Fix link text
Because
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
section