Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Italics parsed with CSL YAML but not CSL JSON #170

@adunning

Description

@adunning

Italics within the CSL number variable will be parsed as expected with CSL YAML, but not with CSL JSON. This is presumably related to #147.

The following examples use pandoc 3.7.0.2 but with the updated chicago-author-date.csl.

CSL YAML input

pandoc -C -t markdown << EOT

---
references:
- id: hagheBreuiariumSecundumUsum1505
  citation-key: hagheBreuiariumSecundumUsum1505
  editor:
    - family: Haghe
      given: Inghelbert
  event-place: Rouen
  issued:
    - year: 1505
  language: la
  number: '*STC* 15793'
  publisher: Olivier & Mauditier
  publisher-place: Rouen
  title: Breuiarium secundum usum Herfordensis
  type: classic
  URL: https://proquest.com/docview/2248506201
...

[@hagheBreuiariumSecundumUsum1505]

EOT

Result, as expected:

*Breuiarium secundum usum Herfordensis*. 1505. *STC* 15793. Edited by
Inghelbert Haghe. Olivier & Mauditier.

CSL JSON input

Using italic-test.json:

pandoc -C --bibliography=italic-test.json -t markdown << EOT

[@hagheBreuiariumSecundumUsum1505]
  
EOT

This unexpectedly results in escaped italic tags:

*Breuiarium secundum usum Herfordensis*. 1505. \<I\>STC\</i\> 15793.
Edited by Inghelbert Haghe. Olivier & Mauditier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions