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,6 @@
<p>escaped word_with_underscores</p>
<p>escaped word__with__double underscores</p>
<p>escaped word<em>_with_</em>single italic underscore</p>
<p>escaped word*with*asterixs</p>
<p>escaped word**with**asterixs</p>
<p>escaped word<strong>*with*</strong>bold asterixs</p>

View File

@ -0,0 +1,11 @@
escaped word\_with\_underscores
escaped word\_\_with\_\_double underscores
escaped word_\_with\__single italic underscore
escaped word\*with*asterixs
escaped word\*\*with\*\*asterixs
escaped word**\*with\***bold asterixs

View File

@ -0,0 +1,12 @@
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>

View File

@ -0,0 +1,8 @@
* Item 1
* Item 2
1. Item 1
2. Item 2
- Item 1
- Item 2

View File

@ -0,0 +1 @@
<p>2015-10-04</p>

View File

@ -0,0 +1 @@
2015-10-04

View File

@ -0,0 +1,12 @@
<ol>
<li><p>Hi, I am a thing</p>
<pre><code class="sh language-sh">$ git clone thing.git
dfgdfg
</code></pre></li>
<li><p>I am another thing!</p>
<pre><code class="sh language-sh">$ git clone other-thing.git
foobar
</code></pre></li>
</ol>

View File

@ -0,0 +1,17 @@
1. Hi, I am a thing
```sh
$ git clone thing.git
dfgdfg
```
1. I am another thing!
```sh
$ git clone other-thing.git
foobar
```

View File

@ -0,0 +1,4 @@
<blockquote>
<p>a blockquote</p>
<h1 id="followedbyanheading">followed by an heading</h1>
</blockquote>

View File

@ -0,0 +1,2 @@
> a blockquote
# followed by an heading

View File

@ -0,0 +1,11 @@
<p>Test pre in a list</p>
<ul>
<li>&amp; &lt;</li>
<li><code>&amp; &lt;</code><ul>
<li>&amp; &lt;</li>
<li><code>&amp; &lt;</code><ul>
<li>&amp; &lt;</li>
<li><code>&amp; &lt;</code><ul>
<li>&amp; &lt;</li>
<li><code>&amp; &lt;</code></li></ul></li></ul></li></ul></li>
</ul>

View File

@ -0,0 +1,10 @@
Test pre in a list
- & <
- `& <`
- & <
- `& <`
- & <
- `& <`
- & <
- `& <`

View File

@ -0,0 +1,5 @@
<h2 id="title1">Title 1</h2>
<div></div>
<h1 id="title2">Title 2</h1>
<div>
</div>

View File

@ -0,0 +1,11 @@
Title 1
-------
<div></div>
# Title 2
<div>
</div>

View File

@ -0,0 +1,22 @@
<pre lang="no-highlight"><code>
foo
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
bar
</code></pre>
<p>this is a long paragraph</p>
<p>this is another long paragraph</p>
<pre lang="no-highlight"><code>```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
```python
s = "Python syntax highlighting"
print s
```
</code></pre>

View File

@ -0,0 +1,25 @@
<pre lang="no-highlight"><code>
foo
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
bar
</code></pre>
this is a long paragraph
this is another long paragraph
<pre lang="no-highlight"><code>```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
```python
s = "Python syntax highlighting"
print s
```
</code></pre>

View File

@ -0,0 +1,16 @@
<pre lang="no-highlight"><code>
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
```python
s = "Python syntax highlighting"
print s
```
```
No language indicated, so no syntax highlighting.
But let's throw in a &lt;b&gt;tag&lt;/b&gt;.
```
</code></pre>

View File

