QR Codes

Put a URL or text in a fenced qr block to display it as a QR code:

```qr, [.description: Open the project website]
https://example.com/project
```

Deckset creates the code locally, without contacting the website or a QR-code service. The code appears in your slides and in PDF, image, and HTML exports.

Accessible descriptions

Use .description or its shorter alias .desc in the opening fence to describe the destination or purpose of the code. Quoted descriptions are supported. The description becomes alternate text in accessible PDF and HTML exports; it does not change the encoded content. Missing or blank descriptions use the generic label “QR Code”.

Include a readable link on the slide so people can reach the destination without scanning:

# Get the project materials

[Open the project website](https://example.com/project)

```qr, [.desc: "Open the project website"]
https://example.com/project
```

See Accessible media for description syntax and export guidance.

Supported content

QR blocks accept ASCII text, up to 2,331 bytes. Accented characters, non-Latin scripts, and emoji are not supported. Empty, non-ASCII, oversized, or otherwise unsupported content produces a readable error image with the reason included in its alternate text.

For a URL containing non-ASCII characters, use an equivalent ASCII URL, with percent-encoded path and query characters and an ASCII hostname. Check that the encoded URL opens the intended destination.

Colors and scanning

Deckset draws dark squares on a light background and includes the clear border needed by QR readers. It uses the theme’s foreground and background colors when they are fully opaque and have at least 4.5:1 contrast. Dark-theme colors are swapped as needed; unsuitable colors fall back to black on white.

Keep the clear border visible and the code large enough to scan from the audience’s viewing distance. Test a scan from the presentation or exported document you intend to share.

Find a topic, command, or Markdown example.