You are reading a single comment by @Drakien and its replies. Click here to read the full conversation.
  • From a Markdown perspective, that is code.

    The real issue is that someone is using backticks ` as apostrophes.

    Or their keyboard is doing this. That kind of thing used to happen all the time when Microsoft Word was the editor of choice for email(!).

    I guess it's just that people aren't familiar with Markdown yet, so it's going to take a while before people realise what is going to happen when they have multiple ` in a line, or multiple * in a line... i.e. strange mysterious things.

  • No, I'd failed to hit the reply button but was still rambling at motter and the inline code snippets markdown.

    Yes, I know the issue. Unfortunately the fix is hard. To fix it, instead of looking through a comment for what looks like a hashtag, we'd have to contextualise where we look. And it's not even as simple as "not within a code block", because you could nest this stuff.

    We have the same problem with unbalanced HTML (invalidly nested elements), in that we'd need more context than we currently have.

    The fix involves created a balanced tree out of the comment HTML instead of parsing it like an input stream of tokens. It's DOM vs SAX... we use a more SAX way.

    That's going to be a lot of careful work... and the edge cases are so few and far between that people will rightly ask us to fix other things first.

    The RGB workaround should see you fine until we get to it.

About

Avatar for Drakien @Drakien started