Visual Editor strips cross-reference ID from inline table caption
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 64/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Tranquilo
- Stack tecnológico
- markdown, typescript
- Área
- tooling
Línea de trabajo
Start by reproducing the round-trip with the provided issue.qmd in the Visual Editor, comparing the inline caption form with the preserved div form. Trace the editor's source serialization for table captions and verify that switching views preserves {#tbl-one} and resolves @tbl-one after saving.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug description
Switching a .qmd from source to the Visual Editor (and back) strips the cross-reference ID from a table caption written in the inline form : Caption {#tbl-one}.
After the round-trip the caption becomes : Caption and @tbl-one no longer resolves.
The equivalent div form ::: {#tbl-two} ... ::: is preserved, so the bug is specific to the inline caption attribute syntax.
Originally reported in https://github.com/quarto-dev/quarto-cli/discussions/14514.
Steps to reproduce
-
Create
issue.qmd:--- title: About format: html --- @tbl-one and @tbl-two | A | B | C | |---|---|---| | 1 | 2 | 3 | : Caption {#tbl-one} ::: {#tbl-two} | A | B | C | |---|---|---| | 1 | 2 | 3 | Caption ::: -
Open in the Visual Editor, make any edit (or just toggle and save).
-
Switch back to source.
Actual behavior
The {#tbl-one} attribute is removed from the caption:
| A | B | C |
|-----|-----|-----|
| 1 | 2 | 3 |
: Caption
@tbl-one renders as ?@tbl-one and the cross-reference is broken.
The {#tbl-two} div form survives the round-trip unchanged.
Expected behavior
The Visual Editor should preserve {#tbl-one} on the table caption across round-trips, matching its behaviour for div-wrapped tables.
Your environment
- IDE: RStudio 2026.04.0 Build 526 (per discussion https://github.com/quarto-dev/quarto-cli/discussions/14514); also reproducible in VSCode / Positron Visual Editor.
- OS: Windows 11 (reporter); reproducible on macOS.
- Lenguaje dominante
- TypeScript
- Estrellas
- 655
- Forks
- 64
- Merge medio
- 8 h 45 min
- PR fusionados (30 d)
- 36
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quarto-dev/quarto
-
VS Code extension: `quarto preview` fails when the file path contains parentheses (path not shell-quoted)Posiblemente ocupada @Bondrewd-K la tomó hace 6 días. Abiertobug vscode
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quarto-dev/quarto#1194 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
quarto-dev/quarto#1139 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 90/100
quarto-dev/quarto#1138 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
quarto-dev/quarto#1137 ·
Los mantenedores suelen responder en 1 día
-
Add dependabot?Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
quarto-dev/quarto#1135 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quarto-dev/quarto
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
getsentry/sentry-conventions#732 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
status:in-linear status:team-assigned team:nodes
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
n8n-io/n8n#41548 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
motiondivision/motion#3955 ·
Los mantenedores suelen responder en 1 día
-
DQ assisgnment closing at CRAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
equinor/prisma-decision-web#919 ·
Los mantenedores suelen responder en 1 día
-
自荐 / Suggestion: Prisma ComputeAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 83/100