Skip to content

Spoiler Tag #8

@crookedneighbor

Description

@crookedneighbor

Background

Some guilds need to include trigger warnings for sensitive content in their messages. One way to handle this would be to implement the non-standard spoiler tag. Any content inside a spoiler tag should be rendered as normal markdown.

Example

>! I'm a spoiler
>! I'm _also_ a spoiler
I'm not a spoiler
>! * I'm another spoiler
>! * I'm yet another spoiler

Should render something like:

<div class="spoiler">
  <p>I'm a spoiler</p>
  <p>I'm <em>also</em> a spoiler</p>
</div>
<p>I'm not a spoiler</p>
<div class="spoiler">
  <ul>
     <li>I'm another spoiler</li>
     <li>I'm yet another spoiler</li>
  </ul>
</div>

Questions

  • What should the behavior be?
    • A blank box and hover over it to display content?
    • A blank box that clicking on it reveals the content?
    • A minimal box that hovering or clicking unrolls it?
  • How should it be styled?
    • Should it just supply the class and let the client style it?
    • Should it inline styles?
    • Should it provide it's own css stylesheet for use?
  • Where should this live? Should it be a separate repo? Does that repo already exist?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions