summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-03 16:39:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-03 16:39:20 +0200
commite3ae4dc7d4d288c3acc0203ac74fcd9a0d96975b (patch)
treea787b6d2412839a0d5ffe58c90e080e7ac1b0a47
parentc3f214e5f820d298129e558d64c10e8826bf84ef (diff)
Add auto-headings test
-rw-r--r--tests/headings/map.cli15
-rw-r--r--tests/headings/map.html12
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/headings/map.cli b/tests/headings/map.cli
new file mode 100644
index 0000000..cdbec38
--- /dev/null
+++ b/tests/headings/map.cli
@@ -0,0 +1,15 @@
+// Note that auto-headings break if we split into multiple doc strings.
+//
+"
+\h1|Heading 1|
+
+\h|Heading 1.1|
+
+\h2|Heading 1.1.1|
+
+\h|Heading 1.2|
+
+\h2|Heading 1.2.1|
+
+\h1|Heading 2|
+"
diff --git a/tests/headings/map.html b/tests/headings/map.html
new file mode 100644
index 0000000..f08086c
--- /dev/null
+++ b/tests/headings/map.html
@@ -0,0 +1,12 @@
+ <h1>Heading 1</h1>
+
+ <h2>Heading 1.1</h2>
+
+ <h3>Heading 1.1.1</h3>
+
+ <h2>Heading 1.2</h2>
+
+ <h3>Heading 1.2.1</h3>
+
+ <h1>Heading 2</h1>
+