quarto-redacted

Redacted-style placeholder text for Quarto documents

A Quarto extension that renders selected text with the Redacted typefaces — solid bars or handwritten scribbles instead of legible characters. Useful for wireframes, mockups, and screenshots where the actual text shouldn’t be readable.

Installation

quarto add emilhvitfeldt/quarto-redacted

Quick start

Add the filter in your YAML header:

---
title: My Document
format: html
filters:
  - redacted
---

Then apply one of the classes to a span or div:

This sentence has [hidden words]{.redacted} in it.

::: {.redacted-script}
An entire paragraph rendered as handwritten scribbles.
:::

Examples

Basic — block font

Inline spans and block divs rendered with Redacted Regular (solid bars).

View Example Source Code

Script variants

Redacted Script in regular, bold, and light weights — handwritten scribble style.

View Example Source Code

RevealJS

Redacted classes work inside reveal.js slides for mockup presentations.

View Example Source Code

PDF

LaTeX output via fontspec / xelatex.

View PDF Source Code

Typst

Native Typst output using bundled fonts.

View PDF Source Code

Classes

Class Font
.redacted Redacted Regular (solid bars)
.redacted-script Redacted Script Regular
.redacted-script-bold Redacted Script Bold
.redacted-script-light Redacted Script Light

Apply to a span for inline redaction:

[secret value]{.redacted}

Or a div for a whole block:

::: {.redacted-script}
This entire paragraph is scribbled.
:::

Format support

Format Status Notes
HTML Full support Uses @font-face with bundled WOFF2
RevealJS Full support Same CSS as HTML
PDF Full support xelatex + fontspec; bundled TTFs
Typst Full support Requires font-paths set in YAML (see below)

Typst setup

Typst needs to be told where to find the bundled fonts:

---
format:
  typst:
    font-paths: [_extensions/redacted/fonts]
filters:
  - redacted
---