aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2013-09-25 14:43:18 +0400
committerDmitry Shachnev <mitya57@gmail.com>2013-09-25 14:43:18 +0400
commit7d10f204203397c3ab34c20014fef55e3d8ba16d (patch)
tree048a2f7b0a4bdde45ee99b0e3796111126c665cb /tests/extensions
parented399ac3da4dddfd676bedada42a3aa4d4d80e1e (diff)
downloadmarkdown-7d10f204203397c3ab34c20014fef55e3d8ba16d.tar.gz
markdown-7d10f204203397c3ab34c20014fef55e3d8ba16d.tar.bz2
markdown-7d10f204203397c3ab34c20014fef55e3d8ba16d.zip
Add tests for the previous two commits
Diffstat (limited to 'tests/extensions')
-rw-r--r--tests/extensions/test.cfg4
-rw-r--r--tests/extensions/toc_nested.html8
-rw-r--r--tests/extensions/toc_nested2.html8
3 files changed, 10 insertions, 10 deletions
diff --git a/tests/extensions/test.cfg b/tests/extensions/test.cfg
index 1a13b1c..494d79b 100644
--- a/tests/extensions/test.cfg
+++ b/tests/extensions/test.cfg
@@ -16,10 +16,10 @@ extensions=toc
extensions=toc
[toc_nested]
-extensions=toc
+extensions=toc(permalink=1)
[toc_nested2]
-extensions=toc
+extensions=toc(permalink=[link])
[wikilinks]
extensions=wikilinks
diff --git a/tests/extensions/toc_nested.html b/tests/extensions/toc_nested.html
index 3703e51..b913640 100644
--- a/tests/extensions/toc_nested.html
+++ b/tests/extensions/toc_nested.html
@@ -1,7 +1,7 @@
-<h1 id="header-a">Header A</h1>
-<h2 id="header-1">Header 1</h2>
-<h3 id="header-i">Header i</h3>
-<h1 id="header-b">Header <em>B</em></h1>
+<h1 id="header-a">Header A<a class="headerlink" href="#header-a" title="Permanent link">¶</a></h1>
+<h2 id="header-1">Header 1<a class="headerlink" href="#header-1" title="Permanent link">¶</a></h2>
+<h3 id="header-i">Header i<a class="headerlink" href="#header-i" title="Permanent link">¶</a></h3>
+<h1 id="header-b">Header <em>B</em><a class="headerlink" href="#header-b" title="Permanent link">¶</a></h1>
<div class="toc">
<ul>
<li><a href="#header-a">Header A</a><ul>
diff --git a/tests/extensions/toc_nested2.html b/tests/extensions/toc_nested2.html
index bf87716..2d8fa2d 100644
--- a/tests/extensions/toc_nested2.html
+++ b/tests/extensions/toc_nested2.html
@@ -8,7 +8,7 @@
<li><a href="#header-3_1">Header 3</a></li>
</ul>
</div>
-<h3 id="start-with-header-other-than-one">Start with header other than one.</h3>
-<h3 id="header-3">Header 3</h3>
-<h4 id="header-4">Header 4</h4>
-<h3 id="header-3_1">Header 3</h3> \ No newline at end of file
+<h3 id="start-with-header-other-than-one">Start with header other than one.<a class="headerlink" href="#start-with-header-other-than-one" title="Permanent link">[link]</a></h3>
+<h3 id="header-3">Header 3<a class="headerlink" href="#header-3" title="Permanent link">[link]</a></h3>
+<h4 id="header-4">Header 4<a class="headerlink" href="#header-4" title="Permanent link">[link]</a></h4>
+<h3 id="header-3_1">Header 3<a class="headerlink" href="#header-3_1" title="Permanent link">[link]</a></h3> \ No newline at end of file