Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
On my system rest2html generates quite some different markup
so I'm not sure whether this actually works.
  • Loading branch information
felixfontein committed Jul 15, 2022
1 parent 040f91d commit a78c9a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/markups/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Example text.

.. contents:: Table of Contents

.. _label_for_header_2:

Header 2
--------

Expand All @@ -17,6 +19,8 @@ Header 2

3. Somé UTF-8°

4. `Link to the above header <label_for_header_2_>`_

The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.

.. csv-table:: Things that are Awesome (on a scale of 1-11)
Expand Down
2 changes: 2 additions & 0 deletions test/markups/README.rst.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ <h2>Subtitle</h2>
</ul>
</div>
<a name="header-2"></a>
<a name="label-for-header-2"></a>
<h2><a href="#toc-entry-1">Header 2</a></h2>
<ol>
<li>Blah blah <code>code</code> blah</li>
<li>More <code>code</code>, hooray</li>
<li>Somé UTF-8°</li>
<li><a href="#label-for-header-2">Link to the above header</a></li>
</ol>
<p>The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.</p>
<table>
Expand Down

0 comments on commit a78c9a7

Please sign in to comment.