Skip to content

Formatting disappears from an enclosed locator #163

@adunning

Description

@adunning

When enclosing a locator in braces, any formatting applied to the locator disappears.

Minimal working example

Using pandoc 3.7.0.2:

pandoc --citeproc -t markdown << EOT

---
references:
- id: VirgilAeneid
  author: Virgil
  title: Aeneid
  type: book
---

Test 1 [@VirgilAeneid, [i.]{.smallcaps} 123*a*].

Test 2 [@VirgilAeneid, {[ii.]{.smallcaps} 456*b*}].

EOT

Actual result

Test 1 (Virgil, n.d., [i.]{.smallcaps} 123*a*).

Test 2 (Virgil, n.d., ii. 456b).

:::: {#refs .references .csl-bib-body .hanging-indent entry-spacing="0"}
::: {#ref-VirgilAeneid .csl-entry}
Virgil. n.d. *Aeneid*.
:::
::::

Expected result

The second example should be formatted identically to the first:

Test 1 (Virgil, n.d., [i.]{.smallcaps} 123*a*).

Test 2 (Virgil, n.d., [ii.]{.smallcaps} 456*b*).

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