Skip to content

v0.3.12.2

Compare
Choose a tag to compare
@github-actions github-actions released this 24 Jan 07:41
· 151 commits to master since this release
0b473d7

Linux: pandoc-crossref v0.3.12.2 git commit 0b473d7 (HEAD) built with Pandoc v2.17.0.1, pandoc-types v1.22.1 and GHC 8.10.7
Windows: pandoc-crossref v0.3.12.2 git commit 0b473d7 (HEAD) built with Pandoc v2.17.0.1, pandoc-types v1.22.1 and GHC 8.10.7
macOS: pandoc-crossref v0.3.12.2 git commit 0b473d7 (HEAD) built with Pandoc v2.17.0.1, pandoc-types v1.22.1 and GHC 8.10.7

Changelog

  • Make section numbering more consistent with pandoc

    If the first heading in your document is level 2 or more, pandoc will assign
    index 0 to the implicit sections. Pandoc-crossref, on the other hand,
    assinged index 1 to these sections previously. This could lead to an
    off-by-one discrepancy between section and reference indices when using
    pandoc's --number-sections.

    This behaviour is now aligned with pandoc, i.e. missing top-level sections
    will get index of 0.

    The old behaviour is kept when using pandoc-crossref's numberSections,
    for backwards compatibility and also because having references start with
    0 is rather impractical to begin with.