Skip to content

Instantly share code, notes, and snippets.

@GuillaumeFalourd
Created October 14, 2021 11:45
Show Gist options
  • Select an option

  • Save GuillaumeFalourd/9305b6372bc1ff7855004dcc83b6ff1d to your computer and use it in GitHub Desktop.

Select an option

Save GuillaumeFalourd/9305b6372bc1ff7855004dcc83b6ff1d to your computer and use it in GitHub Desktop.
Example of how to use a spoiler text in markdown

Demo Spoiler Text:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

System.out.print("Hello World");

How to:

<details>
  <summary>Spoiler warning</summary>
  
  Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the `<details>` tag... just make sure you close `<details>` afterward.
  
  ```java
  System.out.print("Hello World");
  ```
  
</details>
@coppolaop

Copy link
Copy Markdown

Nice idea, it was very useful for my blog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment