Skip to content

fig-cap-location conflict with code annotation  #9155

@cderv

Description

@cderv
---
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcode-annotationfiguresluaIssues related to the lua codebase, filter chain, etc

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions