3 ms·
I'm not that psyched about automatic return-based linebreaks. Everyone thinks they should use linebreaks to align their text, and the system should just ignore
by StavrosK 14y ago
I'm not that psyched about automatic return-based linebreaks. Everyone thinks they should use linebreaks to align their text, and the system should just ignore all single line breaks.
The current behavior of Markdown solves this problem very well. I don't want the newlines I enter for non-wrapping editors to remain in the generated HTML.
- dfbrown 14y agoI agree, I am having trouble thinking of a situation where specific line break positions would be important to me in regular text that isn't covered by some other markdown structure such as code blocks or lists.
- stan_rogers 14y agoOne word: poetry. Traditional break behaviour (new para) is great between stanzas/verses; not so much between lines. (It's also the primary reason why the <br> tag still exists in HTML.)
- halostatue 14y agoThen insert the <br> tag with two spaces at the end of the line.
- stan_rogers 14y agoIt's not a matter of there being no work-around. MarkDown is meant to be as much for ease-of-use for the content creator/editor as it is to be a readable alternative text source. And HTML isn't always the desired output, so why should users have to know anything about HTML unless they're creating HTML?
- graue 14y agoIf you end a line with two spaces, the line break after it is kept. Not intuitive, sure, but it works. Perhaps an alternative "profile" could be specified that preserves all line breaks, and sites focused on poetry or song lyrics could use that profile.
- stickfigure 14y agoThat hidden feature is so thoroughly buried that I didn't even know about it until I read your msg - and I've been writing markdown for years. For mainstream users, it might as well not exist. Thanks, btw :)
- uvtc 14y agoPandoc supports using a backslash at the end of a line to insert a line-break.