convert markdown linebreaks from \n to
, then convert back to \n in JS and convert to markdown, so that I can still remove all linebreaks and whitespace from the HTML source (thanks @neosilky but it was my idea let's be real here)