cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.87k stars 242 forks source link

spoiler creation support #177

Closed deltanedas closed 2 years ago

deltanedas commented 2 years ago

Is your feature request related to a problem? Please describe.

being able to send spoiler text from cinny

Describe the solution you'd like

||text|| -> plain (Spoiler: text) or something, html <span data-mx-spoiler>text</span>

Describe alternatives you've considered

text - ew verbose

text - ew still verbose, and has no grounds in matrix #### Additional context discord uses || afaik element has no way to create it besides a command (for the whole message) not part of commonmark so custom parsing is probably needed
deltanedas commented 2 years ago

probably involves a pr to https://github.com/micromark/micromark

samueldr commented 2 years ago

afaik element has no way to create it besides custom events

No in-line spoilers, but full-message with /spoiler the spoiler text works in Element.

deltanedas commented 2 years ago

interesting, updated