pandoc-3.6.4: test/command/7857.md
```
% pandoc --slide-level=2 -t beamer
# section
::: notes
my note
:::
## slide
ok
^D
\section{section}\label{section}
\note{my note}
\begin{frame}{slide}
\protect\phantomsection\label{slide}
ok
\end{frame}
```