blastula
blastula copied to clipboard
Some R Markdown syntax not render?
Hello Rich,
I'm digging into blastula and enjoying it very much. When I render the code below it respects the underscores and italicizes the text but the strikethrough syntax does not seem to work. I found this by trying to using the Header syntax (*) which did not render either.
Thank you.
Brian
> owl2 <- compose_email(
+ body=md("_Hello from Hogwarts_"),
+ footer = md("~~strikethrough?~~")
+ # footer="Confidential: the Ministry of Magic"
+ )
I am also getting this problem. Although on my end when I use render_email it does not process any headers, but it does process the strikethrough. I'm thinking this might be an issue with the blastula_email styling?
We’ll take a closer look at this but I can explain part of this. The compose_email()
codepath uses the commonmark package to do its md to HTML conversion. Using RMarkdown with render_email()
in turn uses a different renderer (sundown?) so there are differences. It looks like commonmark doesn’t do the strikethrough (and possibly other conversions).
That said, I’ll look at this further to see if we can try to get some parity.
Hello @BingoLaHaye
How do you put a header/footer with render_email()
?