Skip to content

ListItemIndent for tab should use tab #527

Answered by wooorm
kangruixiang asked this question in General
Discussion options

You must be logged in to vote

Unfortunately, actual tab characters don’t work well with markdown. Markdown is a whitespace-sensitive language which uses a hardcoded tab size of 4 characters for tab characters.

My tab size is configured to two spaces, so if I’d use tabs:

1.  a

  a

The above would look weird: it would look as if there’s a list item followed by a slightly indented paragraph, but is actually properly indented for markdown.
If I’d try and “fix” it by aligning them

1.  a

    a

I’d actually get a paragraph and a code block in a list item.


The name of the option refers to that tab size of 4 spaces. While I understand that it can be confusing, adding actual tab characters doesn’t make sense to me. Feel free…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kangruixiang
Comment options

Answer selected by wooorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants