diff options
Diffstat (limited to 'riki.md')
-rw-r--r-- | riki.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -569,6 +569,32 @@ then file output/a/index.html contains "<a href="https://example.com/foo/123">fo [[!shortcut name="foo" url="https://example.com/foo/%s" desc="foo!%s"]] ~~~ +### `table` + +_Requirement: the `table` directive creates a simple table._ + +~~~scenario +given an installed riki +given file site/index.mdwn from table +when I run riki build site output +when I run cat output/index.html +then file output/index.html contains "<table>" +then file output/index.html contains "<th><td>Greeting</td>" +then file output/index.html contains "<td>Greetee</td>" +then file output/index.html contains "<tr><td>hello</td>" +then file output/index.html contains "<td>world</td>" +then file output/index.html contains "<tr><td>goodbye</td>" +then file output/index.html contains "<td>cruel world</td>" +~~~ + +~~~{#table .file .markdown} +[[!table data=""" +Greeting | Greetee +hello | world +goodbye | cruel world +"""]] +~~~ + ## Source file tree ### Listing source files |