aboutsummaryrefslogtreecommitdiffstats
path: root/tests/safe_mode
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-09-03 13:30:04 -0400
committerWaylan Limberg <waylan@gmail.com>2008-09-03 13:46:52 -0400
commita1c636a05557b1faa207828c9e7102391bdde5c9 (patch)
treee223f4a97d811ce956073be7647695fbcc3e6f4c /tests/safe_mode
parenta4c80246770b87ca3d2cce5b5184901fd2495a7d (diff)
downloadmarkdown-a1c636a05557b1faa207828c9e7102391bdde5c9.tar.gz
markdown-a1c636a05557b1faa207828c9e7102391bdde5c9.tar.bz2
markdown-a1c636a05557b1faa207828c9e7102391bdde5c9.zip
Replaced indentation with linebreaks only. At least its more consistant - and it better matches other markdown implementations. Also updated tests.
Diffstat (limited to 'tests/safe_mode')
-rw-r--r--tests/safe_mode/script_tags.html5
-rw-r--r--tests/safe_mode/unsafe_urls.html18
2 files changed, 8 insertions, 15 deletions
diff --git a/tests/safe_mode/script_tags.html b/tests/safe_mode/script_tags.html
index 940329f..df63ffc 100644
--- a/tests/safe_mode/script_tags.html
+++ b/tests/safe_mode/script_tags.html
@@ -9,8 +9,7 @@ alert(&quot;Hello world!&quot;)
&lt;/script&gt;</p>
<p>Now with some weirdness</p>
-<p>
-<code>&lt;script &lt;!--
+<p><code>&lt;script &lt;!--
alert("Hello world!")
&lt;/script &lt;&gt;</code> `</p>
<p>Try another way.</p>
@@ -26,4 +25,4 @@ alert(&quot;Hello world!&quot;)
&lt;/script &lt;&gt;
-</p>
+</p> \ No newline at end of file
diff --git a/tests/safe_mode/unsafe_urls.html b/tests/safe_mode/unsafe_urls.html
index 6dabe64..e617f35 100644
--- a/tests/safe_mode/unsafe_urls.html
+++ b/tests/safe_mode/unsafe_urls.html
@@ -1,5 +1,5 @@
<p>These links should be unsafe and not allowed in safe_mode</p>
-<p>
+<p><a href="">link</a>
<a href="">link</a>
<a href="">link</a>
<a href="">link</a>
@@ -9,18 +9,12 @@
<a href="">link</a>
<a href="">link</a>
<a href="">link</a>
-<a href="">link</a>
-<a href="">link</a>
-</p>
-<p>
-<img alt="img" src="" />
+<a href="">link</a></p>
+<p><img alt="img" src="" />
<a href="">ref</a>
-<img alt="imgref" src="" />
-</p>
+<img alt="imgref" src="" /></p>
<p>These should work regardless:</p>
-<p>
-<a href="relative/url.html">relative</a>
+<p><a href="relative/url.html">relative</a>
<a href="mailto:foo@bar.com">email</a>
<a href="news:some.news.group.com">news scheme</a>
-<a href="http://example.com">http link</a>
-</p>
+<a href="http://example.com">http link</a></p> \ No newline at end of file