aboutsummaryrefslogtreecommitdiff
path: root/test.html
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-01-31 12:49:22 +0000
committerJohn Ankarström <john@ankarstrom.se>2021-01-31 12:49:22 +0000
commitdfb9b24814264abb429e4d289685654c469ff362 (patch)
tree9e4686fc56cfbb92ded6e514204210775da794b7 /test.html
parent2f7147aa05cbdcb8b1b2470877dffc663cb7a83e (diff)
downloadem-dfb9b24814264abb429e4d289685654c469ff362.tar.gz
Add index script
Index automatically adds appropriate ids to HTML headings and prints an index of all headings on stderr (unless given the -s, silent, option).
Diffstat (limited to 'test.html')
-rw-r--r--test.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/test.html b/test.html
index 17f5566..5a76eaf 100644
--- a/test.html
+++ b/test.html
@@ -1,4 +1,7 @@
-<h1>Em example</h1>
+<!DOCTYPE html>
+<html>
+<title>Em example</title>
+<h1 id="em-example">Em example</h1>
<p>
This is an example of <i>em</i>.
</p>
@@ -11,6 +14,7 @@ Here is an asterisk at the end of a word*.
<p>
Here is an <i>unfinished inline formatting tag.
</i></p>
+<h2 id="messerschmidts-fiance">Meßerschmidts fiancé</h2>
<blockquote>
<p>Perhaps quotes could be regarded as lists.
The paragraph goes on until a new "item" comes.
@@ -57,3 +61,4 @@ definition
code block
with two lines
</pre>
+</html>