Closed ashfurrow closed 8 years ago
Looks like Swift Playgrounds automatically strips whitespace from the beginning/end of a file, which is handy.
So basically we'd need to strip the page contents of any newlines that exist adjacent to markdown blocks. Examples:
//:
/*:
*/
Should be doable with regexes, needs to be well-tested.
Code blocks like this come out with extra whitespace around them:
Is translated to:
With extra newlines at the bottom.
A PR fixing this issue should strip whitespace from the beginning/end of a page's code.