Forked from pierrejoubert73/markdown-details-collapsible.md
Created
January 31, 2023 13:57
-
-
Save ritwik-g/a012333652aee5a6c6ce35bc9a37eef8 to your computer and use it in GitHub Desktop.
Revisions
-
pierrejoubert73 revised this gist
Aug 10, 2022 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,5 +37,5 @@ </details> ## Rules 1. Have an **empty line** after the `</summary>` tag or markdown/code blocks will not render. 1. Have an **empty line** after each `</details>` tag if you have multiple collapsible sections. -
pierrejoubert73 revised this gist
Aug 10, 2022 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ ### Some Code ```js function logSomething(something) { console.log('Something', something); } ``` @@ -30,7 +30,7 @@ ### Some Code ```js function logSomething(something) { console.log('Something', something); } ``` -
pierrejoubert73 revised this gist
Aug 10, 2022 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,9 +11,9 @@ ### Some Code ```js function logSometing(something) { console.log('Something', something); } ``` </details> ```` @@ -30,9 +30,9 @@ ### Some Code ```js function logSometing(something) { console.log('Something', something); } ``` </details> -
pierrejoubert73 revised this gist
Aug 10, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ ### Some Code ```js function logSometing(something) { console.log('Something', something); } ``` </details> -
pierrejoubert73 revised this gist
Aug 10, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ ## How to ````md <details> <summary>Click me</summary> ### Heading 1. Foo -
pierrejoubert73 revised this gist
Aug 10, 2022 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,8 +6,8 @@ ### Heading 1. Foo 2. Bar * Baz * Qux ### Some Code ```js @@ -25,8 +25,8 @@ ### Heading 1. Foo 2. Bar * Baz * Qux ### Some Code ```js -
pierrejoubert73 revised this gist
Aug 10, 2022 . 1 changed file with 29 additions and 26 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,38 +1,41 @@ ## How to ````md <details> <summary>Click to expand!</summary> ### Heading 1. Foo 2. Bar * Baz * Qux ### Some Code ```js function logSometing(something) { console.log('Something', something); } ``` </details> ```` ## Example <details> <summary>Click me</summary> ### Heading 1. Foo 2. Bar * Baz * Qux ### Some Code ```js function logSometing(something) { console.log(`Logging: ${something}`); } ``` </details> ## Rules 1. Have an **empty line** after the closing `</summary>` tag or Markdown/code blocks will not render. 1. Have an **empty line** after the closing `</details>` tag if you have multiple collapsible sections after one another. -
pierrejoubert73 revised this gist
Jul 8, 2021 . 1 changed file with 5 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,9 +14,8 @@ <summary>Click to expand!</summary> ```javascript function logSometing(something) { console.log(`Logging: ${something}`); } ``` </details> @@ -34,6 +33,6 @@ * Sub bullets </details> ``` **Two important rules:** 1. Make sure you have an **empty line** after the closing `</summary>` tag, otherwise the markdown/code blocks won't show correctly. 2. Make sure you have an **empty line** after the closing `</details>` tag if you have multiple collapsible sections. -
pierrejoubert73 revised this gist
Dec 10, 2019 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # A collapsible section containing markdown <details> <summary>Click to expand!</summary> @@ -9,7 +9,7 @@ * Sub bullets </details> # A collapsible section containing code <details> <summary>Click to expand!</summary> @@ -21,7 +21,7 @@ ``` </details> # How to structure ``` # A collapsible section with markdown <details> @@ -34,6 +34,6 @@ * Sub bullets </details> ``` **NB:** Make sure you have an **empty line** after the closing `</summary>` tag, otherwise the markdown/code blocks won't show correctly. **NB**: Make sure you have an **empty line** after the closing `</details>` tag if you have multiple collapsible sections. -
pierrejoubert73 revised this gist
Oct 11, 2018 . 1 changed file with 38 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,39 @@ # A collapsible section with markdown <details> <summary>Click to expand!</summary> ## Heading 1. A numbered 2. list * With some * Sub bullets </details> # A collapsible section with code <details> <summary>Click to expand!</summary> ```javascript function whatIsLove() { console.log('Baby Don't hurt me. Don't hurt me'); return 'No more'; } ``` </details> # How to structure the markup ``` # A collapsible section with markdown <details> <summary>Click to expand!</summary> ## Heading 1. A numbered 2. list * With some * Sub bullets </details> ``` **NB:** Make sure you have an **empty line** after the closing `</summary>` tag. **NB**: Make sure you have an **empty line** after the closing `</details>` tag if you have multiple collapsible sections. -
pierrejoubert73 created this gist
Jun 30, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ Your markdown heading here <details> <summary> Show details </summary> Your markdown content here </details>