Skip to content

Commit

Permalink
fix: allow HTML5 s tag through cleaner (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Sep 24, 2022
1 parent e662bf4 commit 310ccc1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion readme_renderer/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"br", "caption", "cite", "col", "colgroup", "dd", "del", "details", "div",
"dl", "dt", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "img", "p", "pre",
"span", "sub", "summary", "sup", "table", "tbody", "td", "th", "thead",
"tr", "tt", "kbd", "var", "input", "section", "aside", "nav",
"tr", "tt", "kbd", "var", "input", "section", "aside", "nav", "s",
]

ALLOWED_ATTRIBUTES = {
Expand Down
2 changes: 2 additions & 0 deletions tests/fixtures/test_rst_bibtex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<pre><code><span class="nc">&#64;article</span><span class="p">{</span><span class="nl">the_impact_of_pygments_docutils_config_and_html5</span><span class="p">,</span><span class="w">
</span><span class="na">year</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><s>{2022}</s><span class="p">,</span></code></pre>
4 changes: 4 additions & 0 deletions tests/fixtures/test_rst_bibtex.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.. code:: bibtex
@article{the_impact_of_pygments_docutils_config_and_html5,
year = {2022},

0 comments on commit 310ccc1

Please sign in to comment.