Adding Placeholder Images to Your Documents

Overview

You can include placeholder images in your Quarto documents by using the placeholder shortcode. Placeholder images can have configurable sizes and will be generated in either PNG or SVG format.

Example

Here’s an example of a placeholder image:

By default, the placeholder shortcode creates 100x100 pixel images in the PNG format. You can customize the size and format of the image by providing parameters to the shortcode.

Usage

The placeholder shortcode takes a variable number of parameters, ranging from zero to two. It also takes an optional format keyword argument.

  • {{< placeholder >}}: Create a 100x100 pixel PNG placeholder image.
  • {{< placeholder width >}}: Create a widthxwidth pixel PNG placeholder image.
  • {{< placeholder width height >}}: Create a widthxheight pixel PNG placeholder image.
  • {{< placeholder format="svg" >}}: Create a 100x100 SVG placeholder image.
  • {{< placeholder width format="svg" >}}: Create a widthxwidth SVG placeholder image.
  • {{< placeholder width height format="svg" >}}: Create a widthxheight SVG placeholder image.