In tran8954 we have a case of nested links inside tex-math. While this use case may be resolved upstream, it raises the problem that xref.js currently does not flatten nested links inside tex-math because
|
const isNestedLink = htmlParentNode.closest('a'); |
won't be true - we're rewriting to TeX markup.