Skip to content

Bump bundled Pandoc to include texmath spacing fix (Typst math regression in Pandoc 3.10/texmath 0.13.1.x) #14987

Closed

Description

@tokoro10g

Summary

Quarto currently bundles a Pandoc version that appears affected by a Typst math spacing regression from texmath 0.13.1.x, fixed in texmath 0.13.2.1 (first fixed Pandoc release appears to be 3.10.2).

Repro

echo '$[x]^T \in$' | quarto pandoc -f markdown -t typst

Observed

On affected Pandoc versions, output loses spacing between T and in in Typst math (rendering as if tokens are joined).

Expected

A space should be preserved between T and in in generated Typst math.

Notes

  • This reproduces on Pandoc 3.10 (and likely 3.9.0.1–3.10.1).
  • Pandoc 3.8.3 bundled in Quarto 1.9.x is OK.
  • Pandoc 3.10.2+ appears fixed (includes texmath 0.13.2.1 fix: “Typst writer: Fix spacing after escaped expressions”).

Would you consider bumping Quarto’s bundled Pandoc to a fixed version?

Activity

  1. mcanouil commented on Oct 4, 2026

    @mcanouil
    Collaborator

    Thanks for taking the time to report this.
    Could you have a look at our contributing guidelines before opening the next one?
    Bug reports need to use the bug report form, which asks for details we rely on, such as the output of quarto check. Could you edit your report to comply with the template?
    AI assistants are welcome to help prepare an issue, but as the guidelines explain, we can only accept reports that a person has reviewed, tested and verified before opening them.

    Regarding dependency update.
    The policy is to update once per release. Here you are focusing on a single change, but newest version of Pandoc brings way more than that. All these changes needs to be taken into account.
    Additionally, Pandoc is not the only dependency, asking for dependencies update in an open source project is something to avoid as this increases time needed to address the report while there is a policy in place.

    Note that this was already reported in a GitHub discussion:

  2. added
    upstream
    on Oct 5, 2026
  3. cderv commented on Oct 5, 2026

    @cderv
    Member

    This will indeed be fixed when we'll update Pandoc for v1.11

  4. added this to the v1.11 milestone on Oct 5, 2026
  5. modified the milestones: v1.11, v1.12 on Oct 29, 2026
  6. cderv commented on Nov 13, 2026

    @cderv
    Member

    This is fixed by the Pandoc 3.13 update in #15320. $[x]^T \in A$ now gives ^T in in the .typ file and the PDF compiles, where Quarto 1.11.9 failed with unknown variable: Tin. It is in the v1.12.2 prerelease, and the changelog entry was added in #15356.

    Thanks for the report!

  7. tokoro10g commented on Nov 14, 2026

    @tokoro10g
    Author

    Thank you all!
    And yes, I'll make sure that I use the correct report format next time. Apologies!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenancepandocupstream

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions