Ah! URL parsing makes sense – a worthy exception.
However, it appears I have walked into a grey area around line wrapping. Based on some StackOverflow questions, which linked to CommonMark & John Gruber it seems that the OG Markdown doesn’t expect a single line feed to represent a paragraph or line break in the rendered output, but double-space-line-break should (or two line breaks). CommonMark seems to be more ambiguous. (Links at end)
The workflow I’m aiming for is:
- Write article in bear/panda
- Convert to markdown and line wrap to 80 col
- Share with world
- Make edits by opening up the md file in Panda
I accept (begrudgingly!) that when the file is saved again my wrapping would be lost, but on import, I expected it to follow my experience with full markdown renderers – which is not treat a single line break as a para.
Of note, my follow up testing showed the following:
- VS Code Preview: doesn’t render line break!
- Jekyll: Doesn’t render line break!
- Drafts: Does render line break, and feels more like a “text” editor so may be ok
- Ulysses: Does render line break, and feels like it is a document editor and thus shouldn’t render line breaks.
As noted in the StackOverflow article, Panda now has a command line option to change this behaviour.
(Follow links because as a new user I can only include 2, and the first links to the CommonMark discussion)