quarto-dev / quarto-dev/quarto-cli

fig-cap-location conflict with code annotation

Offen
#9,155 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug code-annotation figures lua
Vorherrschende Sprache
JavaScript
Sterne
6k
Forks
458
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
41

Beschreibung

---
title: 'Title'
format: html
---

::: {#fig-learnxmp fig-cap-location="top"}
```xml
<context-info>
  <url>file:/Volumes/.../1051-Learn.mp4</url>           # <1>
```
1. Testing annotations.

Caption

:::

image

while without annotation

---
title: 'Title'
format: html
---

::: {#fig-learnxmp fig-cap-location="top"}
```xml
<context-info>
  <url>file:/Volumes/.../1051-Learn.mp4</url>           
```

Caption

:::

image

Same with Margin
image

image

Found while looking at https://forum.posit.co/t/code-annotations-after-caption-in-labeled-container-divs/183061

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Start by rendering the two minimal Markdown examples in the issue with Quarto, comparing the annotated and unannotated code blocks and the margin variant. Trace the rendering path for labeled container divs, figure caption placement, and code annotations; done means annotations no longer alter the requested caption location and the examples render consistently.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
markdown
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.