summaryrefslogtreecommitdiff
path: root/riki.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-07-22 10:15:40 +0300
committerLars Wirzenius <liw@liw.fi>2022-07-22 10:19:54 +0300
commit0f8f909d16e782e1504c03fcfd775d1913661c50 (patch)
treeb361831837a91c4f2627d5deeee4a3aae0d0555c /riki.md
parent10a88c79c96c2b7feca0481655f7ef823564e3bf (diff)
downloadriki-0f8f909d16e782e1504c03fcfd775d1913661c50.tar.gz
feat: img directive
Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r--riki.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/riki.md b/riki.md
index 7f61ea0..fa982b2 100644
--- a/riki.md
+++ b/riki.md
@@ -424,3 +424,24 @@ then file output/index.html contains "<title>Yo</title>"
~~~{#meta .file .markdown}
[[!meta title=Yo]]]
~~~
+
+### `img`
+
+_Requirement: the `img` directive embeds an image in the generated
+HTML page._
+
+~~~scenario
+given an installed riki
+given file site/index.mdwn from img
+given file site/img.jpg from jpeg
+when I run riki build site output
+then file output/index.html contains "<img src="img.jpg""
+~~~
+
+~~~{#img .file .markdown}
+[[!img img.jpg]]]
+~~~
+
+~~~{#jpeg .file}
+This is a dummy JPEG image.
+~~~