knitr
knitr copied to clipboard
Kable escapes $ sign for latex math. Can math expression be left untouched?
Hello!
If the escape
argument of kable()
is TRUE
then $$ enclosed math expressions are not rendered. but if it is FALSE
the formatting may break for other forbidden characters here and there.
At the moment my solution is to set escape = FALSE
and sanitize manually forbidden characters that I know are in my tables, but it's of course not a general solution.
Is it possible to add an argument to keep in-line math even with escape = TRUE
or is messier than it seems?