You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a similar issue (on latest RStudio daily) where switching between Visual and Source incorrectly adds backslashes to [] when pinpointing a citation. After fixing this manually in Source, I confirmed that switching to Visual re-adds the backslashes, which destroys the citation pinpoint.
In a footnote of a Quarto document I have the markdown source text:
Throughout the Visual editing mode displays the citation as if parsed correctly, but in the rendered output (as well as the Source view) it's clear there is an issue.
This behaviour is not obviously consistent, because only the first citation gets messed up, not the second. The problem occurs in a (relatively small) number of footnotes throughout my Quarto book, but I cannot identify a pattern. Maybe someone can see one?
Activity
ronblum commentedon Aug 5, 2024
@mSparks43 Thank you for raising this! Some changes are expected, as the code with the Visual Editor conforms to Pandoc. https://quarto.org/docs/visual-editor/markdown.html. But they shouldn't change what's rendered.
A few questions:
^part of the code, or are you using them here to indicate the code?mSparks43 commentedon Aug 5, 2024
citeTest.zip
Attached a minimal example
yes, every time you switch between visual and source mode it adds an extra space between them


Initially:
renders to
they still "work" but the space between them increases each time you switch from visual to source

The ^ makes them superscript, seems to be required to trigger it

commas dont work in markdown for seperating multiple citations, using commas results in

Not sure what Quarto is
ronblum commentedon Aug 19, 2024
@mSparks43 Thank you! I've been able to reproduce this--I wanted to make sure that we're seeing the same thing.
jthomasmock commentedon Aug 21, 2024
We are doing some improvements to the Visual Editor and will evaluate this alongside other "roundtripping" issues.
michalovadek commentedon Feb 26, 2025
I am encountering a similar issue (on latest RStudio daily) where switching between Visual and Source incorrectly adds backslashes to
[]when pinpointing a citation. After fixing this manually in Source, I confirmed that switching to Visual re-adds the backslashes, which destroys the citation pinpoint.In a footnote of a Quarto document I have the markdown source text:
After switching to Visual and back to Source, the markdown is changed to:
Throughout the Visual editing mode displays the citation as if parsed correctly, but in the rendered output (as well as the Source view) it's clear there is an issue.
This behaviour is not obviously consistent, because only the first citation gets messed up, not the second. The problem occurs in a (relatively small) number of footnotes throughout my Quarto book, but I cannot identify a pattern. Maybe someone can see one?