Reported in https://community.rstudio.com/t/how-to-avoid-margin-references-being-placed-on-top-of-each-other-in-quarto/136439

````markdown
---
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.
````

![image](https://user-images.githubusercontent.com/6791940/167382005-56c37693-d5f1-4ab3-aa58-1f96bf6f3f9b.png)


Placement of third citation in margin is aligned with its associated paragraph, but this conflict with previous ones as first paragraph is shorter in heigh than the citation in margin. 

cc @dragonstyle 




2022-05-09T09:31:29Z
cderv
closed
Reference in margin not correctly placed when long reference and small paragraph
https://github.com/quarto-dev/quarto-cli/issues/834