Stop pandoc_convert() from wrapping code
Closed this issue · 1 comments
mdingemanse commented
Looks like the pandoc_convert()
step in wp_post()
wraps code by adding newline characters which upon import in WordPress become <br />
. Solution is to add wrap=none
to the pandoc option call: options = c("--mathjax","--wrap=none")
maelle commented
For next time, good to know: https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
You might enjoy this post once it's published: ropensci/roweb3#531 😁