Files
zulip/help/spoilers.md
Lauryn Menard e4166af617 help: Fix code block indention in markdown instruction tabs.
Our custom code fence parser for Python-Markdown does not nest
fenced code blocks inside list items, but it can be done with
4-space indented code blocks, as long the list item itself also
uses 4-space indentation.
2025-06-30 11:12:00 -07:00

1.3 KiB

Spoilers

{!spoilers-intro.md!}

Insert spoiler formatting

{start_tabs}

{tab|via-compose-box-buttons}

{!start-composing.md!}

  1. (optional) Select the text you want to hide inside the spoiler.

  2. Click the Spoiler () icon at the bottom of the compose box to insert spoiler formatting.

  3. Replace Header with the desired heading text.

!!! tip ""

You can also use the **Spoiler**
(<i class="zulip-icon zulip-icon-spoiler"></i>) icon
to remove existing spoiler formatting from the selected text.

{tab|via-markdown}

{!start-composing.md!}

  1. To create a spoiler section, use triple backticks and the word spoiler (````spoiler`) followed by an optional spoiler heading, some text, and triple backticks at the end:

    ```spoiler The spoiler heading
    This content is initially hidden.
    ```
    

!!! tip ""

A message can contain both spoilers and other content, and you can combine
spoilers with other formatting.

{end_tabs}

Examples

{!spoilers-examples.md!}