Skip to content

Commit a78c9a7

Browse files
committed
Add test.
On my system rest2html generates quite some different markup so I'm not sure whether this actually works.
1 parent 040f91d commit a78c9a7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/markups/README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Example text.
88

99
.. contents:: Table of Contents
1010

11+
.. _label_for_header_2:
12+
1113
Header 2
1214
--------
1315

@@ -17,6 +19,8 @@ Header 2
1719

1820
3. Somé UTF-8°
1921

22+
4. `Link to the above header <label_for_header_2_>`_
23+
2024
The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.
2125

2226
.. csv-table:: Things that are Awesome (on a scale of 1-11)

test/markups/README.rst.html

+2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ <h2>Subtitle</h2>
99
</ul>
1010
</div>
1111
<a name="header-2"></a>
12+
<a name="label-for-header-2"></a>
1213
<h2><a href="#toc-entry-1">Header 2</a></h2>
1314
<ol>
1415
<li>Blah blah <code>code</code> blah</li>
1516
<li>More <code>code</code>, hooray</li>
1617
<li>Somé UTF-8°</li>
18+
<li><a href="#label-for-header-2">Link to the above header</a></li>
1719
</ol>
1820
<p>The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.</p>
1921
<table>

0 commit comments

Comments
 (0)