suchnsuch / Tangent

The publicly-available modules of the Tangent project.
141 stars 8 forks source link

Add Support for Spoiler #98

Open Docfips opened 1 month ago

Docfips commented 1 month ago

Requesting the markdown for a spoiler box. This is best used in terms of studying, homework, etc when you're studying and don't want to see the answer right away.

Discord uses the syntax: ||<text>||

Supernotes uses: !!<text>!!

taylorhadden commented 1 month ago

Seems like there's no formatting consensus here. Reddit uses: >!spoiler!<. I wonder how many other options there are…

Aesthetically, I prefer Supernote's take. Do you have a preference one way or another?

Another option for hiding information would be to create some kind of formatting that invokes the details tag. That's somewhat more complicated, but it isn't mutually exclusive with the spoiler tag.

k8ieone commented 1 week ago

I personally like Discord's variant but I'm probably biased because Discord introduced me to spoilers.

Also the pipes kinda look like curtains, which makes sense for hiding text :smile:

k8ieone commented 1 week ago

https://github.com/element-hq/element-meta/issues/869#issuecomment-1353555407 could be useful.

||reason|spoiler|| seems like an interesting option as well, but I don't see many use cases for this in a note-taking application.