Skip to main content
  1. Snippits & Exemplars/
  2. WolfspyreLabs Exemplars/
  3. WolfspyreLabs ShortBarks/

Spoiler

🐺 spoiler
Obfuscate some content behind a spoiler blob.

{{< spoiler >}} THING {{< /spoiler >}}

The spoiler shortcode uses a ::before css element to overlay a black segment atop the .Inner content.
The content is displayed after the users’ mouse hovers over the resource for >1s as defined by the css.


Parameters #

  • md Boolean (Default: false)
    This (if specified) will switch the rendering of .Inner
    From:

    • .Inner | safeHTML

    To:

    • .Inner | markdownify |htmlUnescape|safeHTML

Examples #

I’m curious as to what will happen if I …. Do a thing?
But I don’t really know?
Do multi-line things work?

{{< spoiler >}}
THING
do multi-line md strings work?
{{< /spoiler >}}
THING do multi-line `md` strings work?
{{< spoiler md=true >}}
THING
do multi-line md strings work?
{{< /spoiler >}}
THING
do multi-line md strings work?
{{% spoiler md=true %}}
THING
do multi-line md strings work?
{{% /spoiler %}}
THING
do multi-line md strings work?

link to where I found this shortcode1
Do multi-line things work?

[link to where I found this shortcode][source][^source]
Do multi-line things work?
[link to where I found this shortcode][source][^source] Do multi-line things work?
Spoilers

Alex Kingston… River…

You Are Dying

..You…Are…Dying