aboutsummaryrefslogtreecommitdiff
path: root/tests/writer.smart.html
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-12-20 00:25:54 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-12-20 00:25:54 +0000
commit5cf769b1cd1d9e76ff5f543aba8b4a15a90b7d88 (patch)
treec09f786f43f29aba1bdd43587fec0c5162ae441a /tests/writer.smart.html
parentc1ebe94e40a66a092c2cd501eda1edb5ec216938 (diff)
downloadpandoc-5cf769b1cd1d9e76ff5f543aba8b4a15a90b7d88.tar.gz
Modified the HTML writer to add invisible anchors to each section
heading. The anchors are derived form the text of the section heading as described in README. This makes it easy to insert links that jump from one part of a document to another: for example, '[back to the Introduction](#Introduction)'. git-svn-id: https://pandoc.googlecode.com/svn/trunk@246 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/writer.smart.html')
-rw-r--r--tests/writer.smart.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/writer.smart.html b/tests/writer.smart.html
index 508b0abf5..d5fb3da93 100644
--- a/tests/writer.smart.html
+++ b/tests/writer.smart.html
@@ -12,18 +12,28 @@
<h1 class="title">Pandoc Test Suite</h1>
<p>This is a set of tests for pandoc. Most of them are adapted from John Gruber&rsquo;s markdown test suite.</p>
<hr />
+<a id="Headers"></a>
<h1>Headers</h1>
+<a id="Level_2_with_an_embedded_link"></a>
<h2>Level 2 with an <a href="/url">embedded link</a></h2>
+<a id="Level_3_with_emphasis"></a>
<h3>Level 3 with <em>emphasis</em></h3>
+<a id="Level_4"></a>
<h4>Level 4</h4>
+<a id="Level_5"></a>
<h5>Level 5</h5>
+<a id="Level_1"></a>
<h1>Level 1</h1>
+<a id="Level_2_with_emphasis"></a>
<h2>Level 2 with <em>emphasis</em></h2>
+<a id="Level_3"></a>
<h3>Level 3</h3>
<p>with no blank line</p>
+<a id="Level_2"></a>
<h2>Level 2</h2>
<p>with no blank line</p>
<hr />
+<a id="Paragraphs"></a>
<h1>Paragraphs</h1>
<p>Here&rsquo;s a regular paragraph.</p>
<p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.</p>
@@ -31,6 +41,7 @@
<p>There should be a hard line break<br />
here.</p>
<hr />
+<a id="Block_Quotes"></a>
<h1>Block Quotes</h1>
<p>E-mail style:</p>
<blockquote>
@@ -79,6 +90,7 @@ here.</p>
</blockquote>
<p>And a following paragraph.</p>
<hr />
+<a id="Code_Blocks"></a>
<h1>Code Blocks</h1>
<p>Code:</p>
<pre><code>---- (should be four hyphens)
@@ -95,7 +107,9 @@ this code block is indented by one tab
These should not be escaped: \$ \\ \> \[ \{
</code></pre>
<hr />
+<a id="Lists"></a>
<h1>Lists</h1>
+<a id="Unordered"></a>
<h2>Unordered</h2>
<p>Asterisks tight:</p>
<ul>
@@ -142,6 +156,7 @@ These should not be escaped: \$ \\ \> \[ \{
<li><p>Minus 3</p>
</li>
</ul>
+<a id="Ordered"></a>
<h2>Ordered</h2>
<p>Tight:</p>
<ol>
@@ -183,6 +198,7 @@ These should not be escaped: \$ \\ \> \[ \{
<li><p>Item 3.</p>
</li>
</ol>
+<a id="Nested"></a>
<h2>Nested</h2>
<ul>
<li>Tab<ul>
@@ -218,6 +234,7 @@ These should not be escaped: \$ \\ \> \[ \{
<li><p>Third</p>
</li>
</ol>
+<a id="Tabs_and_spaces"></a>
<h2>Tabs and spaces</h2>
<ul>
<li><p>this is a list item indented with tabs</p>
@@ -232,6 +249,7 @@ These should not be escaped: \$ \\ \> \[ \{
</li>
</ul>
<hr />
+<a id="HTML_Blocks"></a>
<h1>HTML Blocks</h1>
<p>Simple block on one line:</p>
<div>foo</div>
@@ -307,6 +325,7 @@ Blah
<hr class="foo" id="bar">
<hr />
+<a id="Inline_Markup"></a>
<h1>Inline Markup</h1>
<p>This is <em>emphasized</em>, and so <em>is this</em>.</p>
<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
@@ -317,6 +336,7 @@ Blah
<p>So is <strong><em>this</em></strong> word.</p>
<p>This is code: <code>></code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code>&lt;html></code>.</p>
<hr />
+<a id="Smart_quotes,_ellipses,_dashes"></a>
<h1>Smart quotes, ellipses, dashes</h1>
<p>&ldquo;Hello,&rdquo; said the spider. &ldquo;&lsquo;Shelob&rsquo; is my name.&rdquo;</p>
<p>&lsquo;A&rsquo;, &lsquo;B&rsquo;, and &lsquo;C&rsquo; are letters.</p>
@@ -327,6 +347,7 @@ Blah
<p>Dashes between numbers: 5&ndash;7, 255&ndash;66, 1987&ndash;1999.</p>
<p>Ellipses&hellip;and&hellip;and &hellip; .</p>
<hr />
+<a id="LaTeX"></a>
<h1>LaTeX</h1>
<ul>
<li>\cite[22-23]{smith.1899}</li>
@@ -352,6 +373,7 @@ Dog &amp; 2 \\
Cat &amp; 1 \\ \hline
\end{tabular}</p>
<hr />
+<a id="Special_Characters"></a>
<h1>Special Characters</h1>
<p>Here is some unicode:</p>
<ul>
@@ -383,7 +405,9 @@ Cat &amp; 1 \\ \hline
<p>Plus: +</p>
<p>Minus: -</p>
<hr />
+<a id="Links"></a>
<h1>Links</h1>
+<a id="Explicit"></a>
<h2>Explicit</h2>
<p>Just a <a href="/url/">URL</a>.</p>
<p><a href="/url/" title="title">URL and title</a>.</p>
@@ -393,6 +417,7 @@ Cat &amp; 1 \\ \hline
<p><a href="/url/" title="title with single quotes">URL and title</a></p>
<p><script type="text/javascript">h='nowhere.net';n='nobody';e=n+'@'+h;document.write('<a href="mailto:'+e+'">'+'Email link'+'<\/a>');</script><noscript>Email link (nobody [at] nowhere.net)</noscript></p>
<p><a href="">Empty</a>.</p>
+<a id="Reference"></a>
<h2>Reference</h2>
<p>Foo <a href="/url/">bar</a>.</p>
<p>Foo <a href="/url/">bar</a>.</p>
@@ -407,11 +432,13 @@ Cat &amp; 1 \\ \hline
</code></pre>
<p>Foo <a href="/url/" title="Title with &quot;quotes&quot; inside">bar</a>.</p>
<p>Foo <a href="/url/" title="Title with &quot;quote&quot; inside">biz</a>.</p>
+<a id="With_ampersands"></a>
<h2>With ampersands</h2>
<p>Here&rsquo;s a <a href="http://example.com/?foo=1&amp;bar=2">link with an ampersand in the URL</a>.</p>
<p>Here&rsquo;s a link with an amersand in the link text: <a href="http://att.com/" title="AT&T">AT&amp;T</a>.</p>
<p>Here&rsquo;s an <a href="/script?foo=1&amp;bar=2">inline link</a>.</p>
<p>Here&rsquo;s an <a href="/script?foo=1&amp;bar=2">inline link in pointy braces</a>.</p>
+<a id="Autolinks"></a>
<h2>Autolinks</h2>
<p>With an ampersand: <a href="http://example.com/?foo=1&amp;bar=2">http://example.com/?foo=1&amp;bar=2</a></p>
<ul>
@@ -427,11 +454,13 @@ Cat &amp; 1 \\ \hline
<pre><code>or here: &lt;http://example.com/>
</code></pre>
<hr />
+<a id="Images"></a>
<h1>Images</h1>
<p>From &ldquo;Voyage dans la Lune&rdquo; by Georges Melies (1902):</p>
<p><img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune"></p>
<p>Here is a movie <img src="movie.jpg" alt="movie"> icon.</p>
<hr />
+<a id="Footnotes"></a>
<h1>Footnotes</h1>
<p>Here is a footnote reference,<sup class="footnoteRef" id="fnref1"><a href="#fn1">1</a></sup> and another.<sup class="footnoteRef" id="fnref2"><a href="#fn2">2</a></sup> This should <em>not</em> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<sup class="footnoteRef" id="fnref3"><a href="#fn3">3</a></sup></p>
<p>This paragraph should not be part of the note, as it is not indented.</p>