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.
console.log("I'm a code block!");
<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.
```javascript
console.log("I'm a code block!");
```
</details>
Thank you very much for this gist!
Question: Let's say I have a list and several items in the list have a
<details>
block, is it possible to indent these blocks so as to not mess up the list indentation? In the below example I would prefer if the arrow and expanded content could be indented under the list.Example:
Example
Example
Example