Closed TomBener closed 2 days ago
I believe we are following the spec here: https://docs.citationstyles.org/en/stable/specification.html#appendix-vi-links
There is no specific configuration in CSL for hyperlinks, as far as I know.
I believe we are following the spec here: https://docs.citationstyles.org/en/stable/specification.html#appendix-vi-links
There is no specific configuration in CSL for hyperlinks, as far as I know.
Thanks. I understand it, but is there any method to disable the hyperlinks of DOI as some journal styles don’t need it.
You could use a Lua filter (put it after --citeproc
on the command line so that it operates after citeproc). The filter would look inside the refs
Div and delinkify any links there. See the docs for Lua filters.
Description
When using Pandoc with a custom CSL file to generate bibliographies, the DOI is rendered as a hyperlink for the title of an entry, even if the CSL file does not include a macro or instructions to do so. This behavior is inconsistent with tools like the Zotero Word plugin, which correctly follows the CSL specification.
Steps to Reproduce
Use the following Markdown file as input:
Use this CSL file, which omits any DOI macro.
Run the following Pandoc command:
Expected Behavior
The bibliography should render without the title being hyperlinked to the DOI unless explicitly specified in the CSL file.
Actual Behavior
The title in the bibliography is hyperlinked to the DOI, despite the CSL file having no such macro or instructions:
Notes
This behavior is not observed in the Zotero Word plugin when using the same CSL file. It seems Pandoc may be applying default handling for DOIs that overrides or bypasses the CSL configuration. The Pandoc version is 3.5.