I'll look into this on the Quarto side to understand if we can remove the raw HTML attributes. We'll probably try to improve that in Quarto on in kable() somehow, but for now markdown should not be used in HTML table. Other package like flextable and ftextra may have the same. You can use some function to format content, like within gt and the fmt_markdown or its other helper function With Quarto, if you want formatting within the cell, it will be better to not use markdown when you are producing HTML table. Markdown_in_html_blocks extension is activated. With R Markdown you don't encounter that because HTML code is not marked as raw HTML for Pandoc, and This is needed I believe for caption processing and cross reference feature. Within Quarto, HTML can't contain Markdown code as the HTML table table will be considered HTML only. I believe this is currently a limitation of Quarto and a difference with R Markdown due to better feature for table in Quarto that contraint the way HTML tables are working. Kable_styling(bootstrap_options = c("striped", "hover", "condensed", "responsive" ,"bordered"), Reshape2::dcast(nam~type, value.var="link") %>% Interesting to note that when the tables are assigned to objects, and then fed as a list to a single kable() call and rendered in a pdf document, the default formatting is different to if the table is printed as the result of the last command of a chunk being kable() without assignment. X = out.hw %>% select(link, type, nam) %>% Hw % mutate(name = gsub("hw/|_template", "", filenames), Library(knitr) library(kableExtra) library(tidyr) Library(stringr) library(dplyr) library(readxl) I strongly believe it is related to the version update. This knits fine in RMD, but not in in the quarto version.Ĭode: knitr::opts_chunk$set(echo=FALSE, message=FALSE, warning=FALSE) I have same problem here with kableExtra version 1.3.4 Chunk code run properly in preview but not rendered in rmarkdown for Hugo ink theme. I have a chunk of code that creates a table containing file links based on files that's in a specific directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |