Skip to content

fig-cap-location only works in 1.4 for crossref figures  #8066

@cderv

Description

@cderv
---
title: "Test"
format:
  html:
    fig-cap-location: margin
---

![Test figure caption](https://placeholder.co/400)

image

With 1.3

image

This is a regression.

I believe this is linked to other due to FloatRefTarget change I believe as we know consider figures only where there is a #fig- id. (cc @cscheid)

I don't know where we are on this topic, as I can't find related issues but I am sure we have other related to how we consider figure in 1.4

Adding the id fixed it

---
title: "Test"
format:
  html:
    fig-cap-location: margin
---

![Test figure caption](https://placeholder.co/400){#fig-dummy}

image

Found in #8058

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrossreffiguresregressionFunctionality that used to work but now is broken.triaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions