mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 09:47:06 +00:00
HTML writer: replace deprecated aria roles for bibliography entries.
`doc-biblioentry` -> `listitem` `doc-bibliography` -> `list` Closes #8354.
This commit is contained in:
@@ -881,8 +881,8 @@ blockToHtmlInner opts (Div attr@(ident, classes, kvs') bs) = do
|
||||
, k /= "width" || "column" `notElem` classes] ++
|
||||
[("style", "width:" <> w <> ";") | "column" `elem` classes
|
||||
, ("width", w) <- kvs'] ++
|
||||
[("role", "doc-bibliography") | isCslBibBody && html5] ++
|
||||
[("role", "doc-biblioentry") | isCslBibEntry && html5]
|
||||
[("role", "list") | isCslBibBody && html5] ++
|
||||
[("role", "listitem") | isCslBibEntry && html5]
|
||||
let speakerNotes = "notes" `elem` classes
|
||||
-- we don't want incremental output inside speaker notes, see #1394
|
||||
let opts' = if | speakerNotes -> opts{ writerIncremental = False }
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
```
|
||||
% pandoc -f markdown -t html --citeproc
|
||||
---
|
||||
title: test
|
||||
nocite: '[@*]'
|
||||
references:
|
||||
- author:
|
||||
- family: Fekete
|
||||
given: Jean-Daniel
|
||||
- family: Freire
|
||||
given: Juliana
|
||||
DOI: 10.1109/MCG.2020.3006412
|
||||
id: feketeExploringReproducibilityVisualization2020
|
||||
ISSN: 1558-1756
|
||||
issue: 5
|
||||
issued: 2020-09
|
||||
page: 108-119
|
||||
source: IEEE Xplore
|
||||
title: Exploring Reproducibility in Visualization
|
||||
container-title: IEEE Computer Graphics and Applications
|
||||
type: article-journal
|
||||
volume: 40
|
||||
---
|
||||
|
||||
## References
|
||||
^D
|
||||
<h2 class="unnumbered" id="references">References</h2>
|
||||
<div id="refs" class="references csl-bib-body hanging-indent"
|
||||
role="list">
|
||||
<div id="ref-feketeExploringReproducibilityVisualization2020"
|
||||
class="csl-entry" role="listitem">
|
||||
Fekete, Jean-Daniel, and Juliana Freire. 2020. <span>“Exploring
|
||||
Reproducibility in Visualization.”</span> <em>IEEE Computer Graphics and
|
||||
Applications</em> 40 (5): 108–19. <a
|
||||
href="https://doi.org/10.1109/MCG.2020.3006412">https://doi.org/10.1109/MCG.2020.3006412</a>.
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
Reference in New Issue
Block a user