▲ | mixmastamyk 4 days ago | ||||||||||||||||
I used to do this with RST, though a backslash is needed at the end of the line to escape the newline. | |||||||||||||||||
▲ | chrismorgan 4 days ago | parent [-] | ||||||||||||||||
I don’t like reStructuredText’s backslash behaviour, because it means two completely different things. Or arguably three. Normally it means to interpret the next character literally, but if it’s followed by whitespace (typically space or newline) it instead removes that next character. Except… not entirely in the case of newline, because it’s character-level markup, and at the end of a block it just does nothing. In
you might expect to get “a b” or an error, but actually you get a single-item definition list with term “a” and definition “b”, just the same as if you had omitted the backslash.A far more logical meaning of a trailing backslash is to escape the newline, meaning, in HTML terms, insert <br>. That’s what I chose in my LML, and I later learned CommonMark chose that too. | |||||||||||||||||
|