Details
-
Bug
-
Resolution: Fixed
-
Low
-
3.3.1
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
- is duplicated by
-
BSERV-7484 ignore @mentions in code snippets
- Closed
-
BSERV-8553 Code blocks should not parse '@' user names
- Closed
- is related to
-
BSERV-8301 Stash's comments mangle NSString literals and other @-prefixed things (@"foo" is rendered as @foo)
- Closed
- relates to
-
BSERV-9793 Mentions should not be expanded inside Markdown code blocks
- Long Term Backlog