Open r-cheologist opened 5 years ago
I just ran into something similar using gt::md() to format a title.
This:
tab_header(title = md("δ^13^C of *NOSAMS* and **external** standards"))
italicizes and bolds correctly, but the superscript is interpreted literally.
I dug into this a little more, and my issue is not the same as the OP.
"^" is not interpreted as superscript by commonmark::markdown_html markdown converter called by {gt}. HTML tags are passed through, so the solution is to use until commonmark supports "^". This is confusing since rmarkdown::render() uses pandoc to convert markdown to HTML, which does interpret "^" as superscript.
Also worth noting that OP's footnote does get bold and italics when rendering to HTML, but not when rendering to PDF.
When trying to add a footnote containing
markdown
, the formatting is not maintained when usingbookdown
. Consider:which (independently of whether
results = 'asis'
is set or not) produces