Open Dunedan opened 6 years ago
These aren't entirely unexpected. In some dialects of Markdown (e.g. that used on Stack Overflow), single newlines in the markdown are ordinarily ignored and don't produce newlines in the rendered HTML, and to produce a <br>
you need to have two trailing spaces before the newline.
However, in some other dialects of Markdown (e.g. the one on GitHub that I'm using to write this message) that's not the case and single new lines in the Markdown get rendered as line breaks.
It'd therefore be nice to add an option that lets us choose between the two dialects.
i second what @ExplodingCabbage said...
i ran into this program through a tool used for migrating wordpress to jekyll: exitwp.py. It uses this library. Now, i’m trying to find a way to preserve those new-lines, but i don’t really see an option, except the single-line-break, which doesn’t help. :(
this really sucks as the migration tool is absolutely PERFECT, save this newline problem. (UNLESS... my xml file didn’t preserver line breaks in the first place. That would really suck ;( )
testing github newline
strange that this works here, in the issues, but not for the repo readme nor jekyll pages .
2018.1.9
3.6.4
Using the following code I get unexpected whitespaces in front of each
<br>
which got replaced by\n
:Additionally the
single_line_break
setting doesn't seem to have any effect at all.