Closed YeyouminTian closed 10 months ago
Unless you can give full instructions for reproducing the issue in pandoc (not some third-party plugin), we can't help you. At minimum we'd need the full pandoc command line used and not just the markdown above but the bib and csl files it uses. Also the pandoc version number.
I think it's unlikely that it's an issue in pandoc itself, but we can't tell without further information. If you can't reproduce the issue in pandoc without VSCode, then I'd report the issue instead to the author of the preview plugin.
I was using Pandoc within Visual Studio Code (VSCode) to compile a Markdown document that contains literature citations. The specific problem arises after compilation: the resulting document displays each referenced bibliography entry twice, leading to duplicate references in the output. This issue persists despite the correct implementation of Markdown syntax for citations and the appropriate setup of the bibliography file (mybib.bib) and the CSL file (china-C.csl). Additionally, the YAML header in the Markdown document seems to be correctly formatted with necessary fields like bibliography, csl, and other document settings. The problem appears to be related to the Pandoc conversion process or possibly the settings or templates used during this conversion.
The result of compilation is:
How can I fix it?