Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for the backslash variant of a hard line break to GFM input #519
GFM (as well as CommonMark) allow a hard line break to be defined using a single trailing backslash.
This should produce:
I also think the parser should remove the newline from the start of the second line of text.
It's also interesting to note that GFM no longer interprets hard line breaks (hard_wrap) by default. It's easy enough to set this option to false, but it might be appropriate to reconsider it as the default option.
As for the hard_wrap option, I agree that could be a big change. Perhaps the right thing to do would be to note in the documentation / website that GFM with hard_wrap: false is technically the most true to GFM.
(The reason for the recommendation has to do with the fact that GFM is now based on CommonMark, so GFM isn't the same as it used to be).