Description
Explain the problem.
When converting LaTeX input to HTML output with mathML, \ref{label} commands within the text get converted to in-page hyperlinks. These hyperlinks work correctly for sections and figures, as the corresponding HTML objects are given the marker id="label", but not for equations, which just end up with dead hyperlinks.
Sample input file "label.tex":
\documentclass{article}
\begin{document}
\section{Section} \label{section}
\begin{equation}
\label{eq:sample}
y^2 = a x^3 + bx + c
\end{equation}
This is Equation~\ref{eq:sample}, in Section~\ref{section}, with Figure~\ref{fig:sample}
\begin{figure}
\centering
\begin{tabular}{c|c}
1 & 0 \
0 & 1
\end{tabular}
\label{fig:sample}
\caption{A figure}
\end{figure}
\end{document}
Pandoc Command
pandoc -f latex -t -html --mathml label.tex -o label.html
Expected vs Actual Result
The html file which is produced contains three internal hyperlinks; the links to the section and the figure work correctly, but the link to the figure leads to a nonexistent location in the page.
Pandoc version?
Pandoc 3.4 (Windows x86_64)
Pandoc 2.5 (Ubuntu on WSL)