String Highlighting Quirk
CompletedAs I'm typing along, I notice that my string highlighting changes as I type, depending on whether the last character of the string is a space or not. Note how the quoted string color changes from blue to black, depending on the last character of the quoted string:



-
I just realized I'm seeing the same thing when I have "italics asterisks" around some text — the interior text goes from being italicized to not, depending on whether a space precedes the final asterisk:


0 -
That's how the parser works. In MultiMarkdown's parser (and true across almost all Markdown interpreters), a string isn't italics (or a quoted string for that matter) unless the final character is non-whitespace within the delimiters.
0 -
Huh. I learn something new every day. It seems weird, but I guess I can understand the logic behind it.
0
Please sign in to leave a comment.
Comments
3 comments