Closed marcboschmatas closed 7 months ago
Oh yeah, that would be great!
Yes, that's almost the right spot. There are already two escapes for < and > in Typst, which you can see here:
https://github.com/vincentarelbundock/tinytable/blob/main/R/escape.R#L36
All of the work should consist in identifying characters that need escaping, and adding obvious lines at the link above. Then, adding a bullet in NEWS.
I noticed that the parametre
escape
does not escape the star signs (*) if the output is set to typst, which causes an error when compiling quarto documents to typst. See example. R codeTypst output
The problem is that the stars at lines 34 and 36 are not escaped, and should work like this
I can do some work on it if you like, I guess the relevant code is here https://github.com/vincentarelbundock/tinytable/blob/main/R/escape.R. The only problem is something similar to what happened with the void theme, that I don't know how to make sure only the relevant * characters are escaped, (for instance, if you want to make the R-squared row in bold). I'll play around but any suggestions welcome.