You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _pages/markdown.md
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -210,9 +210,30 @@ or R:
210
210
print("Hello World!", quote=FALSE)
211
211
```
212
212
213
-
### Strike Tag
213
+
### Details Tag (collapsible sections)
214
+
215
+
The HTML `<details>` tag works well with Markdown and allows you to include collapsible sections, see [W3Schools](https://www.w3schools.com/tags/tag_details.asp) for more information on how to use the tag.
216
+
217
+
<details>
218
+
<summary>Collapsed by default</summary>
219
+
This section was collapsed by default!
220
+
</details>
221
+
222
+
The source code:
223
+
```HTML
224
+
<details>
225
+
<summary>Collapsed by default</summary>
226
+
This section was collapsed by default!
227
+
</details>
228
+
```
229
+
230
+
Or, you can leave a section open by default by including the `open` attribute in the tag:
231
+
232
+
<detailsopen>
233
+
<summary>Open by default</summary>
234
+
This section is open by default thanks to open in the <details open> tag!
235
+
</details>
214
236
215
-
This tag will let you <strike>strikeout text</strike>.
216
237
217
238
### Emphasize Tag
218
239
@@ -244,6 +265,10 @@ This tag styles large blocks of code.
0 commit comments