This one sounds weird but MarkdownPad probably uses
mode=gfm to render GitHub Flavored Markdown online previews which is "wrong" - I think the
mode=markdown should be used instead.
It is a bit counter-intuitive but GitHub has actually two markdown renderers:
- Enhanced GFM
READMEs, wiki pages etc. are rendered using the first option while the enhanced renderer is only available in comments, issues and pull requests. The main difference when writing documents is how new lines are handled - standard Markdown and also the basic GFM requires two spaces at the end of the line for
<br> to be rendered while Enhanced GFM only requires the newline character.
Because one usually writes READMEs in MarkdownPad and not GitHub issue comments, I think the first option should be used for preview, and that maps to
mode=markdown in the aforementioned API. GitHub has this terribly named, IMO, but I hope I made this clear. (Sorry if not, this is really a bit confusing.)