Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
Some text about HTML, SGML and HTML4.
Let's talk about the U.S.A., (É.U. or É.-U. d'A. in French).
*[HTML4]: Hyper Text Markup Language version 4
*[HTML]: Hyper Text Markup Language
*[SGML]: Standard Generalized Markup Language
*[U.S.A.]: United States of America
*[É.U.] : États-Unis d'Amérique
*[É.-U. d'A.] : États-Unis d'Amérique
And here we have a CD, some CDs, and some other CD's.
*[CD]: Compact Disk
Let's transfert documents through TCP/IP, using TCP packets.
*[IP]: Internet Protocol
*[TCP]: Transmission Control Protocol
---
Bienvenue sur [CMS](http://www.bidulecms.com "Bidule CMS").
*[CMS]: Content Management System
---
ATCCE
*[ATCCE]: Abbreviation "Testing" Correct 'Character' < Escapes >

View File

@@ -0,0 +1,15 @@
<p>Some text about <abbr title="Hyper Text Markup Language">HTML</abbr>, <abbr title="Standard Generalized Markup Language">SGML</abbr> and <abbr title="Hyper Text Markup Language version 4">HTML4</abbr>.</p>
<p>Let's talk about the <abbr title="United States of America">U.S.A.</abbr>, (<abbr title="États-Unis d'Amérique">É.U.</abbr> or <abbr title="États-Unis d'Amérique">É.-U. d'A.</abbr> in French).</p>
<p>And here we have a <abbr title="Compact Disk">CD</abbr>, some CDs, and some other <abbr title="Compact Disk">CD</abbr>'s.</p>
<p>Let's transfert documents through <abbr title="Transmission Control Protocol">TCP</abbr>/<abbr title="Internet Protocol">IP</abbr>, using <abbr title="Transmission Control Protocol">TCP</abbr> packets.</p>
<hr />
<p>Bienvenue sur <a href="http://www.bidulecms.com" title="Bidule CMS"><abbr title="Content Management System">CMS</abbr></a>.</p>
<hr />
<p><abbr title="Abbreviation &quot;Testing&quot; Correct 'Character' &lt; Escapes &gt;">ATCCE</abbr></p>

View File

@@ -0,0 +1,69 @@
``` .html
<ul>
<li>Code block first in file</li>
<li>doesn't work under some circumstances</li>
</ul>
```
As above: checking for bad interractions with the HTML block parser:
``` html
<div>
```
Some *markdown* `formatting`.
``` html
</div>
```
Some *markdown*
```
<div>
<html>
```
```
function test();
```
<div markdown="1">
<html>
<title>
</div>
<div markdown="1">
```
<html>
<title>
```
</div>
Two code blocks with no blank line between them:
```
<div>
```
```
<div>
```
Testing *confusion* with code spans at the HTML block parser:
```
<div>```</div>
```
Testing mixing with title code blocks
```
<p>```
~~~
<p>```
```
~~~
<p>```
```
<p>```
~~~

View File

@@ -0,0 +1,61 @@
<pre><code class="html">&lt;ul>
&lt;li>Code block first in file&lt;/li>
&lt;li>doesn't work under some circumstances&lt;/li>
&lt;/ul>
</code></pre>
<p>As above: checking for bad interractions with the HTML block parser:</p>
<pre><code class="html">&lt;div>
</code></pre>
<p>Some <em>markdown</em><code>formatting</code>.</p>
<pre><code class="html">&lt;/div>
</code></pre>
<p>Some <em>markdown</em></p>
<pre><code>&lt;div>
&lt;html>
</code></pre>
<pre><code>function test();
</code></pre>
<div>
<pre><code>&lt;html&gt;
&lt;title&gt;
</code></pre>
</div>
<div>
<pre><code>&lt;html&gt;
&lt;title&gt;
</code></pre>
</div>
<p>Two code blocks with no blank line between them:</p>
<pre><code>&lt;div&gt;
</code></pre>
<pre><code>&lt;div&gt;
</code></pre>
<p>Testing <em>confusion</em> with code spans at the HTML block parser:</p>
<pre><code>&lt;div>```&lt;/div>
</code></pre>
<p>Testing mixing with title code blocks</p>
<pre><code>&lt;p>```
~~~
&lt;p>```
</code></pre>
<pre><code>&lt;p>```
```
&lt;p>```
</code></pre>

View File

@@ -0,0 +1,123 @@
```
<Fenced>
```
Code block starting and ending with empty lines:
```
<Fenced>
```
Indented code block containing fenced code block sample:
```
<Fenced>
```
Fenced code block with indented code block sample:
```
Some text
Indented code block sample code
```
Fenced code block with long markers:
``````````````````
Fenced
``````````````````
Fenced code block with fenced code block markers of different length in it:
````
In code block
```
Still in code block
`````
Still in code block
````
Fenced code block with Markdown header and horizontal rule:
```
#test
---
```
Fenced code block with link definitions, footnote definition and
abbreviation definitions:
```
[example]: http://example.com/
[^1]: Footnote def
*[HTML]: HyperText Markup Language
```
* In a list item with smalish indent:
`````
#!/bin/sh
#
# Preload driver binary
LD_PRELOAD=libusb-driver.so $0.bin $*
`````
With HTML content.
`````
<b>bold</b>
`````
Bug with block level elements in this case:
```
<div>
</div>
```
Indented code block of a fenced code block:
```
haha!
```
With class:
`````html
<b>bold</b>
`````
````` html
<b>bold</b>
`````
`````.html
<b>bold</b>
`````
````` .html
<b>bold</b>
`````
With extra attribute block:
`````{.html}
<b>bold</b>
`````
````` {.html #codeid}
<b>bold</b>
`````
````` .html{.bold}
<div>
`````
`````` .html {#codeid}
</div>
``````

View File

@@ -0,0 +1,109 @@
<pre><code>&lt;Fenced>
</code></pre>
<p>Code block starting and ending with empty lines:</p>
<pre><code><br /><br />&lt;Fenced>
</code></pre>
<p>Indented code block containing fenced code block sample:</p>
<pre><code>```
&lt;Fenced>
```
</code></pre>
<p>Fenced code block with indented code block sample:</p>
<pre><code>Some text
Indented code block sample code
</code></pre>
<p>Fenced code block with long markers:</p>
<pre><code>Fenced
</code></pre>
<p>Fenced code block with fenced code block markers of different length in it:</p>
<pre><code>In code block
```
Still in code block
`````
Still in code block
</code></pre>
<p>Fenced code block with Markdown header and horizontal rule:</p>
<pre><code>#test
---
</code></pre>
<p>Fenced code block with link definitions, footnote definition and
abbreviation definitions:</p>
<pre><code>[example]: http://example.com/
[^1]: Footnote def
*[HTML]: HyperText Markup Language
</code></pre>
<ul>
<li><p>In a list item with smalish indent:</p>
<pre><code>#!/bin/sh
#
# Preload driver binary
LD_PRELOAD=libusb-driver.so $0.bin $*
</code></pre>
</li>
</ul>
<p>With HTML content.</p>
<pre><code>&lt;b>bold&lt;/b>
</code></pre>
<p>Bug with block level elements in this case:</p>
<pre><code> &lt;div>
&lt;/div>
</code></pre>
<p>Indented code block of a fenced code block:</p>
<pre><code>```
haha!
```
</code></pre>
<p>With class:</p>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<p>With extra attribute block:</p>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html" id="codeid">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html bold">&lt;div>
</code></pre>
<pre><code class="html" id="codeid">&lt;/div>
</code></pre>

View File

@@ -0,0 +1,115 @@
A simple definition list:
Term 1
: Definition 1
Term 2
: Definition 2
With multiple terms:
Term 1
Term 2
: Definition 1
Term 3
Term 4
: Definition 2
With multiple definitions:
Term 1
: Definition 1
: Definition 2
Term 2
: Definition 3
: Definition 4
With multiple lines per definition:
Term 1
: Definition 1 line 1 ...
Definition 1 line 2
: Definition 2 line 1 ...
Definition 2 line 2
Term 2
: Definition 3 line 2 ...
Definition 3 line 2
: Definition 4 line 2 ...
Definition 4 line 2
With paragraphs:
Term 1
: Definition 1 (paragraph)
Term 2
: Definition 2 (paragraph)
With multiple paragraphs:
Term 1
: Definition 1 paragraph 1 line 1 ...
Definition 1 paragraph 1 line 2
Definition 1 paragraph 2 line 1 ...
Definition 1 paragraph 2 line 2
Term 2
: Definition 1 paragraph 1 line 1 ...
Definition 1 paragraph 1 line 2 (lazy)
Definition 1 paragraph 2 line 1 ...
Definition 1 paragraph 2 line 2 (lazy)
* * *
A mix:
Term 1
Term 2
: Definition 1 paragraph 1 line 1 ...
Definition 1 paragraph 1 line 2 (lazy)
Definition 1 paragraph 2 line 1 ...
Definition 1 paragraph 2 line 2
: Definition 2 paragraph 1 line 1 ...
Definition 2 paragraph 1 line 2 (lazy)
Term 3
: Definition 3 (no paragraph)
: Definition 4 (no paragraph)
: Definition 5 line 1 ...
Definition 5 line 2 (no paragraph)
: Definition 6 paragraph 1 line 1 ...
Definition 6 paragraph 1 line 2
: Definition 7 (no paragraph)
: Definition 8 paragraph 1 line 1 (forced paragraph) ...
Definition 8 paragraph 1 line 2
Definition 8 paragraph 2 line 1
Term 4
: Definition 9 paragraph 1 line 1 (forced paragraph) ...
Definition 9 paragraph 1 line 2
Definition 9 paragraph 2 line 1
: Definition 10 (no paragraph)
* * *
Special cases:
Term
: code block
as first element of a definition

View File

@@ -0,0 +1,155 @@
<p>A simple definition list:</p>
<dl>
<dt>Term 1</dt>
<dd>Definition 1</dd>
<dt>Term 2</dt>
<dd>Definition 2</dd>
</dl>
<p>With multiple terms:</p>
<dl>
<dt>Term 1</dt>
<dt>Term 2</dt>
<dd>Definition 1</dd>
<dt>Term 3</dt>
<dt>Term 4</dt>
<dd>Definition 2</dd>
</dl>
<p>With multiple definitions:</p>
<dl>
<dt>Term 1</dt>
<dd>Definition 1</dd>
<dd>Definition 2</dd>
<dt>Term 2</dt>
<dd>Definition 3</dd>
<dd>Definition 4</dd>
</dl>
<p>With multiple lines per definition:</p>
<dl>
<dt>Term 1</dt>
<dd>Definition 1 line 1 ...
Definition 1 line 2</dd>
<dd>Definition 2 line 1 ...
Definition 2 line 2</dd>
<dt>Term 2</dt>
<dd>Definition 3 line 2 ...
Definition 3 line 2</dd>
<dd>Definition 4 line 2 ...
Definition 4 line 2</dd>
</dl>
<p>With paragraphs:</p>
<dl>
<dt>Term 1</dt>
<dd>
<p>Definition 1 (paragraph)</p>
</dd>
<dt>Term 2</dt>
<dd>
<p>Definition 2 (paragraph)</p>
</dd>
</dl>
<p>With multiple paragraphs:</p>
<dl>
<dt>Term 1</dt>
<dd>
<p>Definition 1 paragraph 1 line 1 ...
Definition 1 paragraph 1 line 2</p>
<p>Definition 1 paragraph 2 line 1 ...
Definition 1 paragraph 2 line 2</p>
</dd>
<dt>Term 2</dt>
<dd>
<p>Definition 1 paragraph 1 line 1 ...
Definition 1 paragraph 1 line 2 (lazy)</p>
<p>Definition 1 paragraph 2 line 1 ...
Definition 1 paragraph 2 line 2 (lazy)</p>
</dd>
</dl>
<hr />
<p>A mix:</p>
<dl>
<dt>Term 1</dt>
<dt>Term 2</dt>
<dd>
<p>Definition 1 paragraph 1 line 1 ...
Definition 1 paragraph 1 line 2 (lazy)</p>
<p>Definition 1 paragraph 2 line 1 ...
Definition 1 paragraph 2 line 2</p>
</dd>
<dd>
<p>Definition 2 paragraph 1 line 1 ...
Definition 2 paragraph 1 line 2 (lazy)</p>
</dd>
<dt>Term 3</dt>
<dd>Definition 3 (no paragraph)</dd>
<dd>Definition 4 (no paragraph)</dd>
<dd>Definition 5 line 1 ...
Definition 5 line 2 (no paragraph)</dd>
<dd>
<p>Definition 6 paragraph 1 line 1 ...
Definition 6 paragraph 1 line 2</p>
</dd>
<dd>Definition 7 (no paragraph)</dd>
<dd>
<p>Definition 8 paragraph 1 line 1 (forced paragraph) ...
Definition 8 paragraph 1 line 2</p>
<p>Definition 8 paragraph 2 line 1</p>
</dd>
<dt>Term 4</dt>
<dd>
<p>Definition 9 paragraph 1 line 1 (forced paragraph) ...
Definition 9 paragraph 1 line 2</p>
<p>Definition 9 paragraph 2 line 1</p>
</dd>
<dd>Definition 10 (no paragraph)</dd>
</dl>
<hr />
<p>Special cases:</p>
<dl>
<dt>Term</dt>
<dd>
<pre><code>code block
as first element of a definition
</code></pre>
</dd>
</dl>

View File

@@ -0,0 +1,100 @@
Combined emphasis:
1. ***test test***
2. ___test test___
3. *test **test***
4. **test *test***
5. ***test* test**
6. ***test** test*
7. ***test* test**
8. **test *test***
9. *test **test***
10. _test __test___
11. __test _test___
12. ___test_ test__
13. ___test__ test_
14. ___test_ test__
15. __test _test___
16. _test __test___
17. *test __test__*
18. **test _test_**
19. **_test_ test**
20. *__test__ test*
21. **_test_ test**
22. **test _test_**
23. *test __test__*
24. _test **test**_
25. __test *test*__
26. __*test* test__
27. _**test** test_
28. __*test* test__
29. __test *test*__
30. _test **test**_
Incorrect nesting:
1. *test **test* test**
2. _test __test_ test__
3. **test *test** test*
4. __test _test__ test_
5. *test *test* test*
6. _test _test_ test_
7. **test **test** test**
8. __test __test__ test__
9. _**some text_**
10. *__some text*__
11. **_some text**_
12. *__some text*__
No emphasis:
1. test* test *test
2. test** test **test
3. test_ test _test
4. test__ test __test
Middle-word emphasis (asterisks):
1. *a*b
2. a*b*
3. a*b*c
4. **a**b
5. a**b**
6. a**b**c
Middle-word emphasis (underscore):
1. _a_b
2. a_b_
3. a_b_c
4. __a__b
5. a__b__
6. a__b__c
my_precious_file.txt
## Tricky Cases
E**. **Test** TestTestTest
E**. **Test** Test Test Test
## Overlong emphasis
Name: ____________
Organization: ____
Region/Country: __
_____Cut here_____
____Cut here____
# Regression
_**Note**_: This _is emphasis_.

View File

@@ -0,0 +1,106 @@
<p>Combined emphasis:</p>
<ol>
<li><strong><em>test test</em></strong></li>
<li><strong><em>test test</em></strong></li>
<li><em>test <strong>test</strong></em></li>
<li><strong>test <em>test</em></strong></li>
<li><strong><em>test</em> test</strong></li>
<li><em><strong>test</strong> test</em></li>
<li><strong><em>test</em> test</strong></li>
<li><strong>test <em>test</em></strong></li>
<li><em>test <strong>test</strong></em></li>
<li><em>test <strong>test</strong></em></li>
<li><strong>test <em>test</em></strong></li>
<li><strong><em>test</em> test</strong></li>
<li><em><strong>test</strong> test</em></li>
<li><strong><em>test</em> test</strong></li>
<li><strong>test <em>test</em></strong></li>
<li><em>test <strong>test</strong></em></li>
<li><em>test <strong>test</strong></em></li>
<li><strong>test <em>test</em></strong></li>
<li><strong><em>test</em> test</strong></li>
<li><em><strong>test</strong> test</em></li>
<li><strong><em>test</em> test</strong></li>
<li><strong>test <em>test</em></strong></li>
<li><em>test <strong>test</strong></em></li>
<li><em>test <strong>test</strong></em></li>
<li><strong>test <em>test</em></strong></li>
<li><strong><em>test</em> test</strong></li>
<li><em><strong>test</strong> test</em></li>
<li><strong><em>test</em> test</strong></li>
<li><strong>test <em>test</em></strong></li>
<li><em>test <strong>test</strong></em></li>
</ol>
<p>Incorrect nesting:</p>
<ol>
<li>*test <strong>test* test</strong></li>
<li>_test <strong>test_ test</strong></li>
<li><strong>test *test</strong> test*</li>
<li><strong>test _test</strong> test_</li>
<li><em>test *test</em> test*</li>
<li><em>test _test</em> test_</li>
<li><strong>test **test</strong> test**</li>
<li><strong>test __test</strong> test__</li>
<li>_<strong>some text_</strong></li>
<li>*<strong>some text*</strong></li>
<li><strong>_some text</strong>_</li>
<li>*<strong>some text*</strong></li>
</ol>
<p>No emphasis:</p>
<ol>
<li>test* test *test</li>
<li>test** test **test</li>
<li>test_ test _test</li>
<li>test__ test __test</li>
</ol>
<p>Middle-word emphasis (asterisks):</p>
<ol>
<li><em>a</em>b</li>
<li>a<em>b</em></li>
<li>a<em>b</em>c</li>
<li><strong>a</strong>b</li>
<li>a<strong>b</strong></li>
<li>a<strong>b</strong>c</li>
</ol>
<p>Middle-word emphasis (underscore):</p>
<ol>
<li>_a_b</li>
<li>a_b_</li>
<li>a_b_c</li>
<li>__a__b</li>
<li>a__b__</li>
<li>a__b__c</li>
</ol>
<p>my_precious_file.txt</p>
<h2>Tricky Cases</h2>
<p>E**. <strong>Test</strong> TestTestTest</p>
<p>E**. <strong>Test</strong> Test Test Test</p>
<h2>Overlong emphasis</h2>
<p>Name: ____________<br />
Organization: ____<br />
Region/Country: __</p>
<p>_____Cut here_____</p>
<p>____Cut here____</p>
<h1>Regression</h1>
<p><em><strong>Note</strong></em>: This <em>is emphasis</em>.</p>

View File

@@ -0,0 +1,70 @@
This is the first paragraph.[^first]
[^first]: This is the first note.
* List item one.[^second]
* List item two.[^third]
[^third]: This is the third note, defined out of order.
[^second]: This is the second note.
[^fourth]: This is the fourth note.
# Header[^fourth]
Some paragraph with a footnote[^1], and another[^2].
[^1]: Content for fifth footnote.
[^2]: Content for sixth footnote spaning on
three lines, with some span-level markup like
_emphasis_, a [link][].
[link]: http://michelf.ca/
Another paragraph with a named footnote[^fn-name].
[^fn-name]:
Footnote beginning on the line next to the marker.
This paragraph should not have a footnote marker since
the footnote is undefined.[^3]
This paragraph has a second footnote marker to footnote number one.[^1]
This paragraph links to a footnote with plenty of
block-level content.[^block]
[^block]:
Paragraph.
* List item
> Blockquote
Code block
This paragraph host the footnote reference within a
footnote test[^reference].
[^reference]:
This footnote has a footnote of its own.[^nested]
[^nested]:
This footnote should appear even though it is referenced
from another footnote. But [^reference] should be litteral
since the footnote with that name has already been used.
- - -
Testing unusual footnote name[^1$^!"'].
[^1$^!"']: Haha!
- - -
Footnotes mixed with images[^image-mixed]
![1800 Travel][img6]
![1830 Travel][img7]
[img6]: images/MGR-1800-travel.jpeg "Travel Speeds in 1800"
[^image-mixed]: Footnote Content
[img7]: images/MGR-1830-travel.jpeg "Travel Speeds in 1830"

View File

@@ -0,0 +1,103 @@
<p>This is the first paragraph.<sup id="fnref:first"><a href="#fn:first" class="footnote-ref" role="doc-noteref">1</a></sup></p>
<ul>
<li>List item one.<sup id="fnref:second"><a href="#fn:second" class="footnote-ref" role="doc-noteref">2</a></sup></li>
<li>List item two.<sup id="fnref:third"><a href="#fn:third" class="footnote-ref" role="doc-noteref">3</a></sup></li>
</ul>
<h1>Header<sup id="fnref:fourth"><a href="#fn:fourth" class="footnote-ref" role="doc-noteref">4</a></sup></h1>
<p>Some paragraph with a footnote<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">5</a></sup>, and another<sup id="fnref:2"><a href="#fn:2" class="footnote-ref" role="doc-noteref">6</a></sup>.</p>
<p>Another paragraph with a named footnote<sup id="fnref:fn-name"><a href="#fn:fn-name" class="footnote-ref" role="doc-noteref">7</a></sup>.</p>
<p>This paragraph should not have a footnote marker since
the footnote is undefined.[^3]</p>
<p>This paragraph has a second footnote marker to footnote number one.<sup id="fnref2:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">5</a></sup></p>
<p>This paragraph links to a footnote with plenty of
block-level content.<sup id="fnref:block"><a href="#fn:block" class="footnote-ref" role="doc-noteref">8</a></sup></p>
<p>This paragraph host the footnote reference within a
footnote test<sup id="fnref:reference"><a href="#fn:reference" class="footnote-ref" role="doc-noteref">9</a></sup>.</p>
<hr />
<p>Testing unusual footnote name<sup id="fnref:1$^!&quot;'"><a href="#fn:1$^!&quot;'" class="footnote-ref" role="doc-noteref">10</a></sup>.</p>
<hr />
<p>Footnotes mixed with images<sup id="fnref:image-mixed"><a class="footnote-ref" role="doc-noteref" href="#fn:image-mixed">11</a></sup><img alt="1800 Travel" src="images/MGR-1800-travel.jpeg" title="Travel Speeds in 1800"/><img alt="1830 Travel" src="images/MGR-1830-travel.jpeg" title="Travel Speeds in 1830"/></p>
<div class="footnotes" role="doc-endnotes">
<hr />
<ol>
<li id="fn:first" role="doc-endnote">
<p>This is the first note.&#160;<a href="#fnref:first" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:second" role="doc-endnote">
<p>This is the second note.&#160;<a href="#fnref:second" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:third" role="doc-endnote">
<p>This is the third note, defined out of order.&#160;<a href="#fnref:third" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:fourth" role="doc-endnote">
<p>This is the fourth note.&#160;<a href="#fnref:fourth" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:1" role="doc-endnote">
<p>Content for fifth footnote.&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a> <a href="#fnref2:1" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:2" role="doc-endnote">
<p>Content for sixth footnote spaning on
three lines, with some span-level markup like
<em>emphasis</em>, a <a href="http://michelf.ca/">link</a>.&#160;<a href="#fnref:2" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:fn-name" role="doc-endnote">
<p>Footnote beginning on the line next to the marker.&#160;<a href="#fnref:fn-name" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:block" role="doc-endnote">
<p>Paragraph.</p>
<ul>
<li>List item</li>
</ul>
<blockquote>
<p>Blockquote</p>
</blockquote>
<pre><code>Code block
</code></pre>
<p><a href="#fnref:block" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:reference" role="doc-endnote">
<p>This footnote has a footnote of its own.<sup id="fnref:nested"><a href="#fn:nested" class="footnote-ref" role="doc-noteref">12</a></sup>&#160;<a href="#fnref:reference" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:1$^!&quot;'" role="doc-endnote">
<p>Haha!&#160;<a href="#fnref:1$^!&quot;'" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:image-mixed" role="doc-endnote">
<p>Footnote Content&#xA0;<a class="footnote-backref" role="doc-backlink" href="#fnref:image-mixed">&#8617;&#xFE0E;</a></p>
</li>
<li id="fn:nested" role="doc-endnote">
<p>This footnote should appear even though it is referenced
from another footnote. But [^reference] should be litteral
since the footnote with that name has already been used.&#160;<a href="#fnref:nested" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>
</ol>
</div>

View File

@@ -0,0 +1,41 @@
Header {#id1}
======
Header { #id2}
------
### Header {#id3 }
#### Header ## { #id4 }
- - -
Header {.cl}
======
Header { .cl}
------
### Header {.cl }
#### Header ## { .cl }
- - -
Header {.cl.class}
======
Header { .cl .class}
------
### Header {.cl .class }
#### Header ## { .cl.class }
- - -
Header {#id5.cl.class}
======
Header { #id6 .cl .class}
------
### Header {.cl.class#id7 }
#### Header ## { .cl.class#id8 }

View File

@@ -0,0 +1,37 @@
<h1 id="id1">Header</h1>
<h2 id="id2">Header</h2>
<h3 id="id3">Header</h3>
<h4 id="id4">Header</h4>
<hr />
<h1 class="cl">Header</h1>
<h2 class="cl">Header</h2>
<h3 class="cl">Header</h3>
<h4 class="cl">Header</h4>
<hr />
<h1 class="cl class">Header</h1>
<h2 class="cl class">Header</h2>
<h3 class="cl class">Header</h3>
<h4 class="cl class">Header</h4>
<hr />
<h1 class="cl class" id="id5">Header</h1>
<h2 class="cl class" id="id6">Header</h2>
<h3 class="cl class" id="id7">Header</h3>
<h4 class="cl class" id="id8">Header</h4>

View File

@@ -0,0 +1,110 @@
# Markdown inside code blocks
<div markdown="1">
foo
</div>
<div markdown='1'>
foo
</div>
<div markdown=1>
foo
</div>
<table>
<tr><td markdown="1">test _emphasis_ (span)</td></tr>
</table>
<table>
<tr><td markdown="span">test _emphasis_ (span)</td></tr>
</table>
<table>
<tr><td markdown="block">test _emphasis_ (block)</td></tr>
</table>
## More complicated
<table>
<tr><td markdown="1">
* this is _not_ a list item</td></tr>
<tr><td markdown="span">
* this is _not_ a list item</td></tr>
<tr><td markdown="block">
* this _is_ a list item
</td></tr>
</table>
## With indent
<div>
<div markdown="1">
This text is no code block: if it was, the
closing `<div>` would be too and the HTML block
would be invalid.
Markdown content in HTML blocks is assumed to be
indented the same as the block opening tag.
**This should be the third paragraph after the header.**
</div>
</div>
## Code block with rogue `</div>`s in Markdown code span and block
<div>
<div markdown="1">
This is a code block however:
</div>
Funny isn't it? Here is a code span: `</div>`.
</div>
</div>
<div>
<div markdown="1">
* List item, not a code block
Some text
This is a code block.
</div>
</div>
## No code block in markdown span mode
<p markdown="1">
This is not a code block since Markdown parse paragraph
content as span. Code spans like `</p>` are allowed though.
</p>
<p markdown="1">_Hello_ _world_</p>
<p markdown="1" class="poem">
line 1
line 2
line 3
</p>
## Preserving attributes and tags on more than one line:
<p class="test" markdown="1"
id="12">
Some _span_ content.
</p>
## Header confusion bug
<table class="canvas">
<tr>
<td id="main" markdown="1">Hello World!
============
Hello World!</td>
</tr>
</table>

View File

@@ -0,0 +1,131 @@
<h1>Markdown inside code blocks</h1>
<div>
<p>foo</p>
</div>
<div>
<p>foo</p>
</div>
<div>
<p>foo</p>
</div>
<table>
<tr><td>test <em>emphasis</em> (span)</td></tr>
</table>
<table>
<tr><td>test <em>emphasis</em> (span)</td></tr>
</table>
<table>
<tr><td>
<p>test <em>emphasis</em> (block)</p>
</td></tr>
</table>
<h2>More complicated</h2>
<table>
<tr><td>
* this is <em>not</em> a list item</td></tr>
<tr><td>
* this is <em>not</em> a list item</td></tr>
<tr><td>
<ul>
<li>this <em>is</em> a list item</li>
</ul>
</td></tr>
</table>
<h2>With indent</h2>
<div>
<div>
<p>This text is no code block: if it was, the
closing <code>&lt;div&gt;</code> would be too and the HTML block
would be invalid.</p>
<p>Markdown content in HTML blocks is assumed to be
indented the same as the block opening tag.</p>
<p><strong>This should be the third paragraph after the header.</strong></p>
</div>
</div>
<h2>Code block with rogue <code>&lt;/div&gt;</code>s in Markdown code span and block</h2>
<div>
<div>
<p>This is a code block however:</p>
<pre><code>&lt;/div&gt;
</code></pre>
<p>Funny isn't it? Here is a code span: <code>&lt;/div&gt;</code>.</p>
</div>
</div>
<div>
<div>
<ul>
<li>List item, not a code block</li>
</ul>
<p>Some text</p>
<pre><code>This is a code block.
</code></pre>
</div>
</div>
<h2>No code block in markdown span mode</h2>
<p>
This is not a code block since Markdown parse paragraph
content as span. Code spans like <code>&lt;/p&gt;</code> are allowed though.
</p>
<p><em>Hello</em> <em>world</em></p>
<p class="poem">
line 1<br />
line 2<br />
line 3
</p>
<h2>Preserving attributes and tags on more than one line:</h2>
<p class="test"
id="12">
Some <em>span</em> content.
</p>
<h2>Header confusion bug</h2>
<table class="canvas">
<tr>
<td id="main">Hello World!
============
Hello World!</td>
</tr>
</table>

View File

@@ -0,0 +1,10 @@
This is an [inline link](/url "title"){.class #inline-link}.
This is a [reference link][refid].
This is an ![inline image](/img "title"){.class #inline-img}.
This is a ![reference image][refid].
[refid]: /path/to/something (Title) { .class #ref data-key=val }

View File

@@ -0,0 +1,8 @@
<p>This is an <a href="/url" title="title" class="class" id="inline-link">inline link</a>.</p>
<p>This is a <a href="/path/to/something" title="Title" class="class" id="ref" data-key="val">reference link</a>.</p>
<p>This is an <img alt="inline image" src="/img" title="title" class="class" id="inline-img" />.</p>
<p>This is a <img alt="reference image" src="/path/to/something" title="Title" class="class" id="ref" data-key="val" />.</p>

View File

@@ -0,0 +1,113 @@
# Simple tables
Header 1 | Header 2
--------- | ---------
Cell 1 | Cell 2
Cell 3 | Cell 4
With leading pipes:
| Header 1 | Header 2
| --------- | ---------
| Cell 1 | Cell 2
| Cell 3 | Cell 4
With tailing pipes:
Header 1 | Header 2 |
--------- | --------- |
Cell 1 | Cell 2 |
Cell 3 | Cell 4 |
With leading and tailing pipes:
| Header 1 | Header 2 |
| --------- | --------- |
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4 |
* * *
# One-column one-row table
With leading pipes:
| Header
| -------
| Cell
With tailing pipes:
Header |
------- |
Cell |
With leading and tailing pipes:
| Header |
| ------- |
| Cell |
* * *
Table alignement:
| Default | Right | Center | Left |
| --------- |:--------- |:---------:| ---------:|
| Long Cell | Long Cell | Long Cell | Long Cell |
| Cell | Cell | Cell | Cell |
Table alignement (alternate spacing):
| Default | Right | Center | Left |
| --------- | :-------- | :-------: | --------: |
| Long Cell | Long Cell | Long Cell | Long Cell |
| Cell | Cell | Cell | Cell |
* * *
# Empty cells
| Header 1 | Header 2 |
| --------- | --------- |
| A | B |
| C | |
Header 1 | Header 2
--------- | ---------
A | B
| D
* * *
# Missing tailing pipe
Header 1 | Header 2
--------- | --------- |
Cell | Cell |
Cell | Cell |
Header 1 | Header 2 |
--------- | ---------
Cell | Cell |
Cell | Cell |
Header 1 | Header 2 |
--------- | --------- |
Cell | Cell
Cell | Cell |
Header 1 | Header 2 |
--------- | --------- |
Cell | Cell |
Cell | Cell
* * *
# Too many pipes in rows
| Header 1 | Header 2 |
| ---------
| Cell | Cell | Extra cell? |
| Cell | Cell | Extra cell? |

View File

@@ -0,0 +1,333 @@
<h1>Simple tables</h1>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</tbody>
</table>
<p>With leading pipes:</p>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</tbody>
</table>
<p>With tailing pipes:</p>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</tbody>
</table>
<p>With leading and tailing pipes:</p>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</tbody>
</table>
<hr />
<h1>One-column one-row table</h1>
<p>With leading pipes:</p>
<table>
<thead>
<tr>
<th>Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
</tr>
</tbody>
</table>
<p>With tailing pipes:</p>
<table>
<thead>
<tr>
<th>Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
</tr>
</tbody>
</table>
<p>With leading and tailing pipes:</p>
<table>
<thead>
<tr>
<th>Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
</tr>
</tbody>
</table>
<hr />
<p>Table alignement:</p>
<table>
<thead>
<tr>
<th>Default</th>
<th align="left">Right</th>
<th align="center">Center</th>
<th align="right">Left</th>
</tr>
</thead>
<tbody>
<tr>
<td>Long Cell</td>
<td align="left">Long Cell</td>
<td align="center">Long Cell</td>
<td align="right">Long Cell</td>
</tr>
<tr>
<td>Cell</td>
<td align="left">Cell</td>
<td align="center">Cell</td>
<td align="right">Cell</td>
</tr>
</tbody>
</table>
<p>Table alignement (alternate spacing):</p>
<table>
<thead>
<tr>
<th>Default</th>
<th align="left">Right</th>
<th align="center">Center</th>
<th align="right">Left</th>
</tr>
</thead>
<tbody>
<tr>
<td>Long Cell</td>
<td align="left">Long Cell</td>
<td align="center">Long Cell</td>
<td align="right">Long Cell</td>
</tr>
<tr>
<td>Cell</td>
<td align="left">Cell</td>
<td align="center">Cell</td>
<td align="right">Cell</td>
</tr>
</tbody>
</table>
<hr />
<h1>Empty cells</h1>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>B</td>
</tr>
<tr>
<td>C</td>
<td></td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>B</td>
</tr>
<tr>
<td></td>
<td>D</td>
</tr>
</tbody>
</table>
<hr />
<h1>Missing tailing pipe</h1>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<td>Cell</td>
<td>Cell</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<td>Cell</td>
<td>Cell</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<td>Cell</td>
<td>Cell</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<td>Cell</td>
<td>Cell</td>
</tr>
</tbody>
</table>
<hr />
<h1>Too many pipes in rows</h1>
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Cell</td>
<td>Cell | Extra cell?</td>
</tr>
<tr>
<td>Cell</td>
<td>Cell | Extra cell?</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,69 @@
~~~ .html
<ul>
<li>Code block first in file</li>
<li>doesn't work under some circumstances</li>
</ul>
~~~
As above: checking for bad interractions with the HTML block parser:
~~~ html
<div>
~~~
Some *markdown* `formatting`.
~~~ html
</div>
~~~
Some *markdown*
~~~
<div>
<html>
~~~
~~~
function test();
~~~
<div markdown="1">
<html>
<title>
</div>
<div markdown="1">
~~~
<html>
<title>
~~~
</div>
Two code blocks with no blank line between them:
~~~
<div>
~~~
~~~
<div>
~~~
Testing *confusion* with markers in the middle:
~~~
<div>~~~</div>
~~~
Testing mixing with title code blocks
~~~
<p>```
```
<p>```
~~~
```
<p>```
~~~
<p>```
```

View File

@@ -0,0 +1,61 @@
<pre><code class="html">&lt;ul>
&lt;li>Code block first in file&lt;/li>
&lt;li>doesn't work under some circumstances&lt;/li>
&lt;/ul>
</code></pre>
<p>As above: checking for bad interractions with the HTML block parser:</p>
<pre><code class="html">&lt;div>
</code></pre>
<p>Some <em>markdown</em><code>formatting</code>.</p>
<pre><code class="html">&lt;/div>
</code></pre>
<p>Some <em>markdown</em></p>
<pre><code>&lt;div>
&lt;html>
</code></pre>
<pre><code>function test();
</code></pre>
<div>
<pre><code>&lt;html&gt;
&lt;title&gt;
</code></pre>
</div>
<div>
<pre><code>&lt;html&gt;
&lt;title&gt;
</code></pre>
</div>
<p>Two code blocks with no blank line between them:</p>
<pre><code>&lt;div&gt;
</code></pre>
<pre><code>&lt;div&gt;
</code></pre>
<p>Testing <em>confusion</em> with markers in the middle:</p>
<pre><code>&lt;div>~~~&lt;/div>
</code></pre>
<p>Testing mixing with title code blocks</p>
<pre><code>&lt;p>```
```
&lt;p>```
</code></pre>
<pre><code>&lt;p>```
~~~
&lt;p>```
</code></pre>

View File

@@ -0,0 +1,123 @@
~~~
<Fenced>
~~~
Code block starting and ending with empty lines:
~~~
<Fenced>
~~~
Indented code block containing fenced code block sample:
~~~
<Fenced>
~~~
Fenced code block with indented code block sample:
~~~
Some text
Indented code block sample code
~~~
Fenced code block with long markers:
~~~~~~~~~~~~~~~~~~
Fenced
~~~~~~~~~~~~~~~~~~
Fenced code block with fenced code block markers of different length in it:
~~~~
In code block
~~~
Still in code block
~~~~~
Still in code block
~~~~
Fenced code block with Markdown header and horizontal rule:
~~~
#test
---
~~~
Fenced code block with link definitions, footnote definition and
abbreviation definitions:
~~~
[example]: http://example.com/
[^1]: Footnote def
*[HTML]: HyperText Markup Language
~~~
* In a list item with smalish indent:
~~~~~
#!/bin/sh
#
# Preload driver binary
LD_PRELOAD=libusb-driver.so $0.bin $*
~~~~~
With HTML content.
~~~~~
<b>bold</b>
~~~~~
Bug with block level elements in this case:
~~~
<div>
</div>
~~~
Indented code block of a fenced code block:
~~~
haha!
~~~
With class:
~~~~~html
<b>bold</b>
~~~~~
~~~~~ html
<b>bold</b>
~~~~~
~~~~~.html
<b>bold</b>
~~~~~
~~~~~ .html
<b>bold</b>
~~~~~
With extra attribute block:
~~~~~{.html}
<b>bold</b>
~~~~~
~~~~~ {.html #codeid}
<b>bold</b>
~~~~~
~~~~~ .html{.bold}
<div>
~~~~~
~~~~~ .html {#codeid}
</div>
~~~~~

View File

@@ -0,0 +1,109 @@
<pre><code>&lt;Fenced>
</code></pre>
<p>Code block starting and ending with empty lines:</p>
<pre><code><br /><br />&lt;Fenced>
</code></pre>
<p>Indented code block containing fenced code block sample:</p>
<pre><code>~~~
&lt;Fenced>
~~~
</code></pre>
<p>Fenced code block with indented code block sample:</p>
<pre><code>Some text
Indented code block sample code
</code></pre>
<p>Fenced code block with long markers:</p>
<pre><code>Fenced
</code></pre>
<p>Fenced code block with fenced code block markers of different length in it:</p>
<pre><code>In code block
~~~
Still in code block
~~~~~
Still in code block
</code></pre>
<p>Fenced code block with Markdown header and horizontal rule:</p>
<pre><code>#test
---
</code></pre>
<p>Fenced code block with link definitions, footnote definition and
abbreviation definitions:</p>
<pre><code>[example]: http://example.com/
[^1]: Footnote def
*[HTML]: HyperText Markup Language
</code></pre>
<ul>
<li><p>In a list item with smalish indent:</p>
<pre><code>#!/bin/sh
#
# Preload driver binary
LD_PRELOAD=libusb-driver.so $0.bin $*
</code></pre>
</li>
</ul>
<p>With HTML content.</p>
<pre><code>&lt;b>bold&lt;/b>
</code></pre>
<p>Bug with block level elements in this case:</p>
<pre><code> &lt;div>
&lt;/div>
</code></pre>
<p>Indented code block of a fenced code block:</p>
<pre><code>~~~
haha!
~~~
</code></pre>
<p>With class:</p>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<p>With extra attribute block:</p>
<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html" id="codeid">&lt;b>bold&lt;/b>
</code></pre>
<pre><code class="html bold">&lt;div>
</code></pre>
<pre><code class="html" id="codeid">&lt;/div>
</code></pre>