Skip to content

Commit a616d5a

Browse files
javiereguiluznikophil
authored andcommitted
Don't add unnecessary HTML fragments in TOC links
1 parent dd43d4b commit a616d5a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
Another file
22
============
3+
4+
Some text.
5+
6+
.. _some_reference:
7+
8+
And more text.

tests/fixtures/source/toctree/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Toctree
1414

1515
directory/another_file
1616

17+
.. toctree::
18+
19+
file
20+
:ref:`Some specific reference <some_reference>`
21+
1722
.. toctree::
1823
:glob:
1924

0 commit comments

Comments
 (0)