```
% pandoc -t latex --citeproc
Lorem ipsum

# References

::: {#refs}
:::
^D
Lorem ipsum

\section{References}\label{references}

\protect\phantomsection\label{refs}
```

```
% pandoc -t latex --citeproc
---
references:
- id: foo
  type: book
  title: The Title
  author: John Doe
...

Lorem ipsum [@foo].

# References

::: {#refs}
:::
^D
Lorem ipsum (John Doe, n.d.).

\section{References}\label{references}

\protect\phantomsection\label{refs}
\begin{CSLReferences}{1}{0}
\bibitem[\citeproctext]{ref-foo}
John Doe. n.d. \emph{The Title}.

\end{CSLReferences}

```

