Skip to content

Commit

Permalink
Merge branch '4.3.x' into 9864_mathjax_loading_method
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya authored Nov 22, 2021
2 parents 34b7d99 + ccfa7c7 commit e6e009e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Bugs fixed
decorated by functools.lru_cache
* #9879: autodoc: AttributeError is raised on building document for an object
having invalid __doc__ atribute
* #9872: html: Class namespace collision between autodoc signatures and
docutils-0.17
* #9864: mathjax: Failed to render equations via MathJax v2. The loading method
of MathJax is back to "async" method again

Expand Down
6 changes: 5 additions & 1 deletion sphinx/writers/html5.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import re
import urllib.parse
import warnings
from typing import TYPE_CHECKING, Iterable, Tuple, cast
from typing import TYPE_CHECKING, Iterable, Set, Tuple, cast

from docutils import nodes
from docutils.nodes import Element, Node, Text
Expand Down 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[str] = set()

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

0 comments on commit e6e009e

Please sign in to comment.