Skip to content
Discussion options

You must be logged in to vote

Hi there,

This is more of a knitr question than Quarto. Since you are rendering in html output, knitr is by default trying to print an html-format table. That is, knitr is expecting html tags for formatting and instead you are feeding latex code. So, in the language of html, changing the kbl() function call to the following should have your desired effect:

kbl(col.names = c("Type", "Frequency", "PMI", "(Signed G<sup>2</sup>)"), escape = FALSE)

Don't forget to include escape = FALSE. Full .qmd example:

---
engine: knitr
title: "test_table"
format: html
---

## Running Code

```{r}
#| warning: false
#| code-fold: true
library(tidyverse)
library(kableExtra)

test_table <- data.frame(
  Colu…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@lizaodawn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@mcanouil
Comment options

@lizaodawn
Comment options

@mcanouil
Comment options

@lizaodawn
Comment options

Answer selected by lizaodawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
upstream Bug is in upstream library knitr
3 participants