@ -0,0 +1,16 @@
<pre lang="no-highlight"><code>
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
```
```python
s = "Python syntax highlighting"
print s
```
```
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.
```
</code></pre>

View File

@ -0,0 +1,10 @@
<pre lang="no-highlight"><code>```python
var s;
```
</code></pre>
<p>this is a long paragraph</p>
<pre lang="no-highlight"><code>
```javascript
var s;
```
</code></pre>

View File

@ -0,0 +1,12 @@
<pre lang="no-highlight"><code>```python
var s;
```
</code></pre>
this is a long paragraph
<pre lang="no-highlight"><code>
```javascript
var s;
```
</code></pre>

View File

@ -0,0 +1,5 @@
<p>this should be <parsed></parsed></p>
<p>this should be <parsed></p>
<p>this should be <parsed/></p>
<p>this should&gt; appear</p>
<p>this text &lt;should appear</p>

View File

@ -0,0 +1,9 @@
this should be <parsed></parsed>
this should be <parsed>
this should be <parsed/>
this should> appear
this text <should appear

View File

@ -0,0 +1,9 @@
<p><img src="https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png" alt="sd-inline" /> <a href="https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png">sd-ref</a></p>
<p>foo</p>
<p><a href="https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png">sd-inline</a> <img src="https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" alt="sd-ref" /></p>
<p>foo</p>
<p><img src="https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" alt="sd-ref" /> <a href="https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png">sd-inline</a></p>
<p>foo</p>
<p><a href="https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png">sd-ref</a> <img src="https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png" alt="sd-inline" /></p>
<p>foo</p>
<p><a href="http://www.google.com/"><img src="https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" alt="sd-ref" /></a></p>

View File

@ -0,0 +1,19 @@
![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) [sd-ref][sd-logo]
foo
[sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) ![sd-ref][sd-logo]
foo
![sd-ref][sd-logo] [sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png)
foo
[sd-ref][sd-logo] ![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png)
foo
[![sd-ref][sd-logo]](http://www.google.com/)
[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png

View File

@ -0,0 +1,3 @@
<p><img src="https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png" alt="sd-inline" /> <img src="https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" alt="sd-ref" /></p>
<p>foo</p>
<p><img src="https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" alt="sd-ref" /> <img src="https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png" alt="sd-inline" /></p>

View File

@ -0,0 +1,7 @@
![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) ![sd-ref][sd-logo]
foo
![sd-ref][sd-logo] ![sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png)
[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png

View File

@ -0,0 +1,3 @@
<p><a href="https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png">sd-inline</a> <a href="https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png">sd-ref</a></p>
<p>foo</p>
<p><a href="https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png">sd-ref</a> <a href="https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png">sd-inline</a></p>

View File

@ -0,0 +1,7 @@
[sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png) [sd-ref][sd-logo]
foo
[sd-ref][sd-logo] [sd-inline](https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png)
[sd-logo]: https://www.google.pt/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png

View File

@ -0,0 +1,18 @@
<ul>
<li><p>list item 1</p>
<pre><code>&lt;parent&gt;
&lt;child&gt;child1&lt;/child&gt;
&lt;!-- This is a comment --&gt;
&lt;child&gt;child2&lt;/child&gt;
&lt;child&gt;some text &lt;!-- a comment --&gt;&lt;/child&gt;
&lt;/parent&gt;
</code></pre></li>
<li><p>list item 2</p></li>
</ul>
<pre><code>&lt;parent&gt;
&lt;child&gt;child1&lt;/child&gt;
&lt;!-- This is a comment --&gt;
&lt;child&gt;child2&lt;/child&gt;
&lt;child&gt;some text &lt;!-- a comment --&gt;&lt;/child&gt;
&lt;/parent&gt;
</code></pre>

View File

@ -0,0 +1,21 @@
* list item 1
```
<parent>
<child>child1</child>
<!-- This is a comment -->
<child>child2</child>
<child>some text <!-- a comment --></child>
</parent>
```
* list item 2
```
<parent>
<child>child1</child>
<!-- This is a comment -->
<child>child2</child>
<child>some text <!-- a comment --></child>
</parent>
```

View File

@ -0,0 +1,50 @@
<ul>
<li>one</li>
</ul>
<ol>
<li>two</li>
</ol>
<p>foo</p>
<ul>
<li>one</li>
</ul>
<ol>
<li>two</li>
</ol>
<p>foo</p>
<ul>
<li>one</li>
</ul>
<ol>
<li>two</li>
</ol>
<p>foo</p>
<ul>
<li>one<ol>
<li>two</li></ol></li>
</ul>
<p>foo</p>
<ul>
<li>one</li>
<li>two</li>
</ul>
<p>foo</p>
<ul>
<li>one</li>
<li>two</li>
</ul>
<p>foo</p>
<ul>
<li>one</li>
<li>two</li>
</ul>
<p>foo</p>
<ul>
<li>one</li>
<li>two</li>
</ul>
<p>foo</p>
<ul>
<li>one<ul>
<li>two</li></ul></li>
</ul>

View File

@ -0,0 +1,42 @@
* one
1. two
foo
* one
1. two
foo
* one
1. two
foo
* one
1. two
foo
* one
* two
foo
* one
* two
foo
* one
* two
foo
* one
* two
foo
* one
* two

View File

@ -0,0 +1,15 @@
<ul>
<li>one long paragraph of
text</li>
</ul>
<ol>
<li>two</li>
</ol>
<p>foo</p>
<ul>
<li>one long paragraph of
text</li>
</ul>
<ol>
<li>two</li>
</ol>

View File

@ -0,0 +1,9 @@
* one long paragraph of
text
1. two
foo
* one long paragraph of
text
1. two

View File

@ -0,0 +1,47 @@
<ul>
<li>one</li>
</ul>
<ol>
<li>two</li>
</ol>
<p>foo</p>
<ul>
<li>one</li>
</ul>
<ol>
<li>two</li>
</ol>
<p>foo</p>
<ul>
<li>one</li>
</ul>
<ol>
<li>two</li>
</ol>
<p>foo</p>
<ul>
<li>one</li>
</ul>
<ol>
<li>two</li>
</ol>
<p>foo</p>
<ul>
<li>uli one</li>
<li>uli two</li>
</ul>
<p>foo</p>
<ul>
<li>uli one</li>
<li>uli two</li>
</ul>
<p>foo</p>
<ul>
<li>uli one</li>
<li>uli two</li>
</ul>
<p>foo</p>
<ul>
<li>uli one</li>
<li>uli two</li>
</ul>

View File

@ -0,0 +1,37 @@
* one
1. two
foo
* one
1. two
foo
* one
1. two
foo
* one
1. two
foo
* uli one
* uli two
foo
* uli one
* uli two
foo
* uli one
* uli two
foo
* uli one
* uli two

View File

@ -0,0 +1,15 @@
<ul>
<li>- - a</li>
</ul>
<p>a</p>
<ul>
<li>- * - - + a</li>
</ul>
<p>a</p>
<ol>
<li>2. 3. 4. 5.</li>
</ol>
<p>a</p>
<ol>
<li>2. 3. 4. 5. a</li>
</ol>

View File

@ -0,0 +1,13 @@
- - - a
a
+ - * - - + a
a
1. 2. 3. 4. 5.
a
1. 2. 3. 4. 5. a

View File

@ -0,0 +1,8 @@
<ul>
<li><p>- - a</p></li>
<li><p>- * - - + a</p></li>
</ul>
<ol>
<li><p>2. 3. 4. 5.</p></li>
<li><p>2. 3. 4. 5. a</p></li>
</ol>

View File

@ -0,0 +1,7 @@
- - - a
+ - * - - + a
1. 2. 3. 4. 5.
1. 2. 3. 4. 5. a

View File

@ -0,0 +1,10 @@
<ul>
<li>-
a</li>
</ul>
<p>fooo</p>
<ul>
<li><p>- - aaaaa</p>
<p>bbbbb</p></li>
</ul>

View File

@ -0,0 +1,10 @@
- -
a
fooo
- - - aaaaa
bbbbb

View File

@ -0,0 +1,3 @@
<ul>
<li>- - - -- - - - - - - -- - - - - - - - - - - - - - - - - - - - abcd</li>
</ul>

View File

@ -0,0 +1 @@
- - - - -- - - - - - - -- - - - - - - - - - - - - - - - - - - - abcd

View File

@ -0,0 +1,2 @@
<hr />
<hr />

View File

@ -0,0 +1,3 @@
---
- - -

View File

@ -0,0 +1,21 @@
<p>foo *bar *baz</p>
<p>foo **bar **baz</p>
<p>foo ***bar ***baz</p>
<p>foo _bar _baz</p>
<p>foo __bar __baz</p>
<p>foo ___bar ___baz</p>
<p>foo *bar *baz *bazinga</p>
<p>foo **bar **baz **bazinga</p>
<p>foo ***bar ***baz ***bazinga</p>
<p>foo _bar _baz __bazinga</p>
<p>foo __bar __baz __bazinga</p>
<p>foo ___bar ___baz ___bazinga</p>
<p><em>f</em></p>
<p><strong>f</strong></p>
<p><em>f</em></p>
<p><strong>f</strong></p>
<p>foo **bar **baz <strong>bazinga bla</strong></p>
<p>foo <strong>bar **baz **bazinga bla</strong></p>
<p>foo <strong>**bar **baz **bazinga bla</strong></p>
<p>this is <strong><a href="//google.com/foo**bar">imbued link with strong</a></strong></p>
<p>this is <strong><a href="google.com/foo__bar">imbued link with strong</a></strong></p>

View File

@ -0,0 +1,41 @@
foo *bar *baz
foo **bar **baz
foo ***bar ***baz
foo _bar _baz
foo __bar __baz
foo ___bar ___baz
foo *bar *baz *bazinga
foo **bar **baz **bazinga
foo ***bar ***baz ***bazinga
foo _bar _baz __bazinga
foo __bar __baz __bazinga
foo ___bar ___baz ___bazinga
*f*
**f**
_f_
__f__
foo **bar **baz **bazinga bla**
foo __bar **baz **bazinga bla__
foo __**bar **baz **bazinga bla__
this is **<a href="//google.com/foo**bar">imbued link with strong</a>**
this is __<a href="google.com/foo__bar">imbued link with strong</a>__

View File

@ -0,0 +1 @@
<p>this |</p>

View File

@ -0,0 +1 @@
this \|

View File

@ -0,0 +1,4 @@
<p>This is an <img src="./image/cat(1).png" alt="image" /></p>
<p>This is another <img src="./image/cat(1).png" alt="image" /></p>
<p><a href="http://example.com"><img src="./image/cat(1).png" alt="image link" /></a></p>
<p><a href="http://example.com"><img src="./image/cat1).png" alt="image link" /></a></p>

View File

@ -0,0 +1,9 @@
This is an ![image][]
[image]: ./image/cat(1).png
This is another ![image](./image/cat(1).png)
[![image link](./image/cat(1).png)](http://example.com)
[![image link](<./image/cat1).png>)](http://example.com)

View File

@ -0,0 +1,3 @@
<p>This is a <a href="https://en.wikipedia.org/wiki/Textile_(markup_language)" title="Textile">link</a>.</p>
<p>This is another <a href="https://en.wikipedia.org/wiki/Textile_(markup_language)" title="Textile">link</a>.</p>
<p><a href="./image/cat1).png" title="title">link</a></p>

View File

@ -0,0 +1,7 @@
This is a [link][].
[link]: https://en.wikipedia.org/wiki/Textile_(markup_language) "Textile"
This is another [link](https://en.wikipedia.org/wiki/Textile_(markup_language) "Textile").
[link](<./image/cat1).png> "title")

View File

@ -0,0 +1 @@
<p><p>malformed<p></p>

View File

@ -0,0 +1 @@
<p>malformed<p>

View File

@ -0,0 +1,14 @@
<ul>
<li><p><strong>Customer</strong> Opens the Customer List. Refer to the document “Customer Management”.</p>
<ul>
<li>Customer List</li>
<li>New Customer</li>
<li>Customer Prices</li>
<li>Appointments</li></ul></li>
<li><p><strong>Designer</strong> - Opens the Designer List. Refer to the document “Designer Commissions”.</p>
<ul>
<li>Designer List</li>
<li>New Designer</li>
<li>Designer Payment List</li>
<li>New Designer Payment</li></ul></li>
</ul>

View File

@ -0,0 +1,11 @@
- **Customer** Opens the Customer List. Refer to the document “Customer Management”.
- Customer List
- New Customer
- Customer Prices
- Appointments
- **Designer** - Opens the Designer List. Refer to the document “Designer Commissions”.
- Designer List
- New Designer
- Designer Payment List
- New Designer Payment

View File

@ -0,0 +1,3 @@
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAIAAAA7ljmRAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXYwCC/2AAZYEoOAMs8Z+BgQEAXdcR7/Q1gssAAAAASUVORK5CYII=" alt="foo" /></p>
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAIAAAA7ljmRAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXYwCC/2AAZYEoOAMs8Z+BgQEAXdcR7/Q1gssAAAAASUVORK5CYII=" alt="bar" /></p>

View File

@ -0,0 +1,9 @@
![foo](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAIAAAA7ljmRAAAAAXNSR0IArs4c6QAAAARnQU1BAA
Cxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXYwCC/2AAZYEoOAMs8Z+BgQEAXdcR7/Q1gssAAAAASUVORK5CYII=)
![bar][]
[bar]:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAIAAAA7ljmRAAAAAXNSR0IArs4c6QAAAARnQU1BAA
Cxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXYwCC/2AAZYEoOAMs8Z+BgQEAXdcR7/Q1gssAAAAASUVORK5CYII=

View File

@ -0,0 +1,5 @@
<h2 id="headeridinh2">header id in h2</h2>
<h3 id="headeridinh3">header id in h3</h3>
<h4 id="headeridinh4">header id in h4</h4>
<h5 id="headeridinh5">header id in h5</h5>
<h6 id="headeridinh6">header id in h6</h6>

View File

@ -0,0 +1,9 @@
## header id in h2
### header id in h3
#### header id in h4
##### header id in h5
###### header id in h6

View File

@ -0,0 +1,15 @@
<pre><code class="javascript language-javascript">var test = test;
function foo() {
return 'bar';
}
</code></pre>
<pre><code class="javascript language-javascript">var test = test;
function foo() {
return 'bar';
}
</code></pre>
<pre><code class="javascript language-javascript">var test = test;
function foo() {
return 'bar';
}
</code></pre>

View File

@ -0,0 +1,20 @@
```javascript
var test = test;
function foo() {
return 'bar';
}
```
```javascript
var test = test;
function foo() {
return 'bar';
}
```
```javascript
var test = test;
function foo() {
return 'bar';
}
```

View File

@ -0,0 +1 @@
<p>[<img src="http://example.com/foo.png" alt="the-image" />]</p>

View File

@ -0,0 +1,3 @@
[![the-image]]
[the-image]: http://example.com/foo.png

View File

@ -0,0 +1,3 @@
<p>plain text link http://test.com/this_has/one.html with underscores</p>
<p>legit·word_with·1·underscore</p>
<p>a word<em>with</em>2underscores (gets em)</p>

View File

@ -0,0 +1,5 @@
plain text link http://test.com/this_has/one.html with underscores
legit·word_with·1·underscore
a word_with_2underscores (gets em)

View File

@ -0,0 +1,2 @@
<p>this is a underscore_test <img src="http://myserver.com/my_kitty.jpg" alt="my cat" /></p>
<p>another <img src="http://myserver.com/my_kitty.jpg" alt="my cat" /> underscore_test bla</p>

View File

@ -0,0 +1,3 @@
this is a underscore_test ![my cat](http://myserver.com/my_kitty.jpg)
another ![my cat](http://myserver.com/my_kitty.jpg) underscore_test bla

View File

@ -0,0 +1,5 @@
<p><a href="./images(1)/cat(1).png">link</a></p>
<p><a href="./images(1)/cat(1).png" title="title">link</a></p>
<p><img src="./images(1)/cat(1).png" alt="image" /></p>
<p><img src="./images(1)/cat(1).png" alt="image" title="title" /></p>
<p><img src="./images(1)/cat(1).png" alt="image" title="title" width="800" height="600" /></p>

View File

@ -0,0 +1,9 @@
[link](<./images(1)/cat(1).png>)
[link](<./images(1)/cat(1).png> "title")
![image](<./images(1)/cat(1).png>)
![image](<./images(1)/cat(1).png> "title")
![image](<./images(1)/cat(1).png> =800x600 "title")

14
node_modules/showdown/test/issues/crazy-urls.html generated vendored Normal file
View File

@ -0,0 +1,14 @@
<p><img src="images(1)/cat(1).png" alt="my cat" /></p>
<p><a href="images(1)/cat(1).png">my cat</a></p>
<p><img src="some.com/crazy url with spaces" alt="foo" /></p>
<p><img src="some.com/crazy url with spaces" alt="foo" title="title" /></p>
<p><a href="some.com/crazy url with spaces">foo</a></p>
<p><a href="some.com/crazy url with spaces" title="title">foo</a></p>
<p><img src="" alt="empty" /></p>
<p><a href="">empty</a></p>
<p><img src="" alt="empty" title="title" /></p>
<p><a href="" title="title">empty</a></p>
<p><img src="" alt="empty" /></p>
<p><a href="">empty</a></p>
<p><img src="" alt="empty" title="title" /></p>
<p><a href="" title="title">empty</a></p>

27
node_modules/showdown/test/issues/crazy-urls.md generated vendored Normal file
View File

@ -0,0 +1,27 @@
![my cat](<images(1)/cat(1).png>)
[my cat](<images(1)/cat(1).png>)
![foo](<some.com/crazy url with spaces>)
![foo](<some.com/crazy url with spaces> "title")
[foo](<some.com/crazy url with spaces>)
[foo](<some.com/crazy url with spaces> "title")
![empty](<>)
[empty](<>)
![empty](<> "title")
[empty](<> "title")
![empty](< >)
[empty](< >)
![empty](< > "title")
[empty](< > "title")

View File

@ -0,0 +1,12 @@
<div>
<div>
<div>
<div>
text
</div>
<div>
text
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,12 @@
<div>
<div>
<div>
<div>
text
</div>
<div>
text
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,4 @@
<p>hmm</p>
<pre>
this is `a\_test` and this\_too and finally_this_is
</pre>

4
node_modules/showdown/test/issues/handle-html-pre.md generated vendored Normal file
View File

@ -0,0 +1,4 @@
hmm
<pre>
this is `a\_test` and this\_too and finally_this_is
</pre>

View File

@ -0,0 +1,3 @@
<div><div>a</div><div>b</div></div>
<pre><code>&lt;div&gt;**foobar**&lt;/div&gt;
</code></pre>

View File

@ -0,0 +1,3 @@
<div><div>a</div><div>b</div></div>
<div>**foobar**</div>