[GH-ISSUE #454] MD010/hard-tabs will not be excluded for code spans #375

Closed
opened 2026-03-03 01:26:19 +03:00 by kerem · 0 comments
Owner

Originally created by @bingyeee on GitHub (Nov 2, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/454

My markdownlint.config is as follows:

"markdownlint.config": {
    "MD010": {
        "code_blocks": false
    },
    "MD044": {
        "code_blocks": false,
        "names": ["ABC"]
    }
}

The problem is that the tab character in the code span will be recognized as an error:

Screenshot_20211102_195502

PS: MD044 will be excluded for code spans when "code_blocks" is "false".

Screenshot_20211102_195517

Originally created by @bingyeee on GitHub (Nov 2, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/454 My `markdownlint.config` is as follows: ```json "markdownlint.config": { "MD010": { "code_blocks": false }, "MD044": { "code_blocks": false, "names": ["ABC"] } } ``` The problem is that the tab character in the code span will be recognized as an error: ![Screenshot_20211102_195502](https://user-images.githubusercontent.com/67682243/139841709-8157d036-167c-4d28-9586-2ce24a7d77e6.png) PS: MD044 will be excluded for code spans when "code_blocks" is "false". ![Screenshot_20211102_195517](https://user-images.githubusercontent.com/67682243/139841735-dc27847f-ffbc-4b3d-8434-b1b356a7350f.png)
kerem 2026-03-03 01:26:19 +03:00
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#375
No description provided.