What I’m trying to do
I am using Obsidian to write sections for a manuscript that will then get imported into Overleaf template for a journal. I use the Pandoc Reference List plugin to seamlessly write citations in my text in editing view, but I want to be able to render the citations as \cite{} in reading view so I can easily copy and paste that into Overleaf.
Things I have tried
I had ChatGPT write a plugin to automatically convert Pandoc-style citations [@key] into \cite{key}. If the ‘render reading mode inline citations’ is turned on in Pandoc Reference List, then the plugin does not work, and I just see the in-line citation format specified by my citation style. If the ‘render reading mode inline citations’ is turned off, then the plugin does work, but it reveals a bug in the Pandoc Reference List plugin that duplicates the text before the citation in the reading view.
For example,
Edit view: random text [@Gielen_2015]
Reading view: random text random text \cite{Gielen_2015}
Is there any way to either fix this duplication bug in the Pandoc Reference List, or write a custom plugin that overwrites the in-text citation in reading view after the Pandoc plugin has run?