diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-07-22 10:15:40 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-07-22 10:19:54 +0300 |
commit | 0f8f909d16e782e1504c03fcfd775d1913661c50 (patch) | |
tree | b361831837a91c4f2627d5deeee4a3aae0d0555c /riki.md | |
parent | 10a88c79c96c2b7feca0481655f7ef823564e3bf (diff) | |
download | riki-0f8f909d16e782e1504c03fcfd775d1913661c50.tar.gz |
feat: img directive
Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r-- | riki.md | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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. +~~~ |