Repository navigation
Escape the backticks in Sharpie's kaomoji - #15
Merged
Merged
Conversation
The personality offered (・`ω´・) as an example, and its bare backtick opened inline code that ran to the next backtick in the reply. Replies and edits now have kaomoji backticks escaped before the writing check and posting, and the example kaomoji are ones with no Markdown in them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HarryCordewener
marked this pull request as draft
December 2, 2026 23:57
|
Caution Review failedThe pull request is closed. WalkthroughSharpie adds ChangesKaomoji backtick escaping
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Merge Risk:
|
HarryCordewener
marked this pull request as ready for review
December 3, 2026 00:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Grave · project thread
Why
Personality.mdoffered(・`ω´・)as an example kaomoji. Sharpie keeps using it, and Discord reads its bare backtick as the start of inline code. That code runs to the next backtick in the reply, which breaks the rest of the answer's formatting.What changes
ReplyText.EscapeKaomoji: escapes unescaped backticks inside kaomoji, outside ``` blocks.u(me/FN`X)doesn't match, so it's left alone.Answerer: runs it on the final reply and the rewrite, beforeWritingCheck. A kaomoji no longer triggers the stray-backtick rewrite.DocsTools: runs it onedit_answertext too.Personality.md: the examples are now ( ̄ー ̄) and ( ̄▽ ̄)ゞ, and it says to pick kaomoji with no backtick, asterisk, underscore or backslash.Testing
EscapesBackticksInKaomoji, six cases:The tests failed to build before
EscapeKaomojiexisted.NoExampleKaomojiHasABacktick.112 tests pass,
dotnet buildhas no warnings, anddotnet formatis clean.🤖 Generated with Claude Code
Summary by CodeRabbit