Extended Syntax
Deleted Text <del>
This is for strikethrough deleted text
This is for ~~strikethrough~~ deleted text
<p>This is for <del>strikethrough</del> deleted text</p>
Fenced Code Block <pre><code>
{ "firstName": "John", "lastName": "Gruber", "markdown": ["GFM", "MDX"]}
```json{ "firstName": "John", "lastName": "Gruber", "markdown": ["GFM", "MDX"]}```
<div class="sourceCode" id="cb1"><pre class="sourceCode json"><code class="sourceCode json"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">{</span></span><span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> <span class="dt">"firstName"</span><span class="fu">:</span> <span class="st">"John"</span><span class="fu">,</span></span><span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="dt">"lastName"</span><span class="fu">:</span> <span class="st">"Gruber"</span><span class="fu">,</span></span><span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a> <span class="dt">"markdown"</span><span class="fu">:</span> <span class="ot">[</span><span class="st">"GFM"</span><span class="ot">,</span> <span class="st">"MDX"</span><span class="ot">]</span></span><span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="fu">}</span></span></code></pre></div>
Tabular Data <table>
element | description |
---|---|
<table> | represents tabular data |
<thead> | a block of rows that consist of labels (headers) |
<th> | header cell in a table. |
<tbody> | a block of rows that consist of body data |
<tr> | a row of cells |
<td> | a data cell |
| element | description || ------------------------------------------------------------------------------------- | ------------------------------------------------ || [**`<table>`**](https://html.spec.whatwg.org/multipage/tables.html#the-table-element) | represents tabular data || [**`<thead>`**](https://html.spec.whatwg.org/multipage/tables.html#the-thead-element) | a block of rows that consist of labels (headers) || [**`<th>`**](https://html.spec.whatwg.org/multipage/tables.html#the-th-element) | header cell in a table. || [**`<tbody>`**](https://html.spec.whatwg.org/multipage/tables.html#the-tbody-element) | a block of rows that consist of body data || [**`<tr>`**](https://html.spec.whatwg.org/multipage/tables.html#the-tr-element) | a row of cells || [**`<td>`**](https://html.spec.whatwg.org/multipage/tables.html#the-td-element) | a data cell |
<table> <thead> <tr class="header"> <th>element</th> <th>description</th> </tr> </thead> <tbody> <tr class="odd"> <td><a href="https://html.spec.whatwg.org/multipage/tables.html#the-table-element"><strong><code><table></code></strong></a></td> <td>represents tabular data</td> </tr> <tr class="even"> <td><a href="https://html.spec.whatwg.org/multipage/tables.html#the-thead-element"><strong><code><thead></code></strong></a></td> <td>a block of rows that consist of labels (headers)</td> </tr> <tr class="odd"> <td><a href="https://html.spec.whatwg.org/multipage/tables.html#the-th-element"><strong><code><th></code></strong></a></td> <td>header cell in a table.</td> </tr> <tr class="even"> <td><a href="https://html.spec.whatwg.org/multipage/tables.html#the-tbody-element"><strong><code><tbody></code></strong></a></td> <td>a block of rows that consist of body data</td> </tr> <tr class="odd"> <td><a href="https://html.spec.whatwg.org/multipage/tables.html#the-tr-element"><strong><code><tr></code></strong></a></td> <td>a row of cells</td> </tr> <tr class="even"> <td><a href="https://html.spec.whatwg.org/multipage/tables.html#the-td-element"><strong><code><td></code></strong></a></td> <td>a data cell</td> </tr> </tbody></table>
Asides/Callouts
:::noteThis is a **note** aside.:::
:::tipThis is a **tip** aside.:::
:::cautionThis is a **caution** aside.:::
:::dangerThis is a **danger** aside.:::
Custom Titles
:::tip[This is a _Custom_ Title]Check it out!:::
Task List
- Start
- Continue
- Stop
- [x] Start- [ ] Continue- [ ] Stop
<ul class="task-list"> <li><label><input type="checkbox" checked="" />Start</label></li> <li><label><input type="checkbox" />Continue</label></li> <li><label><input type="checkbox" />Stop</label></li></ul>
Footnote
This has a footnote. 1
This has a footnote. [^1]
[^1]: footnote
<p>This has a footnote. <a href="#fn1" class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a></p><section id="footnotes" class="footnotes footnotes-end-of-document" role="doc-endnotes"> <hr> <ol> <li id="fn1"><p>footnote<a href="#fnref1" class="footnote-back" role="doc-backlink">↩︎</a></p></li> </ol></section>
Unsupported
Mermaid JS
%% comment (someday)flowchart TD Start --> Stop
```mermaid%% comment (someday)flowchart TD Start --> Stop```
Pre-generated Images
Default
mmdc -i basic.mmdc -o basic.png
mmdc -i basic.mmdc -o basic.svg
Dark Mode (-t dark
) & Transparent Background (-b transparent
)
mmdc -t dark -b transparent -i basic.mmdc -o basic.png
mmdc -t dark -b transparent -i basic.mmdc -o basic.svg
Others
<!-- Emojis -->
emoji :joy:
<!-- Heading ID -->
#### Custom ID {#custom-id}
<!-- Highlighted Text `<mark>` -->
==mark==
<!-- Subscript `<sub>` -->
H~2~O
<!-- Superscript `<sup>` -->
X^Y
<!-- Definition List -->
term: definition
Footnotes
-
footnote ↩