baranovskypd/goodpress

Stop pandoc_convert() from wrapping code

Closed this issue · 1 comments

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