-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Open
Labels
Description
Timestamps (e.g. <t:1708551317>) are correctly parsed when wrapped in strikethrough (~~), but are silently treated as plain text when wrapped in bold (**) or italic (_).
Steps to reproduce:
Send the following messages in Rocket.Chat:
~<t:1708551317>~→ ✅ renders as formatted timestamp inside strikethrough**<t:1708551317>**→ ❌ renders as raw text<t:1708551317>inside bold_<t:1708551317>_→ ❌ renders as raw text<t:1708551317>inside italic
Expected behavior:
Timestamps should be parsed and rendered correctly inside bold and italic text, just like they are inside strikethrough.
Root cause:
In grammar.pegjs, StrikethroughContent includes TimestampRules, but BoldContentPreferentialItemPattern and ItalicContentPreferentialItemPattern do not. Adding TimestampRules to both would fix this.
Reactions are currently unavailable