papaja icon indicating copy to clipboard operation
papaja copied to clipboard

apa_table won't cross reference if format = "markdown"

Open CharlotteMoore927 opened this issue 3 years ago • 1 comments

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 image

CharlotteMoore927 avatar Sep 07 '20 19:09 CharlotteMoore927

I can reproduce this issue, but it may be a while until I get around to fixing it. Sorry.

crsh avatar Oct 20 '20 07:10 crsh