4 ms·
The underscore bug sounds minor, but is not. The problem with this bug is you can start with something that works just as you would expect, like "HTTP_PROXY is
by joeyh 17y ago
The underscore bug sounds minor, but is not.
The problem with this bug is you can start with something that works just as you would expect, like "HTTP_PROXY is a CGI variable".
Now you go back and, edit the sentence: "HTTP_PROXY and REQUEST_METHOD are CGI variables". Suddenly, and in violation of Least Suprise, markdown spits out text that has a em tag between the two underscores.
So, in practice, you have to remember to always escape underscores, so you start with. "HTTP\_PROXY is a CGI variable" and never run into the problem.
Except now you have to keep this arbitrary rule in your head, and remember to do it all the time, and you end up with something that does not look like a plain text email; it's obviously marked up now. Which rather defeats the point of markdown.
- tptacek 17y agoThe change required to fix that glitch is so not drastic that many (most?) Markdown implementations have silently applied it already.