▲ | chrismorgan 4 days ago | |||||||
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. | ||||||||
▲ | mixmastamyk 4 days ago | parent [-] | |||||||
> meaning of a trailing backslash is to escape the newline That's what it does in this example. Don't have to use other cases, and don't believe I did. | ||||||||
|