Spoiler Content

10,669 views
Skip to first unread message

Yaşar Arabacı

unread,
Jul 17, 2018, 4:12:35 PM7/17/18
to nikola-...@googlegroups.com
Hi,

I am using markdown for my posts. I want some parts of the text that
contain "spoilers" be initially hidden, but can be made visible. Does
anyone have any experince doing this? If so, what would be the easy
wasy of achieving it?

--
http://ysar.net/

Roberto Alsina

unread,
Jul 17, 2018, 4:21:26 PM7/17/18
to Nikola—Discuss
If the "spoilery" content is not at the beginning of a post, you can use the teaser support: 


However, if you want the actual text to not be visible until the user clicks on something, no, I have no idea.

--
You received this message because you are subscribed to the Google Groups "nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Warrick

unread,
Jul 18, 2018, 5:30:41 AM7/18/18
to Nikola—Discuss
You could try using the HTML <details> tag:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

Aaron Meurer

unread,
Jul 20, 2018, 2:29:08 PM7/20/18
to nikola-...@googlegroups.com
You can use the HTML details tag, which should work fine in Markdown
since Markdown is a superset of HTML.
https://www.w3schools.com/tags/tag_details.asp

Aaron Meurer
Reply all
Reply to author
Forward
0 new messages