From 82a457b5482931b3fcf369dd2ba680bc7e277b64 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 18 Aug 2025 16:38:34 -0700 Subject: [PATCH] Add a test for multiple footnotes in a row These were previously broken in older versions of pulldown-cmark. --- .../markdown/footnotes/expected/footnotes.html | 10 ++++++++++ tests/testsuite/markdown/footnotes/src/footnotes.md | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/tests/testsuite/markdown/footnotes/expected/footnotes.html b/tests/testsuite/markdown/footnotes/expected/footnotes.html index 8904cb06..65624a62 100644 --- a/tests/testsuite/markdown/footnotes/expected/footnotes.html +++ b/tests/testsuite/markdown/footnotes/expected/footnotes.html @@ -7,6 +7,7 @@

Testing when referring to something earlier.6

Footnote that is defined multiple times.7

And another8 that references the duplicate again.7

+

Multiple footnotes in a row.91011


  1. This is a footnote. ↩2

    @@ -43,4 +44,13 @@ With a reference inside.

    Footnote between duplicates.

  2. +
  3. +

    Footnote 1

    +
  4. +
  5. +

    Footnote 2

    +
  6. +
  7. +

    Footnote 3

    +
\ No newline at end of file diff --git a/tests/testsuite/markdown/footnotes/src/footnotes.md b/tests/testsuite/markdown/footnotes/src/footnotes.md index d7719a74..bdc30f55 100644 --- a/tests/testsuite/markdown/footnotes/src/footnotes.md +++ b/tests/testsuite/markdown/footnotes/src/footnotes.md @@ -45,3 +45,9 @@ And another[^in-between] that references the duplicate again.[^multiple-definiti [^in-between]: Footnote between duplicates. [^multiple-definitions]: This is the second definition of the footnote with tag multiple-definitions + +Multiple footnotes in a row.[^a][^b][^c] + +[^a]: Footnote 1 +[^b]: Footnote 2 +[^c]: Footnote 3