Skip to content

fix: custom emoji shortcodes with dashes and missing emoji tags#370

Merged
barrydeen merged 1 commit intomainfrom
fix/custom-emoji-shortcodes
Mar 30, 2026
Merged

fix: custom emoji shortcodes with dashes and missing emoji tags#370
barrydeen merged 1 commit intomainfrom
fix/custom-emoji-shortcodes

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Allow dashes (-) in custom emoji shortcodes across input validation, parsing, and rendering regex patterns
  • Add emoji tags to published events so custom emojis in post content render for all clients
  • Bump v0.16.1

Test plan

  • Add an emoji pack with shortcodes containing dashes (e.g. :cool-cat:)
  • Use a dash-containing shortcode in a new post and verify it renders after publishing
  • Verify emoji tags appear in the published event (check raw JSON)
  • Confirm existing underscore-only shortcodes still work

… events

Shortcode regex only allowed [a-zA-Z0-9_], silently stripping dashes from
shortcodes. Emoji packs from other clients using dashes would never render.
Additionally, published notes never included emoji tags for shortcodes used
in the content, so custom emojis wouldn't render for anyone.

Bump v0.16.1
@barrydeen barrydeen merged commit 093d705 into main Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant