From e3ae4dc7d4d288c3acc0203ac74fcd9a0d96975b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 3 Sep 2016 16:39:20 +0200 Subject: Add auto-headings test --- tests/headings/map.cli | 15 +++++++++++++++ tests/headings/map.html | 12 ++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/headings/map.cli create mode 100644 tests/headings/map.html 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 @@ +

Heading 1

+ +

Heading 1.1

+ +

Heading 1.1.1

+ +

Heading 1.2

+ +

Heading 1.2.1

+ +

Heading 2

+ -- cgit v1.1