stsewd / tree-sitter-rst

reStructuredText grammar for tree-sitter
https://stsewd.dev/tree-sitter-rst/
MIT License
50 stars 7 forks source link

Tree sitter rst seem to miss linked text just after an opening `[` #49

Closed Carreau closed 8 months ago

Carreau commented 8 months ago

Example from numpy linspace:

Return evenly spaced numbers over a specified interval.

Returns num evenly spaced samples, calculated over the
interval [`start`, `stop`].

The `start` will be part of the paragraph text and not an interpreted_text node.

This is not the case if the preceding charater is a (. I haven't exaustively tested sphinx, but it does work for [.

Carreau commented 8 months ago

Many thanks for the rapid update, and happy new year 2024 I guess.

stsewd commented 8 months ago

Happy new year! :tada: