summaryrefslogtreecommitdiff
path: root/riki.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-07-09 08:40:49 +0300
committerLars Wirzenius <liw@liw.fi>2022-07-09 08:40:49 +0300
commitb0c41c718da450d059f714093fac51a91e530274 (patch)
tree130613d9eff8e6f6ec6ec5ce0d615bf7c8e0ace0 /riki.md
parent2967a6e66aeaa8e4d86bb5487f33e495ebacec50 (diff)
downloadriki-b0c41c718da450d059f714093fac51a91e530274.tar.gz
feat: support up to six levels of heading
Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r--riki.md19
1 files changed, 13 insertions, 6 deletions
diff --git a/riki.md b/riki.md
index ed5c2c2..baee12d 100644
--- a/riki.md
+++ b/riki.md
@@ -173,21 +173,28 @@ then AST of site/page.mdwn matches that of output/page.html
There is ~~struck through~~.
~~~
-### Top level heading
+### Headings
-_Requirement: Given a Markdown file with top level heading, the output must
-be an HTML file with one h1 element, without extra elements._
+_Requirement: Given a Markdown file with headings of various levels,
+the output must be an HTML file with corresponding `h1`, `h2`, etc,
+elements, without extra elements. Up to six levels of headings must be
+supported._
~~~scenario
given an installed riki
-given file site/page.mdwn from h1
+given file site/page.mdwn from headings
when I run riki site output
then AST of site/page.mdwn matches that of output/page.html
~~~
-~~~{#h1 .file}
-# Heading
+~~~{#headings .file}
+# Heading one
+## Heading two
+### Heading three
+#### Heading four
+##### Heading five
+###### Heading six
~~~
### Inline code