pandoc-3.14: test/command/5476.md
```
% pandoc -t latex
![moon^[the moon]](test/lalune.jpg)
^D
\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,alt={moon}]{test/lalune.jpg}}
\caption[moon]{moon\pandocfootnotemark{1}}
\end{figure}
\pandocfootnotetext{1}{the moon}
```