Update organizing-information-with-collapsed-sections.md
Escape code block to allow nested code blocks correctly per [this](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#fenced-code-blocks). Currently, copying the code and pasting into a github wiki doesn't render the code block as syntax highlighted code like the screenshot. It looks like this: <details><summary>CLICK ME</summary> <p> #### We can hide anything, even code! ```ruby puts "Hello World" ``` </p> </details> Not this: <details><summary>CLICK ME</summary> <p> #### We can hide anything, even code! ```ruby puts "Hello World" ``` </p> </details>
This commit is contained in:
@@ -16,19 +16,19 @@ You can temporarily obscure sections of your Markdown by creating a collapsed se
|
||||
|
||||
Any Markdown within the `<details>` block will be collapsed until the reader clicks {% octicon "triangle-right" aria-label="The right triange icon" %} to expand the details. Within the `<details>` block, use the `<summary>` tag to create a label to the right of {% octicon "triangle-right" aria-label="The right triange icon" %}.
|
||||
|
||||
```markdown
|
||||
````markdown
|
||||
<details><summary>CLICK ME</summary>
|
||||
<p>
|
||||
|
||||
#### We can hide anything, even code!
|
||||
|
||||
```ruby
|
||||
puts "Hello World"
|
||||
```
|
||||
```ruby
|
||||
puts "Hello World"
|
||||
```
|
||||
|
||||
</p>
|
||||
</details>
|
||||
```
|
||||
````
|
||||
|
||||
The Markdown will be collapsed by default.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user