mkgallery
, a quarto shortcode extension, makes easy to put images in
the specified directory on the document.
To use the mkgallery extension in your Quarto project, follow these steps:
- Run the following command in your terminal within the project’s
working directory. This will install the extension under the
_extensions
subdirectory:
quarto add t-arae/mkgallery
- Once installed, apply the
mkgallery
filter by adding the following lines to the YAML header of your.qmd
file:
filters:
- t-arae/mkgallery
To display images from the articles/imgs/
directory in your Quarto
document using the mkgallery
shortcode, use the following syntax:
{{< mkgallery articles/imgs >}}
This will embed all images from the articles/imgs/
directory onto your
document.
You can find the source code for several examples of the mkgallery
shortcode usage at the following link:
example.qmd.
To see the rendered version of this example, visit the following link: here.