DavidAnson / markdownlint

A Node.js style checker and lint tool for Markdown/CommonMark files.
MIT License
4.71k stars 715 forks source link

MD010 no-hard-tabs rule is intended for indentation, but is triggered from any tabs #1287

Closed seppo498573908457 closed 1 week ago

seppo498573908457 commented 1 month ago

The description states:

This rule is triggered by any lines that contain hard tab characters instead of using spaces for indentation.

But in reality the rule is triggered also from tabs that are not used for indentation.

The rule should allow use of tabs in other use than indentation because it's not a forbidden character in Markdown syntax.

DavidAnson commented 1 month ago

The use of the word "indentation" may be misleading, but the rule name and the rest of the rule description try to communicate that its purpose is to prevent tab characters anywhere within a line. As the rationale at the bottom outlines, tab characters can be handled inconsistently and may be considered confusing and unnecessary.

https://spec.commonmark.org/0.31.2/#tabs