From 6260871a21a00cd9959396c6ad07797fe526f089 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Thu, 27 Jun 2019 13:07:08 +0200 Subject: [PATCH] spoiler fallback to uploaded media --- proposals/2010-spoilers.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/proposals/2010-spoilers.md b/proposals/2010-spoilers.md index fc470fcc..7b128078 100644 --- a/proposals/2010-spoilers.md +++ b/proposals/2010-spoilers.md @@ -22,8 +22,9 @@ the spoiler by setting the attribute string. It could be rendered, for example, ![Spoiler rendering idea](https://user-images.githubusercontent.com/2433620/59299700-95063480-8c8d-11e9-9348-3e2c8bc94bdc.gif) -The plain-text fallback could be rendered as `(Spoiler: )` and -`(Spoiler for : )` respectively. +To preserve the semantics of a spoiler in the plaintext fallback it is recommended to upload the contents of the spoiler +as a text file and then link this: `[Spoiler](mxc://someserver/somefile)` and +`[Spoiler for reason](mxc://someserver/somefile)` respectively. ### Example Without reason: @@ -32,7 +33,7 @@ Without reason: "msgtype": "m.text", "format": "org.matrix.custom.html", "body": "Hello there, the movie was (Spoiler: awesome)", - "formatted_body": "Hello there, the movie was awesome" + "formatted_body": "Hello there, the movie was [Spoiler](mxc://someserver/somefile)" } ``` With reason: @@ -41,7 +42,7 @@ With reason: "msgtype": "m.text", "format": "org.matrix.custom.html", "body": "Hey (Spoiler for movie: the movie was awesome)", - "formatted_body": "Hey the movie was awesome" + "formatted_body": "Hey [Spoiler for movie](mxc://someserver/somefile)" } ```