\section{* First Section}\label{first-section}

text

\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,alt={A figure}]{image.png}}
\caption{A figure}\label{fig:fig1}
\end{figure}

\subsection{*.A Subsection}\label{subsection}

other text

\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,alt={A figure with custom label}]{image.png}}
\caption{A figure with custom label}\label{fig:fig2}
\end{figure}

\subsubsection{*.A.A Subsubsection}\label{subsubsection}

text text text

\section{B Custom on other elements}\label{custom-on-other-elements}

\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,alt={Figure}]{fig.png}}
\caption{Figure}\label{fig:fig3}
\end{figure}

\begin{longtable}[]{@{}lll@{}}
\caption{\label{tbl:table}Caption}\tabularnewline
\toprule\noalign{}
a & b & c \\
\midrule\noalign{}
\endfirsthead
\toprule\noalign{}
a & b & c \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
1 & 2 & 3 \\
4 & 5 & 6 \\
\end{longtable}

\begin{equation}\protect\phantomsection\label{eq:equation}{y = e^x}\end{equation}

fig.~\ref{fig:fig3} tbl.~\ref{tbl:table} eq.~\ref{eq:equation}
