knitr icon indicating copy to clipboard operation
knitr copied to clipboard

Kable escapes $ sign for latex math. Can math expression be left untouched?

Open bakaburg1 opened this issue 3 years ago • 0 comments

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?

bakaburg1 avatar Oct 23 '21 17:10 bakaburg1