[GH-ISSUE #31] Ignore indenting within code blocks #22

Closed
opened 2026-03-03 01:23:06 +03:00 by kerem · 1 comment
Owner

Originally created by @adriangrigore on GitHub (Sep 24, 2016).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/31

I write code with tabs and when I copy paste the code inside my markdown files, markdownlint complains about hard tabs. Wouldn't be a good idea to not enforce the indenting rule within code block s to allow any kind of indent?

Originally created by @adriangrigore on GitHub (Sep 24, 2016). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/31 I write code with tabs and when I copy paste the code inside my markdown files, `markdownlint` complains about hard tabs. Wouldn't be a good idea to not enforce the indenting rule within code block s to allow any kind of indent?
kerem 2026-03-03 01:23:06 +03:00
Author
Owner

@DavidAnson commented on GitHub (Sep 24, 2016):

It sounds like you would appreciate a code_blocks parameter similar to MD013. Should be straightforward to add. My only concern would be if parsers aren't consistent about handling tabs when converting to HTML. Maybe you already know that your workflow handles this okay?

<!-- gh-comment-id:249375955 --> @DavidAnson commented on GitHub (Sep 24, 2016): It sounds like you would appreciate a code_blocks parameter similar to MD013. Should be straightforward to add. My only concern would be if parsers aren't consistent about handling tabs when converting to HTML. Maybe you already know that your workflow handles this okay?
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#22
No description provided.