neovim / tree-sitter-vimdoc

Tree-sitter parser for Vim help files

Repository from Github https://github.comneovim/tree-sitter-vimdocRepository from Github https://github.comneovim/tree-sitter-vimdoc

Whitespace handling for table line items

muhmud opened this issue · comments

Currently, a table like this:

image

gets rendered like this:

image

Data on the whitespace does not seem to appear in the parsed tree-sitter document in this case, though I do see it for codeblock. Is there something that can be done to handle this better?

Nope, that's something that can't be done with a syntax tree, given the loose vimdoc format.

(In 90% of cases, the issue is with the docs themselves; if they are meant to be a table, they should be marked up as such.)