aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/resources/markdown.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-10-21 12:38:38 +0200
committerArthurHoaro <arthur@hoa.ro>2016-10-22 11:13:48 +0200
commitc5941f316a49c94eff354b63e75b3add98ac4aea (patch)
tree3a98fc6dee7edd3a13f335f97fb9bc4faf95f064 /tests/plugins/resources/markdown.html
parente680cfea08051150827dae26ae5e59374880c46c (diff)
downloadShaarli-c5941f316a49c94eff354b63e75b3add98ac4aea.tar.gz
Shaarli-c5941f316a49c94eff354b63e75b3add98ac4aea.tar.zst
Shaarli-c5941f316a49c94eff354b63e75b3add98ac4aea.zip
Fix an issue with links not being reversed in code blocks
Fixes #672 + Markdown to HTML unit test
Diffstat (limited to 'tests/plugins/resources/markdown.html')
-rw-r--r--tests/plugins/resources/markdown.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/plugins/resources/markdown.html b/tests/plugins/resources/markdown.html
new file mode 100644
index 00000000..c0fbe7f4
--- /dev/null
+++ b/tests/plugins/resources/markdown.html
@@ -0,0 +1,24 @@
1<div class="markdown"><ul>
2<li>test:
3<ul>
4<li><a href="http://link.tld">zero</a></li>
5<li><a href="http://link.tld">two</a></li>
6<li><a href="http://link.tld">three</a></li>
7</ul></li>
8</ul>
9<ol>
10<li><a href="http://link.tld">zero</a>
11<ol>
12<li><a href="http://link.tld">two</a></li>
13<li><a href="http://link.tld">three</a></li>
14<li><a href="http://link.tld">four</a></li>
15<li>foo <a href="?addtag=foobar" title="Hashtag foobar">#foobar</a></li>
16</ol></li>
17</ol>
18<p><a href="?addtag=foobar" title="Hashtag foobar">#foobar</a> foo <code>lol #foo</code> <a href="?addtag=bar" title="Hashtag bar">#bar</a></p>
19<p>fsdfs <a href="http://link.tld">http://link.tld</a> <a href="?addtag=foobar" title="Hashtag foobar">#foobar</a> <code>http://link.tld</code></p>
20<pre><code>http://link.tld #foobar
21next #foo</code></pre>
22<p>Block:</p>
23<pre><code>lorem ipsum #foobar http://link.tld
24#foobar http://link.tld</code></pre></div> \ No newline at end of file