Skip to content

Commit

Permalink
BUG: prevent automatic inline conversion by class
Browse files Browse the repository at this point in the history
  • Loading branch information
ebolyen committed Nov 22, 2021
1 parent e5424b3 commit 836324b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sphinx/writers/html5.py
Expand Up @@ -56,6 +56,10 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
"""

builder: "StandaloneHTMLBuilder" = None
# Override docutils.writers.html5_polyglot:HTMLTranslator
# otherwise, nodes like <inline classes="s">...</inline> will be
# converted to <s>...</s> by `visit_inline`.
supported_inline_tags = set()

def __init__(self, document: nodes.document, builder: Builder) -> None:
super().__init__(document, builder)
Expand Down

0 comments on commit 836324b

Please sign in to comment.