External Link Footnotes Not Working in Definition List

Anonymous avatarAnonymous created an issue

When a definition list term is an external link, and the "latex_show_urls" option is set to "footnote", the generated PDF shows the footnote number next to the link, but fails to create a footnote at the bottom of the page.

The generated LaTeX looks like this:

\item[{\href{http://sphinx-doc.org}{Sphinx Website}\footnote{http://sphinx-doc.org}}] \leavevmode

If you change it to look like the following, then the footnote shows up a the bottom, but the number is a space away from the link:

\item[{\href{http://sphinx-doc.org}{Sphinx Website}}]\footnote{http://sphinx-doc.org} \leavevmode

I'm not fluent in LaTeX, so there might be a better solution that keeps the number next to the link while producing the footnote.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.