Replies: 46 comments 5 replies
-
A different markdown parser that is more easily customizable would greatly simplify this step, and would also allow things like |
Beta Was this translation helpful? Give feedback.
-
I believe there is scope for this as the experience with CommonMark is kind of unsuitable IMO, especially for markdown in links which is not easily fixable from the consumer level. GFM would be a good shout but I don't see it being extensible to adding spoilers |
Beta Was this translation helpful? Give feedback.
-
Links to the MSC https://github.com/Sorunome/matrix-doc/blob/soru/spoilers/proposals/2010-spoilers.md and PR for viewing spoilers matrix-org/matrix-react-sdk#3018 |
Beta Was this translation helpful? Give feedback.
-
I'd go for |
Beta Was this translation helpful? Give feedback.
-
custom tags are pretty much ruled out IMO as the msc specifically added an attribute to the the span tag to not need to do custom html tags |
Beta Was this translation helpful? Give feedback.
-
The pipe syntax is really nice, IMO, and it has the additional benefit of familiarity for Discord users. I don't see multiple pipes in ordinary text as being common enough to warrant dismissing this syntax because of that. The same could be said for a lot of other Markdown special characters. For situations where you really need pipes, there's |
Beta Was this translation helpful? Give feedback.
-
Apparently the mobile version of riot uses /spoiler? i'm not sure why that's not implemented here already. |
Beta Was this translation helpful? Give feedback.
-
@SaturnSoftware yes but it's only for the whole line, cannot spoilermark words. |
Beta Was this translation helpful? Give feedback.
-
I've seen bots being able to do this (they are bots bridging the chatroom with discord), so I suppose there must be already a way. |
Beta Was this translation helpful? Give feedback.
-
Bots don't use Element. |
Beta Was this translation helpful? Give feedback.
-
yes, |
Beta Was this translation helpful? Give feedback.
-
Using |
Beta Was this translation helpful? Give feedback.
-
Is there any way currently to send an image as a spoiler, not just text? |
Beta Was this translation helpful? Give feedback.
-
as a workaround, you can nest an |
Beta Was this translation helpful? Give feedback.
-
you'd have to use devtools |
Beta Was this translation helpful? Give feedback.
-
Please add support for spoiler images, too. |
Beta Was this translation helpful? Give feedback.
-
I think images should already work, but blurring can be improved. See related: vector-im/element-web#16412 |
Beta Was this translation helpful? Give feedback.
-
@shmerl Ah right, but is there a way to do this when attaching an image? Or just linking to one? |
Beta Was this translation helpful? Give feedback.
-
yeah, there should be some UI / syntax options for that that are currently absent. |
Beta Was this translation helpful? Give feedback.
-
Spoiler images actually need a spec change to be properly supported, since sending images inline isn't an adequate solution for encrypted rooms. |
Beta Was this translation helpful? Give feedback.
-
I've created an MSC for media spoilers, and split their implementation out into a couple of new issues: element-hq/element-web#18061 https://github.com/vector-im/element-web/issues/18062. If you have ideas for the designs, I encourage you to drop them in there, as it'll help me have a sane first draft to present for design review once I implement this. |
Beta Was this translation helpful? Give feedback.
-
@Sorunome given that we have |
Beta Was this translation helpful? Give feedback.
-
We can't do |
Beta Was this translation helpful? Give feedback.
-
Could you elaborate? Is this because of limitations with commonmark libraries? |
Beta Was this translation helpful? Give feedback.
-
Ah, I didn't mean that it is technically impossible (I have no idea, but I imagine it is possible). I was simply saying you can't send a message like that in Element atm, afaik |
Beta Was this translation helpful? Give feedback.
-
Another possible syntax is the Reddit-style:
|
Beta Was this translation helpful? Give feedback.
-
Signal is adding formatting including spoilers. Spoilers are an essential part of formatting. |
Beta Was this translation helpful? Give feedback.
-
So what's the new syntax / way to use it, especially for images? |
Beta Was this translation helpful? Give feedback.
-
Not sure what the status of this now. Is it doable for images or not yet? |
Beta Was this translation helpful? Give feedback.
-
Spoiler should be added as markdown option. There should be syntax on which we can agree on. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your suggestion related to a problem? Please describe.
Recently rendering spoilers has been merged into riot develop, the problem is now that there is no way of sending them!
Describe the solution you'd like
Sending spoilers as extended markdown like
||spoiler||
and||reason|spoiler||
seems reasonable.Describe alternatives you've considered
None, this could be a discussion!
Additional context
||spoiler||
neatly aligns with existing messaging services (e.g. Discord). As for the extended||reason|spoiler||
it seems similar enough to just a plain spoiler to implement.Beta Was this translation helpful? Give feedback.
All reactions