Docusaurus equations smoke test still skipped; pandoc 3.12.1 reintroduced single-line display math

オープン
#15,396 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
46/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, markdown
領域
testing, tooling

調査の方向性

Read tests/docs/smoke-all/2024/01/18/docusaurus/equations.qmd and its existing skip message, then compare the expected multiline $$ output in equations.mdx.snapshot with the behavior described for Pandoc 3.12.1 and later. Update the skip message to reference jgm/pandoc#12082; when a bundled Pandoc release fixes the regression, re-enable the smoke test and confirm the snapshot matches, or regenerate it if upstream keeps the single-line output.

索引モデルが issue の本文から書いたものです。

説明

bug docusaurus math

Summary

The docusaurus equations smoke test (tests/docs/smoke-all/2024/01/18/docusaurus/equations.qmd) has been skipped since 5fcbb59c (2026-01-08) with the note "fixed in pandoc@8123be6, awaiting release". That fix shipped in Pandoc 3.9, but the test was never re-enabled — and Pandoc 3.12.1 (now bundled as 3.13 via #15320) has reintroduced the same single-line display-math output that caused the breakage, this time on the reader side.

Details

  • Original episode: Pandoc 3.7 collapsed multi-line $$…$$ to a single line in Markdown output (writer side). Reported in jgm/pandoc#11384, fixed in Pandoc 3.9 (jgm/pandoc@8123be65). We skipped the equations test in the meantime (5fcbb59c).
  • Regression: Pandoc 3.12.1 (3.12.0 unaffected) — jgm/pandoc@c248f880 ("Math: respect TeX groups and comments", jgm/pandoc#11887) unified display math into mathWith, which applies trimMath and strips the surrounding newlines the reader previously preserved. Undocumented in the changelog; still present in 3.13 and 3.14.
  • Already reported upstream: jgm/pandoc#12082. Maintainers agree it is a regression; a reader-side fix restoring verbatim whitespace capture for display math is the likely resolution.

So: re-enabling the test today would fail exactly as it did under Pandoc 3.7, and the skip message is stale ("awaiting release" — the referenced fix was released and later regressed).

Action items

  1. Update the skip message in tests/docs/smoke-all/2024/01/18/docusaurus/equations.qmd to reference jgm/pandoc#12082.
  2. Once a pandoc release with the reader-side fix is bundled: un-skip the test; the existing equations.mdx.snapshot (multi-line $$) should match as-is.
  3. If upstream instead declares the trim intentional: regenerate the snapshot for the single-line form and re-enable the test.

Related

  • jgm/pandoc#12082 — upstream regression report
  • jgm/pandoc#11384 — original (3.7, writer-side) report
  • #15320 — bundled Pandoc 3.10 → 3.13
  • #13853 — docusaurus html-math-method: webtex ignored (math emitted as $$..$$), which is why this output path matters
  • quarto-dev/quarto VS Code extension roundtrip snapshots hit the same change (failing job; precedent quarto-dev/quarto#1062)
主要言語
JavaScript
スター
6.2k
フォーク
492
平均マージ
15時間 15分
マージ済み PR(30日)
94

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/quarto-cli のほかの issue

quarto-dev/quarto-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。