Here is a minimal example for a minimal book with the following index.Rmd
---
title: "A Book"
author: "Frida Gomam"
site: bookdown::bookdown_site
documentclass: book
output:
bookdown::gitbook:
split_by: section
bookdown::pdf_book: default
---
# Test labels {-}
Second equation label is not replaced with proper tag when using pandoc 2.0
\begin{equation}
x \in \mathbb{R} (\#eq:real)
\end{equation}
Hello
\begin{equation}
y \in \mathbb{Z} (\#eq:integer)
\end{equation}
Screenshot of the generated gitbook:
