oderwat / vscode-indent-rainbow

Extension which shows indentation with a faint rainbow colored background to make them more readable
MIT License
406 stars 53 forks source link

Lists with wrapped text in Markdown have incorrect tab highlighting #160

Closed AaronAllBright closed 1 year ago

AaronAllBright commented 1 year ago

When editing a Markdown document, indent errors aren't shown by default, but lines with less than one whole indent count still show an indent background. For example, a bulleted list with a wrapped line will cause this error:

image

oderwat commented 1 year ago

Right, it is not an error, but it is not the correct indentation given the current indentation settings, which seems to be 4 in your case. Either change it to the actual 2 you are using or switch the plugin off. I will not change anything about that.

AaronAllBright commented 1 year ago

No, it's not an incorrect indentation. It is common to indent wrapped lines in a bulleted list to begin under the text, not the bullet for readability.

image

AaronAllBright commented 1 year ago

It should be noted that the "rewrap" extension, vscode, and a markdown linter (markdownlint) all recognize the above markdown as correctly formatted.

oderwat commented 1 year ago

Right, it is not an error, but it is not the correct indentation given the current indentation settings

Set your editor to use 2 spaces and everything will be fine.

AaronAllBright commented 1 year ago

No thank you. My tab size is prescribed by project settings and linter requirements of my org. So I'll have to disable your plugin. Thanks for responding.