tree-sitter-markdown: block_quote_marker includes whitespace

I’ve played around with Treesitter playground (using Neovim), with the aim to have nice-looking markdown right in the nvim buffer (using conceal). I found that the block_quote_marker nodes include not only > but also the next whitespace. Is this dictated by Markdown syntax? If so, is it possible to break down them into two nodes?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16

Most upvoted comments

Feel free to make a PR to nvim-treesitter.

Sorry, was this in reference to the conceal solutions above or were you talking to someone else?

Yes, exactly.

@ribru17 awesome! Exactly what I needed. Thank you!!!

As far as I can see (and option (i) is long-term; that’s a lot of work).

#119 actually fixed this for atx headings

I’m sure you are already aware of this but this also applies to heading markers, list markers and so on.