Add markdown format support (#25)

Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
This commit is contained in:
dougpagani
2020-11-30 12:51:34 -05:00
committed by GitHub
parent d1b07d9ed7
commit 2095e6ffe3
941 changed files with 37481 additions and 15 deletions

View File

@ -0,0 +1,16 @@
<table>
<thead>
<tr>
<th><em>foo</em></th>
<th><strong>bar</strong></th>
<th><del>baz</del></th>
</tr>
</thead>
<tbody>
<tr>
<td>100</td>
<td>blabla</td>
<td>aaa</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,3 @@
| *foo* | **bar** | ~~baz~~ |
|-------|---------|---------|
| 100 | blabla | aaa |

View File

@ -0,0 +1,14 @@
<table>
<thead>
<tr>
<th>key</th>
<th>value</th>
</tr>
</thead>
<tbody>
<tr>
<td>My Key</td>
<td>My Value</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,3 @@
|key|value|
|--|--|
|My Key|My Value|

View File

@ -0,0 +1,30 @@
<table>
<thead>
<tr>
<th>Operator</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>&amp;</td>
<td>Logical AND</td>
</tr>
<tr>
<td>&amp;&amp;</td>
<td>Shortcut AND</td>
</tr>
<tr>
<td>|</td>
<td>Logical OR</td>
</tr>
<tr>
<td>||</td>
<td>Shortcut OR</td>
</tr>
<tr>
<td>^</td>
<td>Logical XOR</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,7 @@
| Operator | Description |
|----------|-------------|
| & | Logical AND |
| && | Shortcut AND |
| \| | Logical OR |
| \|\| | Shortcut OR |
| ^ | Logical XOR |

View File

@ -0,0 +1,81 @@
<table>
<thead>
<tr>
<th>some header</th>
</tr>
</thead>
<tbody>
<tr>
<td>some content</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>some header</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<table>
<thead>
<tr>
<th>some header</th>
</tr>
</thead>
<tbody>
<tr>
<td>some content</td>
</tr>
<tr>
<td>some content</td>
</tr>
<tr>
<td>some content</td>
</tr>
<tr>
<td>some content</td>
</tr>
<tr>
<td>some content</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align:left;">some header</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;">some content</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align:right;">some header</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:right;">some content</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align:center;">some header</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center;">some content</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,26 @@
|some header |
|------------|
|some content|
|some header |
|------------|
|some header |
|------------|
|some content|
|some content|
|some content|
|some content|
|some content|
|some header |
|:-----------|
|some content|
|some header |
|-----------:|
|some content|
|some header |
|:----------:|
|some content|

View File

@ -0,0 +1,15 @@
<table>
<thead>
<tr>
<th style="text-align:left;">Single column</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;">Row one</td>
</tr>
<tr>
<td style="text-align:left;">Row two</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,4 @@
| Single column |
|:--------------|
| Row one |
| Row two |

View File

@ -0,0 +1,21 @@
<table>
<thead>
<tr>
<th>Tables</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>col 3 is</strong></td>
</tr>
<tr>
<td>col 2 is</td>
</tr>
<tr>
<td>zebra stripes</td>
</tr>
</tbody>
</table>
<ol>
<li>test</li>
</ol>

View File

@ -0,0 +1,7 @@
| Tables |
| ------------- |
| **col 3 is** |
| col 2 is |
| zebra stripes |
1. test

View File

@ -0,0 +1,29 @@
<table>
<thead>
<tr>
<th>Tables</th>
<th style="text-align:center;">Are</th>
<th style="text-align:right;">Cool</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>col 3 is</strong></td>
<td style="text-align:center;">right-aligned</td>
<td style="text-align:right;">$1600</td>
</tr>
<tr>
<td>col 2 is</td>
<td style="text-align:center;"><em>centered</em></td>
<td style="text-align:right;">$12</td>
</tr>
<tr>
<td>zebra stripes</td>
<td style="text-align:center;">are neat</td>
<td style="text-align:right;">$1</td>
</tr>
</tbody>
</table>
<ol>
<li>test</li>
</ol>

View File

@ -0,0 +1,7 @@
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| **col 3 is** | right-aligned | $1600 |
| col 2 is | *centered* | $12 |
| zebra stripes | are neat | $1 |
1. test

View File

@ -0,0 +1,14 @@
<table>
<thead>
<tr>
<th>PowerShell command</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>Get-Service</td>
<td><code>Get-Service | Stop-Service -WhatIf</code></td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,3 @@
|PowerShell command|Example|
|--|--|
|Get-Service|`Get-Service | Stop-Service -WhatIf`|

View File

@ -0,0 +1,14 @@
<table>
<thead>
<tr>
<th style="text-align:right;">h1</th>
<th style="text-align:left;">h2</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:right;">asdf</td>
<td style="text-align:left;">one <code>two &lt;ol&gt; three</code></td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,3 @@
| h1 | h2 |
|--------:|:---------------------|
| asdf | one `two <ol> three` |

View File

@ -0,0 +1,18 @@
<table>
<thead>
<tr>
<th style="text-align:left;">First Header</th>
<th style="text-align:left;">Second Header</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;">Row 1 Cell 1</td>
<td style="text-align:left;">Row 1 Cell 2</td>
</tr>
<tr>
<td style="text-align:left;">Row 2 Cell 1</td>
<td style="text-align:left;">Row 2 Cell 2</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,4 @@
| First Header | Second Header |
| :------------ | :------------ |
| Row 1 Cell 1 | Row 1 Cell 2 |
| Row 2 Cell 1 | Row 2 Cell 2 |

View File

@ -0,0 +1,18 @@
<table>
<thead>
<tr>
<th id="first_header">First Header</th>
<th id="second_header">Second Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
</tr>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,4 @@
| First Header | Second Header |
| ------------- | ------------- |
| Row 1 Cell 1 | Row 1 Cell 2 |
| Row 2 Cell 1 | Row 2 Cell 2 |

18
node_modules/showdown/test/features/tables/basic.html generated vendored Normal file
View File

@ -0,0 +1,18 @@
<table>
<thead>
<tr>
<th>First Header</th>
<th>Second Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
</tr>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
</tr>
</tbody>
</table>

4
node_modules/showdown/test/features/tables/basic.md generated vendored Normal file
View File

@ -0,0 +1,4 @@
| First Header | Second Header |
| ------------- | ------------- |
| Row 1 Cell 1 | Row 1 Cell 2 |
| Row 2 Cell 1 | Row 2 Cell 2 |

View File

@ -0,0 +1,21 @@
<table>
<thead>
<tr>
<th>First Header</th>
<th>Second Header</th>
<th>Third Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content Cell</td>
<td>Content Cell</td>
<td>C</td>
</tr>
<tr>
<td>Content Cell</td>
<td>Content Cell</td>
<td>C</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,4 @@
First Header | Second Header|Third Header
------------- | -------------|---
Content Cell | Content Cell|C
Content Cell | Content Cell|C

View File

@ -0,0 +1,42 @@
<table>
<thead>
<tr>
<th style="text-align:left;">First Header</th>
<th style="text-align:center;">Second Header</th>
<th style="text-align:right;">Third Header</th>
<th>Fourth Header</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;">Row 1 Cell 1</td>
<td style="text-align:center;">Row 1 Cell 2</td>
<td style="text-align:right;">Row 1 Cell 3</td>
<td>Row 1 Cell 4</td>
</tr>
<tr>
<td style="text-align:left;">Row 2 Cell 1</td>
<td style="text-align:center;">Row 2 Cell 2</td>
<td style="text-align:right;">Row 2 Cell 3</td>
<td>Row 2 Cell 4</td>
</tr>
<tr>
<td style="text-align:left;">Row 3 Cell 1</td>
<td style="text-align:center;">Row 3 Cell 2</td>
<td style="text-align:right;">Row 3 Cell 3</td>
<td>Row 3 Cell 4</td>
</tr>
<tr>
<td style="text-align:left;">Row 4 Cell 1</td>
<td style="text-align:center;">Row 4 Cell 2</td>
<td style="text-align:right;">Row 4 Cell 3</td>
<td>Row 4 Cell 4</td>
</tr>
<tr>
<td style="text-align:left;">Row 5 Cell 1</td>
<td style="text-align:center;">Row 5 Cell 2</td>
<td style="text-align:right;">Row 5 Cell 3</td>
<td>Row 5 Cell 4</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,7 @@
| First Header | Second Header | Third Header | Fourth Header |
| :------------ |: ----------- :| ------------ :| ------------- |
| Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 |
| Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 |
| Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 |
| Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 |
| Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 |

42
node_modules/showdown/test/features/tables/large.html generated vendored Normal file
View File

@ -0,0 +1,42 @@
<table>
<thead>
<tr>
<th>First Header</th>
<th>Second Header</th>
<th>Third Header</th>
<th>Fourth Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
<td>Row 1 Cell 3</td>
<td>Row 1 Cell 4</td>
</tr>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
<td>Row 2 Cell 4</td>
</tr>
<tr>
<td>Row 3 Cell 1</td>
<td>Row 3 Cell 2</td>
<td>Row 3 Cell 3</td>
<td>Row 3 Cell 4</td>
</tr>
<tr>
<td>Row 4 Cell 1</td>
<td>Row 4 Cell 2</td>
<td>Row 4 Cell 3</td>
<td>Row 4 Cell 4</td>
</tr>
<tr>
<td>Row 5 Cell 1</td>
<td>Row 5 Cell 2</td>
<td>Row 5 Cell 3</td>
<td>Row 5 Cell 4</td>
</tr>
</tbody>
</table>

7
node_modules/showdown/test/features/tables/large.md generated vendored Normal file
View File

@ -0,0 +1,7 @@
| First Header | Second Header | Third Header | Fourth Header |
| ------------- | ------------- | ------------ | ------------- |
| Row 1 Cell 1 | Row 1 Cell 2 | Row 1 Cell 3 | Row 1 Cell 4 |
| Row 2 Cell 1 | Row 2 Cell 2 | Row 2 Cell 3 | Row 2 Cell 4 |
| Row 3 Cell 1 | Row 3 Cell 2 | Row 3 Cell 3 | Row 3 Cell 4 |
| Row 4 Cell 1 | Row 4 Cell 2 | Row 4 Cell 3 | Row 4 Cell 4 |
| Row 5 Cell 1 | Row 5 Cell 2 | Row 5 Cell 3 | Row 5 Cell 4 |

View File

@ -0,0 +1,26 @@
<table>
<thead>
<tr>
<th style="text-align:left;">Left-Aligned</th>
<th style="text-align:center;">Center-Aligned</th>
<th style="text-align:right;">Right-Aligned</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;">col 3 is</td>
<td style="text-align:center;">some wordy paragraph</td>
<td style="text-align:right;">$1600</td>
</tr>
<tr>
<td style="text-align:left;">col 2 is</td>
<td style="text-align:center;">centered</td>
<td style="text-align:right;">$12</td>
</tr>
<tr>
<td style="text-align:left;">zebra stripes</td>
<td style="text-align:center;">are neat</td>
<td style="text-align:right;">$1</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,5 @@
| Left-Aligned | Center-Aligned | Right-Aligned |
| :------------ |:--------------------:| -------------:|
| col 3 is | some wordy paragraph | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

View File

@ -0,0 +1,35 @@
<h1 id="tabletest">Table Test</h1>
<h2 id="section1">section 1</h2>
<table>
<thead>
<tr>
<th>header1</th>
<th>header2</th>
<th>header3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Value1</td>
<td>Value2</td>
<td>Value3</td>
</tr>
</tbody>
</table>
<h2 id="section2">section 2</h2>
<table>
<thead>
<tr>
<th>headerA</th>
<th>headerB</th>
<th>headerC</th>
</tr>
</thead>
<tbody>
<tr>
<td>ValueA</td>
<td>ValueB</td>
<td>ValueC</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,17 @@
Table Test
============
section 1
------------
|header1 |header2 |header3|
|-----------|-----------|---------|
|Value1 |Value2 |Value3 |
section 2
-----------
|headerA |headerB |headerC|
|-----------|-----------|---------|
|ValueA |ValueB |ValueC |

View File

@ -0,0 +1,7 @@
<p>some text</p>
<pre><code>| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| **col 3 is** | right-aligned | $1600 |
| col 2 is | *centered* | $12 |
| zebra stripes | ~~are neat~~ | $1 |
</code></pre>

View File

@ -0,0 +1,8 @@
some text
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| **col 3 is** | right-aligned | $1600 |
| col 2 is | *centered* | $12 |
| zebra stripes | ~~are neat~~ | $1 |

View File

@ -0,0 +1,47 @@
<h3 id="stats">Stats</h3>
<table>
<thead>
<tr>
<th>Status</th>
<th>AGENT1</th>
<th>AGENT2</th>
<th>AGENT3</th>
<th>AGENT4</th>
<th>AGENT5</th>
<th>AGENT6</th>
<th>AGENT7</th>
<th>AGENT8</th>
<th>AGENT9</th>
<th>TOTAL</th>
</tr>
</thead>
<tbody>
<tr>
<td>AGENT ERROR</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td></td>
</tr>
<tr>
<td>APPROVED</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td></td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,8 @@
### Stats
Status | AGENT1 | AGENT2 | AGENT3 | AGENT4 | AGENT5 | AGENT6 | AGENT7 | AGENT8 | AGENT9 | TOTAL |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
AGENT ERROR | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
APPROVED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |

View File

@ -0,0 +1,18 @@
<table>
<thead>
<tr>
<th>First Header</th>
<th>Second Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
</tr>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,4 @@
| First Header | Second Header |
| ============= | ============= |
| Row 1 Cell 1 | Row 1 Cell 2 |
| Row 2 Cell 1 | Row 2 Cell 2 |

View File

@ -0,0 +1,26 @@
<table>
<thead>
<tr>
<th>First Header</th>
<th>Second Header</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>bold</strong></td>
<td><img src="foo.jpg" alt="img" /></td>
</tr>
<tr>
<td><em>italic</em></td>
<td><a href="bla.html">link</a></td>
</tr>
<tr>
<td><code>some code</code></td>
<td><a href="www.google.com">google</a></td>
</tr>
<tr>
<td><a href="http://www.foo.com">www.foo.com</a></td>
<td>normal</td>
</tr>
</tbody>
</table>

View File

@ -0,0 +1,9 @@
| First Header | Second Header |
| ------------- | ----------------- |
| **bold** | ![img](foo.jpg) |
| _italic_ | [link](bla.html) |
| `some code` | [google][1] |
| <www.foo.com> | normal |
[1]: www.google.com

View File

@ -0,0 +1,28 @@
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisi est,
ullamcorper euismod iaculis sed, tristique at neque. Nullam metus risus,
malesuada vitae imperdiet ac, tincidunt eget lacus. Proin ullamcorper
vulputate dictum. Vestibulum consequat ultricies nibh, sed tempus nisl mattis a.</p>
<table>
<thead>
<tr>
<th>First Header</th>
<th>Second Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
</tr>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
</tr>
</tbody>
</table>
<p>Phasellus ac porttitor quam. Integer cursus accumsan mauris nec interdum.
Etiam iaculis urna vitae risus facilisis faucibus eu quis risus. Sed aliquet
rutrum dictum. Vivamus pulvinar malesuada ultricies. Pellentesque in commodo
nibh. Maecenas justo erat, sodales vel bibendum a, dignissim in orci. Duis
blandit ornare mi non facilisis. Aliquam rutrum fringilla lacus in semper.
Sed vel pretium lorem.</p>

View File

@ -0,0 +1,16 @@
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisi est,
ullamcorper euismod iaculis sed, tristique at neque. Nullam metus risus,
malesuada vitae imperdiet ac, tincidunt eget lacus. Proin ullamcorper
vulputate dictum. Vestibulum consequat ultricies nibh, sed tempus nisl mattis a.
| First Header | Second Header |
| ------------- | ------------- |
| Row 1 Cell 1 | Row 1 Cell 2 |
| Row 2 Cell 1 | Row 2 Cell 2 |
Phasellus ac porttitor quam. Integer cursus accumsan mauris nec interdum.
Etiam iaculis urna vitae risus facilisis faucibus eu quis risus. Sed aliquet
rutrum dictum. Vivamus pulvinar malesuada ultricies. Pellentesque in commodo
nibh. Maecenas justo erat, sodales vel bibendum a, dignissim in orci. Duis
blandit ornare mi non facilisis. Aliquam rutrum fringilla lacus in semper.
Sed vel pretium lorem.

View File

@ -0,0 +1,10 @@
<table>
<thead>
<tr>
<th>First Header</th>
<th>Second Header</th>
</tr>
</thead>
<tbody>
</tbody>
</table>

View File

@ -0,0 +1,2 @@
| First Header | Second Header |
| ------------- | ------------- |

View File

@ -0,0 +1 @@
<p>| First Header | Second Header |</p>

View File

@ -0,0 +1 @@
| First Header | Second Header |