CLICK ME
yes, even hidden code blocks!
print("hello world!")
Is that possible without a click event? Like text will hide automatically after a few second?
Multiple Collapsible
Can somebody told me, how to hide under sploier this
Can somebody told me, how to hide under sploier this
Detail 1
- Detail 1.1
- Detail 1.2
Detail 2
- Detail 2.1
?
You can nest it
Below is what you are looking for ?
This is how the above is made
- <details><summary>Detail 1</summary>
- Detail 1.1
- Detail 1.2
- <details><summary>Detail 2</summary>
- Detail 2.1
- Detail 2.2
</details>
</details>
CLICK ME
This collapsible block is open by default
Can you show the markdown code for this?
God bless you =) it is just awesome!
This is crystal clear - awesome stuff. Thank you!
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<details>
<summary><mark><font color=darkred>Android Node Tree</font></mark>
</summary>
<p>
#```xml
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
#```
</p>
</details>
remove # before code block
How can I have a details view expanded as default ?
How can I have a details view expanded as default ?
@Dji75 in case you still need this info, it is:
<details open>
Some serious magic going on here. Really helps tame long pastes.
And how? Where is my images?
[Read]
Sequential 1MiB (Q= 8, T= 1): 100.873 MB/s [ 96.2 IOPS] < 82613.63 us>
Sequential 1MiB (Q= 1, T= 1): 49.007 MB/s [ 46.7 IOPS] < 21282.71 us>
Random 4KiB (Q= 32, T=16): 0.640 MB/s [ 156.3 IOPS] <519876.99 us>
Random 4KiB (Q= 1, T= 1): 0.350 MB/s [ 85.4 IOPS] < 11667.33 us>
[Write]
Sequential 1MiB (Q= 8, T= 1): 94.593 MB/s [ 90.2 IOPS] < 85754.18 us>
Sequential 1MiB (Q= 1, T= 1): 95.837 MB/s [ 91.4 IOPS] < 10927.93 us>
Random 4KiB (Q= 32, T=16): 1.091 MB/s [ 266.4 IOPS] <309245.24 us>
Random 4KiB (Q= 1, T= 1): 1.040 MB/s [ 253.9 IOPS] < 3920.22 us>
Profile: Default
Test: 1 GiB (x5) [Interval: 5 sec] <DefaultAffinity=DISABLED>
Date: 2021/11/19 12:27:46
OS: Windows 7 Professional [6.1 Build 7601] (x64)
[Read]
Sequential 1MiB (Q= 8, T= 1): 78.859 MB/s [ 75.2 IOPS] <104558.06 us>
Sequential 1MiB (Q= 1, T= 1): 67.952 MB/s [ 64.8 IOPS] < 15376.81 us>
Random 4KiB (Q= 32, T=16): 0.579 MB/s [ 141.4 IOPS] <546235.94 us>
Random 4KiB (Q= 1, T= 1): 0.304 MB/s [ 74.2 IOPS] < 13403.89 us>
[Write]
Sequential 1MiB (Q= 8, T= 1): 76.762 MB/s [ 73.2 IOPS] <107149.88 us>
Sequential 1MiB (Q= 1, T= 1): 57.834 MB/s [ 55.2 IOPS] < 18034.57 us>
Random 4KiB (Q= 32, T=16): 1.084 MB/s [ 264.6 IOPS] <408687.55 us>
Random 4KiB (Q= 1, T= 1): 0.896 MB/s [ 218.8 IOPS] < 4561.90 us>
Profile: Default
Test: 1 GiB (x5) [Interval: 5 sec] <DefaultAffinity=DISABLED>
Date: 2021/11/19 12:19:47
OS: Windows 7 Professional [6.1 Build 7601] (x64)
You neen new line between <details>
the image and </details>
https://gist.github.com/joyrexus/16041f2426450e73f5df9391f7f7ae5f#gistcomment-3041229
Without adding new line, the code block does not work as expected.
@niceguysforhelp How did you make the header collapsible above (that too in line). Mine comes below one line and not beside the arrow.
<details>
<summary>
# Header
</summary>
<p>
</details>
@darshan315 It seems like we need to use CSS in-order to fix the in-Line problem.
details summary > * { display: inline; }
-A couple notes on this technique. First, I recommend using inline, and not inline-block, as the line wrapping issue still occurs with inline-block when the heading text extends beyond one line.
-Second, rather than changing the display value of the nested elements, you might be tempted to replace the <summary>
element’s default display: list-item value with display: flex. At least I was! However, if we do this, the arrow marker will disappear. Whoops!
Whoop, thanks for posting this. Makes for a much more readable document when including lengthy output sections (like tracebacks, etc...)
wonderful, I was looking for this for a long time.
THANKS
I saw @antranapp's comment and figured out how to do it. here it is
<details open>
<summary>click to collapse</summary>
this one starts expanded because of the "open"
</details>
this one starts expanded because of the "open"
Is there a way to have this work with links without having to write the htlm directrly?
For mentioning links in Markdown, refer to this.
you can also use that in the collapsable section.
TESST
Any advice on how to get it to work in GitHub Pages? In GitHub it looks beautiful.
on the rendered page, much less so.
@Laura-Novich-OBW - you probably want to check out the CSS sections of https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
in or to a foreign country. (= overseas)
If you are accustomed to something, you know it so well or have experienced it so often that it seems natural, unsurprising, or easy to deal with.
this one starts expanded because of the "open"
Awesome Entire markdown works inside this
This is intended as a quick reference and showcase. For more complete info, see John Gruber's original spec and the Github-flavored Markdown info page.
Note that there is also a Cheatsheet specific to Markdown Here if that's what you're looking for. You can also check out more Markdown tools.
Table of Contents
Headers
Emphasis
Lists
Links
Images
Code and Syntax Highlighting
Tables
Blockquotes
Inline HTML
Horizontal Rule
Line Breaks
YouTube Videos
Headers
H1
H2
H3
H4
H5
H6
Alternatively, for H1 and H2, an underline-ish style:
Alt-H1
Alt-H2
Emphasis
Emphasis, aka italics, with asterisks or underscores.
Strong emphasis, aka bold, with asterisks or underscores.
Combined emphasis with asterisks and underscores.
Strikethrough uses two tildes.
Scratch this.Lists
(In this example, leading and trailing spaces are shown with with dots: ⋅)
Actual numbers don't matter, just that it's a number
Ordered sub-list
And another item.
You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
To have a line break without a paragraph, you will need to use two trailing spaces.
Note that this line is separate, but within the same paragraph.
(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
Links
There are two ways to create links.
I'm an inline-style link
I'm an inline-style link with title
I'm a reference-style link
I'm a relative reference to a repository file
You can use numbers for reference-style link definitions
Or leave it empty and use the link text itself.
URLs and URLs in angle brackets will automatically get turned into links.
http://www.example.com or http://www.example.com and sometimes
example.com (but not on Github, for example).
Some text to show that the reference links can follow later.
Images
Here's our logo (hover to see the title text):
Inline-style:
Reference-style:
Code and Syntax Highlighting
Code blocks are part of the Markdown spec, but syntax highlighting isn't. However, many renderers -- like Github's and Markdown Here -- support syntax highlighting. Which languages are supported and how those language names should be written will vary from renderer to renderer. Markdown Here supports highlighting for dozens of languages (and not-really-languages, like diffs and HTTP headers); to see the complete list, and how to write the language names, see the highlight.js demo page.
Inline
code
hasback-ticks around
it.Blocks of code are either fenced by lines with three back-ticks
```
, or are indented with four spaces. I recommend only using the fenced code blocks -- they're easier and only they support syntax highlighting.Tables
Tables aren't part of the core Markdown spec, but they are part of GFM and Markdown Here supports them. They are an easy way of adding tables to your email -- a task that would otherwise require copy-pasting from another application.
Colons can be used to align columns.
There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.
renders
Blockquotes
Quote break.
Inline HTML
You can also use raw HTML in your Markdown, and it'll mostly work pretty well.
Horizontal Rule
Three or more...
Hyphens
Asterisks
Underscores
Line Breaks
My basic recommendation for learning how line breaks work is to experiment and discover -- hit <Enter> once (i.e., insert one newline), then hit it twice (i.e., insert two newlines), see what happens. You'll soon learn to get what you want. "Markdown Toggle" is your friend.
Here are some things to try out:
Here's a line for us to start with.
This line is separated from the one above by two newlines, so it will be a separate paragraph.
This line is also begins a separate paragraph, but...
This line is only separated by a single newline, so it's a separate line in the same paragraph.
(Technical note: Markdown Here uses GFM line breaks, so there's no need to use MD's two-space line breaks.)
YouTube Videos
They can't be added directly but you can add an image with a link to the video like this:
Or, in pure Markdown, but losing the image sizing and border:
Referencing a bug by #bugID in your git commit links it to the slip. For example #1.
License: CC-BY