-
Notifications
You must be signed in to change notification settings - Fork 3.4k
@ character is not escapable #1168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Commonmark, unlike Gruber's original Markdown, allows all punctuation chars in U+0020..7F to be escaped with the backslash. Alas, Github's at-mention extension apparently works as a postprocessor on top of cmark-gfm and is not a part of its Autolinks extension. |
Indeed, we do postprocess to add @mentions to a document. By the time the If CommonMark didn't allow escaping all punctuation in ASCII with a backslash, the Markdown processor would leave the backslash alone, and then we could detect it in the postprocess stage. If we added an exception here, we'd no longer be CommonMark-compliant — the documents There's no simple solution here, unfortunately. |
Found an easy way to escape at signs! E.g.: @chloekek. This doesn't insert code markup or ZWSPs.
|
@chloekek Nice finding. |
@kivikakk What is the "ZWSP trick"? Zero-width space? @chloekek Great solution! @kivikakk See @spixi's suggestion that this get added to the help page. Zero-width spaces is a huge pain to type and interrupts the thought process while trying to compose messages. |
@jzabroski Yes, it stands for zero-width space. I didn't write or have input on the docs — might need to get in touch with @github/product-docs-core? (This is a guess, sorry if I'm @mention'ing the wrong team!) |
@github/product-docs-core is the right team! First responder here... I opened https://github.com/github/help-docs/issues/11534 to track this issue. 😊 |
Just want to add a real-world use-case for this feature, which is that the JSON-LD spec has various keywords that begin with the @ symbol, e.g. |
Use the trick from github/markup#1168 (comment).
* stop mentioning users when they create a PR - creates notifications that seem fairly pointless given that people just created the PR - not sure people with mail workflows have a different perspective on this * dlangbot.github: Preserve formatting of fake mentions Use the trick from github/markup#1168 (comment). * dlang-bot.test.comments: Update test suite Co-authored-by: Vladimir Panteleev <[email protected]>
Another use case: SCSS has a variety of @-rules that it would be nice to be able to mention in issues without pinging the corresponding users. |
Hey! I found this ( ). Thus I could add ``` into my code block on my readme.md file 😁 |
escaping with \ (i.e Relevant: |
Poor @reset is going to miss the mentions |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
bump |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
can we disable this bot? they are trying to censor us |
@djdefi ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
still waiting for this feature |
Uh oh!
There was an error while loading. Please reload this page.
User Story
As a GitHub user I want to make @ characters escapable to avoid the automatic mentioning of users.
Problem
In GitHub issue comments it is not possible to escape the @ character with the backslash. This may lead to unintended mentioning of other users. It is however possible to use the grave (`@`) or the zero width space (U+200B). Since the ZWSP is hard to find after you copy a table, I do not recommend it here. I first noticed the bug this issue.
Examples
@spixi
\@spixi
`@spixi`
@spixi
@spixi
with ZWSPThe text was updated successfully, but these errors were encountered: