papaja
papaja copied to clipboard
apa_table won't cross reference if format = "markdown"
Describe the bug When I add a table using apa_table to my manuscript with format = "markdown", the table formats correctly but any cross referencing using @ref(tab:chunk-name) will appear as a blank space. No question marks or anything. Furthermore, two asterisks appear where "Table 1" should be. When I remove the format = "markdown" it will cross-reference correctly but then my table isn't formatted.
To Reproduce Put the content below into a papaja rmd to get the error:
Here is some text. See Table @ref(tab:example-table), which should render here.
table <- tibble(X = c(1,2,3),
Y = c("a", "b", "c"),
Z = c("*italics*", "**bold**", "none"))
apa_table(table,
format = "markdown")
Expected behavior I expected cross-referencing to still work on markdown formatted tables.
Screenshots
I can reproduce this issue, but it may be a while until I get around to fixing it. Sorry.