[GH-ISSUE #315] [MD028] Intended fix is ambiguous, consider removing fix support #268

Closed
opened 2026-03-03 01:25:17 +03:00 by kerem · 2 comments
Owner

Originally created by @yi-Xu-0100 on GitHub (Aug 12, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/315

The problem pointed out the blank line inside block quotes. I used the quick fix provided and found that the fix was to delete the blank line. Whether blank lines can be reserved, that is, use an empty block reference flag, as demonstrated below.

Content before repair:

> Some references

> Some references

Content after repair:

> Some references
>
> Some references

Or give a configuration to set this repair method.

Originally created by @yi-Xu-0100 on GitHub (Aug 12, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/315 The problem pointed out the blank line inside block quotes. I used the quick fix provided and found that the fix was to delete the blank line. Whether blank lines can be reserved, that is, use an empty block reference flag, as demonstrated below. Content before repair: ``` md > Some references > Some references ``` Content after repair: ``` md > Some references > > Some references ``` Or give a configuration to set this repair method.
kerem 2026-03-03 01:25:17 +03:00
Author
Owner

@DavidAnson commented on GitHub (Aug 12, 2020):

Fixes are meant to be simple, unambiguous, and able to be run without the user's involvement. In this case, you make a good point that the right change to the Markdown is not clear and may take either form depending on what the user wishes. Therefore, I'm thinking it may be best to remove the fix behavior for this rule.

<!-- gh-comment-id:672974128 --> @DavidAnson commented on GitHub (Aug 12, 2020): Fixes are meant to be simple, unambiguous, and able to be run without the user's involvement. In this case, you make a good point that the right change to the Markdown is not clear and may take either form depending on what the user wishes. Therefore, I'm thinking it may be best to remove the fix behavior for this rule.
Author
Owner

@yi-Xu-0100 commented on GitHub (Aug 13, 2020):

Thanks. I will fix the problem manually next time.

<!-- gh-comment-id:673178849 --> @yi-Xu-0100 commented on GitHub (Aug 13, 2020): Thanks. I will fix the problem manually next time.
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#268
No description provided.