Markup Formats

Define what format the generated text will take. Select one by setting markup: in the relevant preset.

Format: markup: (setting)

Default: auto

Example:

# /_data/picture.yml

markup_presets:
  my_preset:
    markup: data_auto

Valid options:

Standard HTML:

  • auto - default
  • picture
  • img

Javascript Friendly:

  • data_auto
  • data_picture
  • data_img

Fragments:

  • direct_url
  • naked_srcset

Reference: