We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe1abd0 commit 23194e7Copy full SHA for 23194e7
document/core/util/mathdef.py
@@ -17,7 +17,7 @@
17
xref_re = re.compile('\\\\xref\{([^}]*)\}\{([^}]*)\}', re.M)
18
19
def html_hyperlink(file, id):
20
- return '\\href{../%s.html#%s}' % (file, id)
+ return '\\href{../%s.html#%s}' % (file, id.replace('_', '-'))
21
22
def html_transform_math_xref(node):
23
node['latex'] = \
@@ -31,7 +31,7 @@ def ext_html_visit_displaymath(self, node):
31
html_transform_math_xref(node)
32
html_visit_displaymath(self, node)
33
34
-# Mirrors sphinx/writer/latex
+# Mirrors sphinx/writers/latex
35
def latex_hyperlink(file, id):
36
id = text_type(id).translate(tex_replace_map).\
37
encode('ascii', 'backslashreplace').decode('ascii').\
0 commit comments