Closed NickCH-K closed 4 months ago
Good catch. Thanks for raising the issue.
And sorry for the breaking change. The escape
argument did not used to apply to title
because of a limitation in kableExtra
. This was inconsistent since the body would be escaped but not the notes or title. Now, the argument applies more evenly.
I edited the SO answer, changed the example in the documentation, the Quarto example document, and improved the man page:
title: string. Cross-reference labels should be added with Quarto or
Rmarkdown chunk options when applicable. When saving
standalone LaTeX files, users can add a label such as
\\label{tab:mytable} directly to the title string, while also
specifying ‘escape=FALSE’.
The recommended approach to adding a LaTeX label is to add it as a text string in the caption. From the help file for
modelsummary
(withoutput = 'latex'
added):This problem is solved with
escape = FALSE
but this is not reflected in the docs (or your stackoverflow answer