交叉引用在文本和knitr::kable
中按预期工作,但不会转换为gitbook
的交互式表(DT包)中的链接。
我创建了一个最小的示例来显示我的问题。此链接是来源:https://github.com/byzheng/bookdown-test,此链接是已部署的网站:https://engineer-jocelyn-50227.netlify.com/
基本上,我创建了一个带有块名test-figure
的图形,并使用函数DT::datatable
创建了一个表。
DT::datatable(data.frame(Figure = "Figure \\@ref(fig:test-figure)"))
bookdown不会转换为链接。