blastula icon indicating copy to clipboard operation
blastula copied to clipboard

Some R Markdown syntax not render?

Open brian-law-rstudio opened this issue 4 years ago • 3 comments

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"
+ )

brian-law-rstudio avatar Apr 10 '20 22:04 brian-law-rstudio

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?

BingoLaHaye avatar Apr 22 '20 00:04 BingoLaHaye

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.

rich-iannone avatar Apr 22 '20 01:04 rich-iannone

Hello @BingoLaHaye How do you put a header/footer with render_email()?

Dante-Guerrero avatar Aug 20 '20 04:08 Dante-Guerrero