1
0
mirror of synced 2025-12-19 18:10:59 -05:00

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:
perpil
2022-05-31 11:48:56 -07:00
committed by GitHub
parent c519676f6c
commit 401edab39f

View File

@@ -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.