How to avoid margin references being placed on top of each other in quarto

I'm really enjoying Quarto so far. I especially like the ability to include references in the right-hand margin.

I'm running into an issue where some margin references are being printed on top of existing margin references. As best I can tell, this happens because each new paragraph's margin references are placed directly across from that paragraph, without regard for the length of the previous paragraph's references.

In this first example, only the first paragraph includes references, and they are rendered nicely.

---
format: html
reference-location: margin
---

Lorem ipsum dolor sit amet, consectetur[^1] adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna 
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.[^2] Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

[^1]: Here is the first citation. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
[^2]: Here is the second citation.

Notice how Note #2 appears after Note #1, as you'd expect.

Here is the problem . In this example, I add a reference to the second paragraph. Note #3 should be placed below Note #2. Instead, it is placed directly across from paragraph 2.

---
format: html
reference-location: margin
---

Lorem ipsum dolor sit amet, consectetur[^1] adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna 
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.[^2] Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[^3]

[^1]: Here is the first citation. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
[^2]: Here is the second citation.
[^3]: Here is the third citation.

Notice how Note #3 is placed directly across from paragraph 2, and on top of Note #1.

How can I make notes from paragraph 2 begin after notes from paragraph 1?

I know Quarto is still relatively young, so this may be something worth opening an Issue for, but I wanted to check here first, in case I'm missing something obvious. Thanks!

This definitely look as an issue
I opened on in the repo you can follow fix there:

Thanks, @cderv! I thought this might be the case. I appreciate you opening the issue.

1 Like

This should be fixed in last release v0.9.382

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.