Change the spoiler pattern #540
nulldg
started this conversation in
Feature Suggestions
Replies: 1 comment 1 reply
-
Not sure about the KaTeX though, as changing the delimiters/patterns w/o backwards compatibility similar to the spoilers would mess w/ existing messages |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposal: Change the spoiler pattern from
!!text!!
to||text||
.Using a common punctuation symbol in a remark pattern is a bad idea because it frequently interferes with natural communication. In this case, it interferes with the posting of multiple exclamation marks. For example, a message such as "Yeah!! Thank you!!" will result in "Thank you" getting spoilered erroneously. This occurs no matter how many exclamation marks are added.
This is why Discord had the foresight to use an non-natural pattern,
||
, instead. Revolt doesn't need to follow this convention and may opt to use something else. Anything will work as long as it uses non-natural characters, but is still cosmetically satisfactory. However, in the interests of reducing the number of people asking how spoilers work in Revolt, I would strongly recommend following the convention.Alternative solutions include:
||
instead of!!
. This would automatically convert||
into!!
in any message being sent, while escaping!!
into\!\!
. This effectively solves the problem for the average user without affecting anything else.Optional accessory suggestions include:
!!
pattern may have a legacy option in the settings in order to automatically translate the old style into the proposed one.$katex$
to$$katex$$
. The current KaTeX pattern frequently interferes with talk involving figures in dollars, such as prices and finance. This affects all dollars across multiple countries, not just USD. If accepted, this change would best be implemented at the same time as changing the spoiler pattern.Beta Was this translation helpful? Give feedback.
All reactions