交叉引用在bookdown中的交互式表(DT)中不起作用

时间:2017-10-26 22:19:22

标签: r bookdown

交叉引用在文本和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不会转换为链接。

enter image description here

0 个答案:

没有答案