Skip to content

Commit 310ccc1

Browse files
authored
fix: allow HTML5 s tag through cleaner (#262)
1 parent e662bf4 commit 310ccc1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

readme_renderer/clean.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"br", "caption", "cite", "col", "colgroup", "dd", "del", "details", "div",
3131
"dl", "dt", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "img", "p", "pre",
3232
"span", "sub", "summary", "sup", "table", "tbody", "td", "th", "thead",
33-
"tr", "tt", "kbd", "var", "input", "section", "aside", "nav",
33+
"tr", "tt", "kbd", "var", "input", "section", "aside", "nav", "s",
3434
]
3535

3636
ALLOWED_ATTRIBUTES = {

tests/fixtures/test_rst_bibtex.html

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<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">
2+
</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>

tests/fixtures/test_rst_bibtex.rst

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. code:: bibtex
2+
3+
@article{the_impact_of_pygments_docutils_config_and_html5,
4+
year = {2022},

0 commit comments

Comments
 (0)