`.column-margin` content is shown in the body column, not the right margin
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 56/100
Línea de trabajo
Start by reading the comments in crates/quarto-core/src/template.rs about when q2 adds fullcontent, then trace how the template emits <body>, <main>, and .column-margin for the supplied index.qmd reproduction. Compare the generated markup with the Quarto 1 examples in the issue. Done when rendering the reproduction places the margin note beside the body text and emits the expected page and margin classes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This issue was written by Claude while adding q2 support to
Great Docs. The output shown comes from running each repro.
Bug description
A ::: {.column-margin} div is shown in the body column, in the flow of the text, instead of in
the right margin. The theme's CSS places .column-margin with grid-column. That only takes effect
when its parent is on the page grid, and q2 writes <main> without the page-columns page-full
classes that put it there. q2 also marks the page fullcontent, which shrinks the right margin.
According to the comments in crates/quarto-core/src/template.rs, q2 adds fullcontent when
nothing uses the right margin, and it checks only for a TOC and margin categories, not
.column-margin content.
Quarto 1 writes <main class="content page-columns page-full"> on such a page, and
no-row-height column-container on the margin div, so the body text continues beside it. It also
adds page-columns page-full to each section that holds column content.
Great Docs puts its homepage's metadata sidebar (links, authors, license) in a .column-margin div.
Under q2 it sits under the page's hero, where the body text should begin. Great Docs now adds Quarto 1's
classes in a post-render script, but only for that sidebar.
Steps to reproduce
mkdir margin && cd margin
printf 'project:\n type: website\nwebsite:\n title: Demo\n' > _quarto.yml
printf -- '---\ntitle: Margin\n---\n\nBody text.\n\n::: {.column-margin}\nMargin note.\n:::\n\nMore text.\n' > index.qmd
q2 render
grep -oE '<body[^>]*>|<main[^>]*>|<div[^>]*column-margin[^>]*>' _site/index.html
Actual behavior
With q2 0.47.0, with q2 built from main at 2355f87a2, and with the nightly
0.48.0-nightly.20261125:
<body class="fullcontent quarto-light">
<main class="content" id="quarto-document-content" tabindex="-1">
<div class="column-margin">
"Margin note." is shown between the two paragraphs, at the width of the body text.
Expected behavior
As in Quarto 1.9.37, the note is in the right margin, beside the body text:
<body class="quarto-light">
<main class="content page-columns page-full" id="quarto-document-content">
<div class="no-row-height column-margin column-container">
- Lenguaje dominante
- Rust
- Estrellas
- 316
- Forks
- 23
- Merge medio
- 11 h 49 min
- PR fusionados (30 d)
- 245
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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/q2
-
Heading anchor links have no icon: AnchorJS is initialised with an empty `icon`Posiblemente ocupada @cscheid la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quarto-dev/q2#1419 ·
Los mantenedores suelen responder en 1 día
-
bug testing windows
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
quarto-dev/q2#1346 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
quarto-dev/q2#1095 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
quarto-dev/q2#1418 ·
Los mantenedores suelen responder en 1 día
-
bug readers-writers windows
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
quarto-dev/q2#1416 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de quarto-dev/q2
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
BurntSushi/jiff#755 ·
Los mantenedores suelen responder en 1 día
-
After the kernel is given up on, a new import leaves "Importing…" and its Cancel on the status lineAbiertobug help wanted priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sawhorse3d/sawhorse#163 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MartinPTielemans/ilo#4607 ·