mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
improve tests
This commit is contained in:
parent
c0b7155572
commit
fd42f2e864
2
tests/data/compound_emphasis.html
Normal file
2
tests/data/compound_emphasis.html
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<p><em><code>code</code></em> <strong><code>code</code></strong></p>
|
||||||
|
<p><em><code>code</code><strong><code>code</code></strong><code>code</code></em></p>
|
4
tests/data/compound_emphasis.md
Normal file
4
tests/data/compound_emphasis.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
_`code`_ __`code`__
|
||||||
|
|
||||||
|
*`code`**`code`**`code`*
|
||||||
|
|
@ -3,3 +3,4 @@
|
|||||||
$message = 'fenced code block';
|
$message = 'fenced code block';
|
||||||
echo $message;</code></pre>
|
echo $message;</code></pre>
|
||||||
<pre><code>tilde</code></pre>
|
<pre><code>tilde</code></pre>
|
||||||
|
<pre><code class="language-php">echo 'language identifier';</code></pre>
|
@ -8,3 +8,7 @@ echo $message;
|
|||||||
~~~
|
~~~
|
||||||
tilde
|
tilde
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
```php
|
||||||
|
echo 'language identifier';
|
||||||
|
```
|
@ -1 +1 @@
|
|||||||
<p><img alt="Markdown Logo" src="/md.png"></p>
|
<p><img alt="Markdown Logo" src="/md.png" /></p>
|
@ -1,4 +1,4 @@
|
|||||||
<p><a href="http://example.com">link</a></p>
|
<p><a href="http://example.com">link</a> and <a href="/tests/">another link</a></p>
|
||||||
<p><a href="http://example.com"><code>link</code></a></p>
|
<p><a href="http://example.com"><code>link</code></a></p>
|
||||||
<p><a href="http://example.com" title="Example">link with title</a></p>
|
<p><a href="http://example.com"><img alt="MD Logo" src="http://parsedown.org/md.png" /></a></p>
|
||||||
<p><a href="http://example.com"><img alt="MD Logo" src="http://parsedown.org/md.png"></a></p>
|
<p><a href="http://example.com"><img alt="MD Logo" src="http://parsedown.org/md.png" /> and text</a></p>
|
@ -1,7 +1,7 @@
|
|||||||
[link](http://example.com)
|
[link](http://example.com) and [another link](/tests/)
|
||||||
|
|
||||||
[`link`](http://example.com)
|
[`link`](http://example.com)
|
||||||
|
|
||||||
[link with title](http://example.com "Example")
|
|
||||||
|
|
||||||
[](http://example.com)
|
[](http://example.com)
|
||||||
|
|
||||||
|
[ and text](http://example.com)
|
@ -1,3 +1,3 @@
|
|||||||
<p><del>strikethrough</del></p>
|
<p><del>strikethrough</del></p>
|
||||||
<p>in the <del>middle</del> of a sentence</p>
|
<p>here's <del>one</del> followed by <del>another one</del></p>
|
||||||
<p>in the middle of a w<del>or</del>d</p>
|
<p>~~ this ~~ is not one neither is ~this~</p>
|
@ -1,5 +1,5 @@
|
|||||||
~~strikethrough~~
|
~~strikethrough~~
|
||||||
|
|
||||||
in the ~~middle~~ of a sentence
|
here's ~~one~~ followed by ~~another one~~
|
||||||
|
|
||||||
in the middle of a w~~or~~d
|
~~ this ~~ is not one neither is ~this~
|
@ -1 +1,2 @@
|
|||||||
<p>Here's an autolink <a href="http://example.com">http://example.com</a>.</p>
|
<p>an autolink <a href="http://example.com">http://example.com</a></p>
|
||||||
|
<p>inside of brackets [<a href="http://example.com">http://example.com</a>], inside of braces {<a href="http://example.com">http://example.com</a>}, inside of parentheses (<a href="http://example.com">http://example.com</a>)</p>
|
@ -1 +1,3 @@
|
|||||||
Here's an autolink http://example.com.
|
an autolink http://example.com
|
||||||
|
|
||||||
|
inside of brackets [http://example.com], inside of braces {http://example.com}, inside of parentheses (http://example.com)
|
Loading…
x
Reference in New Issue
Block a user