Files
pandoc/test/command/citeproc-87.md
John MacFarlane c9c0328179 Fix citeproc-87 test.
When we updated to the latest chicago-author-date.csl, this test
no longer tested what it was supposed to; so we use a different csl.
2025-07-20 15:29:55 -07:00

60 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
```
% pandoc --citeproc -Mlang=it-IT -t markdown-citations
Foo [@a 50: «Disse: "bar"»]. «Disse: "baz"»
---
suppress-bibliography: true
references:
- id: a
author:
- literal: Aristotele
title: Metafisica
type: book
...
^D
Foo (Aristotele, s.d., 50: «Disse: "bar"»). «Disse: "baz"»
```
The Quoted is passed to citeproc as a Span ("",["csl-quoted"],[])
so that flipflopping and localization occur.
```
% pandoc -C -t plain -Mlang=en --csl command/le-tapuscrit-note.csl
---
references:
- id: a
author:
- literal: Aristotele
title: Metafisica et "Physica"
type: article-journal
...
Foo [@a 50].
^D
Foo.[1]
ARISTOTELE, “Metafisica et ‘Physica’.”
[1] Aristotele, “Metafisica et ‘Physica’,” p. 50.
```
```
% pandoc -C -t plain -Mlang=it --csl command/le-tapuscrit-note.csl
---
references:
- id: a
author:
- literal: Aristotele
title: Metafisica et "Physica"
type: article-journal
...
Foo [@a 50].
^D
Foo.[1]
ARISTOTELE, «Metafisica et “Physica”».
[1] Aristotele, «Metafisica et “Physica”», p. 50.
```