Skip to content

Instantly share code, notes, and snippets.

@djsnipa1
Forked from dotiful/README.md
Created April 10, 2020 20:48
Show Gist options
  • Save djsnipa1/9ed9cb68505b842983eeb6c8cc3568b7 to your computer and use it in GitHub Desktop.
Save djsnipa1/9ed9cb68505b842983eeb6c8cc3568b7 to your computer and use it in GitHub Desktop.

Revisions

  1. @dotiful dotiful revised this gist Jun 10, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Collapsible markdown with [`<details>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details)

    ```md
    ```html
    <details>
    <summary>Details</summary>
    hidden, collapsable content...
  2. @dotiful dotiful revised this gist Jun 10, 2019. 1 changed file with 18 additions and 2 deletions.
    20 changes: 18 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,20 @@
    # Nested collapsible Markdown list
    # Collapsible markdown with [`<details>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details)

    ```md
    <details>
    <summary>Details</summary>
    hidden, collapsable content...
    </details>
    ```

    Demo:

    <details>
    <summary>Details</summary>
    hidden, collapsable content...
    </details>

    # Nested Collabpsible list items

    <details>
    <summary> root </summary>
    @@ -59,4 +75,4 @@

    </details>

    Copied from [here](https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d#gistcomment-2694183)
    > [credits](https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d#gistcomment-2694183)
  3. @dotiful dotiful created this gist Jun 10, 2019.
    62 changes: 62 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,62 @@
    # Nested collapsible Markdown list

    <details>
    <summary> root </summary>

    <blockquote>

    <details>

    <summary> bin </summary>

    <blockquote>

    <details><summary> nest1 </summary>
    <blockquote>

    ```sh
    a
    b
    c
    ```

    </blockquote>
    </details>

    <details><summary> nest2 </summary><blockquote>

    a
    b
    c
    </blockquote></details>

    ```sh
    file1
    file2
    file3
    ```

    </blockquote></details>

    <details><summary> boot </summary><blockquote>

    x
    y
    z
    </blockquote></details>

    <details>
    <summary> dev </summary>
    <blockquote>

    p
    q
    r
    </blockquote>
    </details>

    </blockquote>

    </details>

    Copied from [here](https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d#gistcomment-2694183)