mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Re-instate the footnote-reference class
This commit is contained in:
parent
0858c3b841
commit
571becb6af
@ -887,3 +887,12 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
|
||||
_, depart = self.builder.app.registry.html_block_math_renderers[name]
|
||||
if depart: # type: ignore[truthy-function]
|
||||
depart(self, node)
|
||||
|
||||
# See Docutils r9413
|
||||
# Re-instate the footnote-reference class
|
||||
def visit_footnote_reference(self, node):
|
||||
href = '#' + node['refid']
|
||||
classes = ['footnote-reference', self.settings.footnote_references]
|
||||
self.body.append(self.starttag(node, 'a', suffix='', classes=classes,
|
||||
role='doc-noteref', href=href))
|
||||
self.body.append('<span class="fn-bracket">[</span>')
|
||||
|
Loading…
Reference in New Issue
Block a user