I'm trying to save a kableExtra table to a png that contains an equation.
A really simple example:
tab <- kable("$a^2$")
tab
which gives me the table I'm looking for:
Now I want to save this to a png or jpg file with save_kable
save_kable(tab, file = "test.jpg")
which then returns this:
I have already tried changing the escape argument but the result remains the same
tab <- kable("$a^2$", escape = TRUE)
tab <- kable("$a^2$", escape = FALSE)
Any ideas how to make sure the png or jpg file also renders the equation/mathsymbols?
Thanks!

