Repository navigation
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
For a callout with a title, Quarto inserts a hidden type label as the first inline of the title and puts no space after it.
The DOM text then reads NoteRemember this, with the label and the title joined into one word.
quarto-cli/src/resources/filters/modules/callouts.lua
Lines 271 to 276 in 69592e5
if needs_screen_reader_callout_type then -- add a screen reader callout type local srCalloutType = pandoc.Span(pandoc.Str(displayName(callout_type))) srCalloutType.attr.classes:insert("screen-reader-only") title:insert(1, srCalloutType) end
The label is hidden with position: absolute, so Chrome treats it as a block and its accessibility tree still reads "Note Remember this".
The joined word shows up wherever the text is read from the DOM.
The website search index is one case: search.json contains NoteRemember, so searching for a word of the title does not match it.
Steps to reproduce
---
title: "Callout test"
---
::: {.callout-note title="Remember this"}
Body text.
:::_quarto.yml:
project:
type: website
website:
title: tquarto render
grep -o 'NoteRemember' _site/search.jsonActual behavior
textContent of .callout-title-container is NoteRemember this, and search.json contains NoteRemember.
Expected behavior
The label and the title are separate words, for example Note Remember this.
Your environment
- IDE: none, terminal only
- OS: macOS (Darwin 27.0.0, Apple Silicon)
Quarto check output
Quarto 99.9.9
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.7.14: OK
Typst version 0.15.1: OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 69592e5c1718d3e1b2f3d11e757d32e23a16af67
Activity
changelog: callout type label no longer runs into the title (#15177)