vim-markdown icon indicating copy to clipboard operation
vim-markdown copied to clipboard

Nested list highlight broken for tabs

Open rishabh-ranjan opened this issue 1 year ago • 2 comments

nested lists are highlighted correctly for 4 spaces indent, but not for tab indent: image

rishabh-ranjan avatar May 26 '23 22:05 rishabh-ranjan

Feel free to submit a PR. Also be aware that not all Markdown implementations support tab sublist indentation and also even fewer of them accept mixed-mode indentation. But yes tabs are usually considered the equivalent of 4 spaces for about 3/4 of implementations. c.f BabelMarkIII

alerque avatar May 27 '23 10:05 alerque

in that case, maybe it will be better to set tab to 4 spaces via vim markdown. this would be as simple as adding "setl tabstop=4 shiftwidth=4 expandtab" in indent/markdown.vim. @alerque if you approve i can submit a pr for this

rishabh-ranjan avatar May 27 '23 14:05 rishabh-ranjan