stsewd / tree-sitter-rst

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

interpreted text should only allow 1 backticks ? #28

Open Carreau opened 2 years ago

Carreau commented 2 years ago

This:

:attr:``numpy.ufunc.identity``

Is parsed as interpreted text, I don't think it should.

It is not properly handled by docutils/sphinx

Screen Shot 2022-03-25 at 19 03 11
stsewd commented 2 years ago

Looks like this should be parsed as an inline literal https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#inline-literals.

(paragraph "text" (literal))