diff options
Diffstat (limited to 'riki.md')
-rw-r--r-- | riki.md | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -677,6 +677,26 @@ goodbye | cruel world """]] ~~~ +### `toc` + +_Requirement: the `toc` directive creates a table of contents._ + +~~~scenario +given an installed riki +given file site/index.mdwn from toc +when I run riki build site output +when I run cat output/index.html +then file output/index.html contains "<li>Introduction</li>" +then file output/index.html contains "<li>Acknowledgements</li>" +~~~ + +~~~{#toc .file .markdown} +[[!toc]] + +# Introduction +## Acknowledgements +~~~ + ## Source file tree ### Listing source files |