Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save toorosan/d9c96e7d8843b428355a7c448c001b51 to your computer and use it in GitHub Desktop.
Save toorosan/d9c96e7d8843b428355a7c448c001b51 to your computer and use it in GitHub Desktop.

Revisions

  1. @jbsulli jbsulli revised this gist Dec 13, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion GitHub spoiler markdown.md
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,7 @@
    ```

    </details>
    ````
    ````

    ### Credits:
    [https://github.com/dear-github/dear-github/issues/166](https://github.com/dear-github/dear-github/issues/166)
  2. @jbsulli jbsulli revised this gist Dec 13, 2017. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions GitHub spoiler markdown.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,12 @@
    ## Demo:

    <details>
    <summary>Click to see more</summary>
    <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("It works!");
    console.log("I'm a code block!");
    ```
    </details>

  3. @jbsulli jbsulli revised this gist Dec 13, 2017. 1 changed file with 17 additions and 2 deletions.
    19 changes: 17 additions & 2 deletions GitHub spoiler markdown.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,24 @@
    ## Demo
    ## Demo:

    <details>
    <summary>Click to see more</summary>

    ```javascript
    console.log("It works!");
    ```
    </details>
    </details>

    ## How to:

    ````markdown
    <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>
    ````
  4. @jbsulli jbsulli revised this gist Dec 13, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion GitHub spoiler markdown.md
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,4 @@
    ```javascript
    console.log("It works!");
    ```
    <details>
    </details>
  5. @jbsulli jbsulli created this gist Dec 13, 2017.
    9 changes: 9 additions & 0 deletions GitHub spoiler markdown.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    ## Demo

    <details>
    <summary>Click to see more</summary>

    ```javascript
    console.log("It works!");
    ```
    <details>