@ (at symbol) within Markdown backticks should not be interpreted as @mention

XMLWordPrintable

      I work on a team that uses Objective-C code in stash, so sometimes I want to use an @ symbol within my comment as part of a source code snippet:

      [NSString stringWithFormat:@"%lld apple pies", [applePie count]]
      

      So I escape it using Markdown backticks for an inline code section:

      `[NSString stringWithFormat:@"%lld apple pies", [applePie count]]`
      

      However, this gets interpreted as an @mention, and the quotes get removed from display. It renders like this:

      [NSString stringWithFormat:@%lld apple pies, [applePie count]]
      

      The workaround is to include the quotes twice in the input:

      `[NSString stringWithFormat:@""%lld apple pies"", [applePie count]]`
      

            Assignee:
            John van der Loo (Inactive)
            Reporter:
            Robert Ratliff
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: