From 635a89b84aec6b0d12f635763e04b4836174f2b9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 23 Sep 2022 13:37:08 +0300 Subject: feat: implement table directive Sponsored-by: author --- riki.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'riki.md') diff --git a/riki.md b/riki.md index de4e08a..b7551e1 100644 --- a/riki.md +++ b/riki.md @@ -569,6 +569,32 @@ then file output/a/index.html contains "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 "" +then file output/index.html contains "" +then file output/index.html contains "" +then file output/index.html contains "" +then file output/index.html contains "" +then file output/index.html contains "" +then file output/index.html contains "" +~~~ + +~~~{#table .file .markdown} +[[!table data=""" +Greeting | Greetee +hello | world +goodbye | cruel world +"""]] +~~~ + ## Source file tree ### Listing source files -- cgit v1.2.1
GreetingGreetee
helloworld
goodbyecruel world