mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch '4.3.x' into 9864_mathjax_loading_method
This commit is contained in:
commit
e6e009ebb7
2
CHANGES
2
CHANGES
@ -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
|
||||
|
||||
|
@ -13,7 +13,7 @@ import posixpath
|
||||
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
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user