Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-5441

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

    XMLWordPrintable

Details

    Description

      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]]`
      

      Attachments

        Issue Links

          Activity

            People

              jvanderloo@atlassian.com John van der Loo (Inactive)
              3557869ae8f5 Robert Ratliff
              Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: