-
Notifications
You must be signed in to change notification settings - Fork 14
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending spoilers #869
Comments
A different markdown parser that is more easily customizable would greatly simplify this step, and would also allow things like |
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 |
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 |
I'd go for |
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 |
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 |
Apparently the mobile version of riot uses /spoiler? i'm not sure why that's not implemented here already. |
@SaturnSoftware yes but it's only for the whole line, cannot spoilermark words. |
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. |
Bots don't use Element. |
yes, |
Using |
Is there any way currently to send an image as a spoiler, not just text? |
as a workaround, you can nest an |
you'd have to use devtools |
How do you get an mxc for an image uploaded to somewhere on Matrix and how should it be referred to in |
I tested something like this with external image, but that didn't work:
|
no, you can't use http to reference images, only mxc urls are accepted, if you click the three dots and view the source of an image, you can see the mcx:// url |
It worked, thanks! Blurring on images is pretty weak though. Should I open a separate bug about it? |
if there isn't one already |
I didn't find anything, so I opened vector-im/element-web#16412. |
For the time being, would it be helpful to just add a |
That would be much nicer than using tags explicitly. But for images there might be a need to have an option to add that during upload. |
if there was an option to spoiler images, it would also be helpful to add an image description field, since it would be an inline image anyways, it wouldn't really be difficult to implement |
The ||spoiler|| syntax would certainly be helpful for inline spoilers. For backwards compatibility, the client could translate it to the HTML format before sending, and a similar way to enable editing. |
that's what it would have to do - clients don't render incoming markdown, given that dialects vary so much. The messages on the wire are a Matrix defined subset of HTML. |
Any news on this? |
You can now send a spoiler message using |
what about single words? |
That's why this issue is not closed yet. Any updates on that will be right here. But given it is marked as |
it's blocked by the switch from commonmark i think ? |
Please add support for spoiler images, too. |
I think images should already work, but blurring can be improved. See related: vector-im/element-web#16412 |
@shmerl Ah right, but is there a way to do this when attaching an image? Or just linking to one? |
yeah, there should be some UI / syntax options for that that are currently absent. |
Spoiler images actually need a spec change to be properly supported, since sending images inline isn't an adequate solution for encrypted rooms. |
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. |
@Sorunome given that we have |
We can't do |
Could you elaborate? Is this because of limitations with commonmark libraries? |
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 |
Another possible syntax is the Reddit-style:
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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.The text was updated successfully, but these errors were encountered: