All links in citations get the role doc-biblioref
#10156
Closed
Description
Explain the problem.
If I put a link in a citation, such as in the following example, the link gets the role doc-biblioref
, although it is not (and probably should not be?) the result of link-citations: true
.
---
title: "Test"
lang: en
references:
- id: fenner2012a
title: One-click science marketing
author:
- family: Fenner
given: Martin
orcid: 0000-0003-1419-2405
container-title: Nature Materials
volume: '11'
URL: 'http://dx.doi.org/10.1038/nmat3283'
DOI: '10.1038/nmat3283'
issue: '4'
publisher: Nature Publishing Group
page: 261-263
type: article-journal
issued:
date-parts:
- - 2012
- 3
---
...as a recent article demonstrated [@fenner2012a, [in copyright](https://rightsstatements.org/page/InC/1.0/)]:
> Some quote from the article.
pandoc --from markdown --to html5 --citeproc --no-highlight
<p>…as a recent article demonstrated <span class="citation"
data-cites="fenner2012a">(Fenner 2012, <a
href="https://rightsstatements.org/page/InC/1.0/"
role="doc-biblioref">in copyright</a>)</span>:</p>
<blockquote>
<p>Some quote from the article.</p>
</blockquote>
<div id="refs" class="references csl-bib-body hanging-indent"
data-entry-spacing="0" role="list">
<div id="ref-fenner2012a" class="csl-entry" role="listitem">
Fenner, Martin. 2012. <span>“One-Click Science Marketing.”</span>
<em>Nature Materials</em> 11 (4): 261–63. <a
href="https://doi.org/10.1038/nmat3283">https://doi.org/10.1038/nmat3283</a>.
</div>
</div>
Pandoc version?
pandoc version 3.3
Related information
This leads to a problem downstream, see quarto-dev/quarto-cli#10724