summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-02-11 05:53:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-02-11 05:53:12 +0200
commit01314f53987e57c4fcb49fb86d3971bdb206857f (patch)
tree8e78e418a7e987182cc1fc1735f352817549eb1a /tests
parent471556a19e68b372155095c1b11aa568735fe867 (diff)
Add support for ids in paragraphs, local fragment references in links
For example: " \h#hello|Hello Example| See the \l{#hello Hello Example} "
Diffstat (limited to 'tests')
-rw-r--r--tests/toc/toc.cli31
-rw-r--r--tests/toc/toc.html32
2 files changed, 32 insertions, 31 deletions
diff --git a/tests/toc/toc.cli b/tests/toc/toc.cli
index 5e9c43a..cb6fd8c 100644
--- a/tests/toc/toc.cli
+++ b/tests/toc/toc.cli
@@ -2,57 +2,56 @@
"\$TOC$"
"
-\h0|Preface|
+\h0#preface|Preface|
This document describes something awesome.
-\h|About This Document|
+\h#about-document|About This Document|
And this document is also awesome.
-\h|More Information|
+\h#more-information|More Information|
It is so awesome that no further information will be required."
"
-\H|PART I|
+\H#part1|PART I|
Start of part one.
-\h1|Introduction|
+\h1#intro|Introduction|
Beginning of the first chapter.
-\h|Architecture and Workflow|
+\h#arch-flow|Architecture and Workflow|
Some basics.
-\h|Benefits|
+\h#benefits|Benefits|
You will like them.
-\h1|Hello World|
+\h1#hello|Hello World|
Beginning of the second chapter.
-\h|Setup|
+\h#hell-setup|Setup|
More basics.
-\h|Compiling|
+\h#hello-compile|Compiling|
How to build the example
-\h2|Compiling with GCC|
+\h2#hello-compile-gcc|Compiling with GCC|
-GCC
+GCC. For Clang see \l{#hello-compile-clang Compiling with Clang}.
-\h2|Compiling with Clang|
+\h2#hello-compile-clang|Compiling with Clang|
-Clang
+Clang. For GCC see \l{#hello-compile-gcc Compiling with GCC}.
-\h|Conclusion|
+\h#hello-conclusion|Conclusion|
Some remarks.
-
"
diff --git a/tests/toc/toc.html b/tests/toc/toc.html
index 383ff12..7da2f0c 100644
--- a/tests/toc/toc.html
+++ b/tests/toc/toc.html
@@ -28,55 +28,57 @@
</td></tr>
</table>
- <h1 class="preface">Preface</h1>
+ <h1 id="preface" class="preface">Preface</h1>
<p>This document describes something awesome.</p>
- <h2>About This Document</h2>
+ <h2 id="about-document">About This Document</h2>
<p>And this document is also awesome.</p>
- <h2>More Information</h2>
+ <h2 id="more-information">More Information</h2>
<p>It is so awesome that no further information will be required.</p>
- <h1 class="part">PART I</h1>
+ <h1 id="part1" class="part">PART I</h1>
<p>Start of part one.</p>
- <h1>Introduction</h1>
+ <h1 id="intro">Introduction</h1>
<p>Beginning of the first chapter.</p>
- <h2>Architecture and Workflow</h2>
+ <h2 id="arch-flow">Architecture and Workflow</h2>
<p>Some basics.</p>
- <h2>Benefits</h2>
+ <h2 id="benefits">Benefits</h2>
<p>You will like them.</p>
- <h1>Hello World</h1>
+ <h1 id="hello">Hello World</h1>
<p>Beginning of the second chapter.</p>
- <h2>Setup</h2>
+ <h2 id="hell-setup">Setup</h2>
<p>More basics.</p>
- <h2>Compiling</h2>
+ <h2 id="hello-compile">Compiling</h2>
<p>How to build the example</p>
- <h3>Compiling with GCC</h3>
+ <h3 id="hello-compile-gcc">Compiling with GCC</h3>
- <p>GCC</p>
+ <p>GCC. For Clang see <a href="#hello-compile-clang">Compiling with
+ Clang</a>.</p>
- <h3>Compiling with Clang</h3>
+ <h3 id="hello-compile-clang">Compiling with Clang</h3>
- <p>Clang</p>
+ <p>Clang. For GCC see <a href="#hello-compile-gcc">Compiling with
+ GCC</a>.</p>
- <h2>Conclusion</h2>
+ <h2 id="hello-conclusion">Conclusion</h2>
<p>Some remarks.</p>