shokwave comments on Natural Laws Are Descriptions, not Rules - Less Wrong

32 Post author: pragmatist 08 August 2012 04:27AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (234)

You are viewing a single comment's thread. Show more comments above.

Comment author: shokwave 12 August 2012 04:19:33PM -1 points [-]

Why does the MarkDown italics mark-up work even within words, anyway?

It's probably less work to read character-by-character than to split on words and read the first and last character of each.

Comment author: arundelo 12 August 2012 04:44:26PM 3 points [-]

And it makes the rare-but-still-occasionally-desired case doable without escaping into HTML (which is not possible in LW's no-HTML subset of Markdown).

Comment author: [deleted] 12 August 2012 08:32:26PM *  1 point [-]

You'd only need, whenever you see an underscore, to check whether the previous character is whitespace (or punctuation, e.g. a left parenthesis). Arundelo's point seems more valid to me (though you might allow to escape spaces, e.g. _n_\ th... but that'd be more complicated).

Comment author: shokwave 12 August 2012 10:11:11PM 0 points [-]

True! I do not know why MarkDown italics works within words.