diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-07-09 08:40:49 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-07-09 08:40:49 +0300 |
commit | b0c41c718da450d059f714093fac51a91e530274 (patch) | |
tree | 130613d9eff8e6f6ec6ec5ce0d615bf7c8e0ace0 /riki.md | |
parent | 2967a6e66aeaa8e4d86bb5487f33e495ebacec50 (diff) | |
download | riki-b0c41c718da450d059f714093fac51a91e530274.tar.gz |
feat: support up to six levels of heading
Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r-- | riki.md | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -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 |