Skip to content

Equation reference with colon in label does not work even if documented #1376

Open
@cderv

Description

@cderv
---
title: test
output: bookdown::html_document2
---

\begin{equation} 
  f\left(k\right) = \binom{n}{k} p^k\left(1-p\right)^{n-k}
  (\#eq:binom:1)
\end{equation} 

See \@ref(eq:binom:1)

renders at
image

But our doc says : in labels is supported
https://bookdown.org/yihui/bookdown/markdown-extensions-by-bookdown.html#equations

Equation labels must start with the prefix eq: in bookdown. All labels in bookdown must only contain alphanumeric characters, :, -, and/or /.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions