Skip to content

Commit d3a6df5

Browse files
claude: Fix CI test failures from typst-books changes
- Remove invalid subrefnumbering parameter from quarto_super calls in margin layout code (quarto_super doesn't accept this param) - Update equations-alt.qmd test to expect quarto-equation-numbering function instead of literal "(1)" string Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f8c4d32 commit d3a6df5

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎src/resources/filters/customnodes/floatreftarget.lua‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,6 @@ end, function(float)
10181018
{"label", pandoc.RawInline("typst", "<" .. float.identifier .. ">")},
10191019
{"position", pandoc.RawInline("typst", caption_location)},
10201020
{"supplement", supplement},
1021-
{"subrefnumbering", "1a"},
10221021
{"subcapnumbering", "(a)"},
10231022
_quarto.modules.typst.as_typst_content(content)
10241023
}, false))

‎tests/docs/smoke-all/crossrefs/equations/equations-alt.qmd‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ _quarto:
3939
typst:
4040
ensureTypstFileRegexMatches:
4141
-
42-
- "#math\\.equation\\(block: true, numbering: \"\\(1\\)\", \\[ \\$ E = m c\\^2 \\$ \\]\\)<eq-display-math>"
43-
- "#math\\.equation\\(block: true, numbering: \"\\(1\\)\", alt: \"Einsteins mass-energy equivalence equation\", \\[ \\$ E = m c\\^2 \\$ \\]\\)<eq-display-alt>"
44-
- "#math\\.equation\\(block: true, numbering: \"\\(1\\)\", alt: \"Einsteins mass-energy equivalence equation\", \\[ \\$ E = m c\\^2 \\$ \\]\\)<eq-display-alt-spaces>"
45-
- "#math\\.equation\\(block: true, numbering: \"\\(1\\)\", alt: \"Newton's second law of motion\", \\[ \\$ F = m a \\$ \\]\\)<eq-single-quote>"
46-
- "#math\\.equation\\(block: true, numbering: \"\\(1\\)\", alt: \"The \\\\\"Pythagorean\\\\\" theorem\", \\[ \\$ a\\^2 \\+ b\\^2 = c\\^2 \\$ \\]\\)<eq-double-quote>"
47-
- "#math\\.equation\\(block: true, numbering: \"\\(1\\)\", alt: \"This is using \\\\\"quotes\\\\\" but I'm sure it works\", \\[ \\$ x \\+ y = z \\$ \\]\\)<eq-mixed-quotes>"
48-
- "#math\\.equation\\(block: true, numbering: \"\\(1\\)\", alt: \"This is using 'single quotes' around the \\\\\"quotes\\\\\" but I'm sure it works\", \\[ \\$ x \\+ y = z \\$ \\]\\)<eq-single-quote-alt>"
42+
- "#math\\.equation\\(block: true, numbering: quarto-equation-numbering, \\[ \\$ E = m c\\^2 \\$ \\]\\)<eq-display-math>"
43+
- "#math\\.equation\\(block: true, numbering: quarto-equation-numbering, alt: \"Einsteins mass-energy equivalence equation\", \\[ \\$ E = m c\\^2 \\$ \\]\\)<eq-display-alt>"
44+
- "#math\\.equation\\(block: true, numbering: quarto-equation-numbering, alt: \"Einsteins mass-energy equivalence equation\", \\[ \\$ E = m c\\^2 \\$ \\]\\)<eq-display-alt-spaces>"
45+
- "#math\\.equation\\(block: true, numbering: quarto-equation-numbering, alt: \"Newton's second law of motion\", \\[ \\$ F = m a \\$ \\]\\)<eq-single-quote>"
46+
- "#math\\.equation\\(block: true, numbering: quarto-equation-numbering, alt: \"The \\\\\"Pythagorean\\\\\" theorem\", \\[ \\$ a\\^2 \\+ b\\^2 = c\\^2 \\$ \\]\\)<eq-double-quote>"
47+
- "#math\\.equation\\(block: true, numbering: quarto-equation-numbering, alt: \"This is using \\\\\"quotes\\\\\" but I'm sure it works\", \\[ \\$ x \\+ y = z \\$ \\]\\)<eq-mixed-quotes>"
48+
- "#math\\.equation\\(block: true, numbering: quarto-equation-numbering, alt: \"This is using 'single quotes' around the \\\\\"quotes\\\\\" but I'm sure it works\", \\[ \\$ x \\+ y = z \\$ \\]\\)<eq-single-quote-alt>"
4949
- []
5050
---
5151

0 commit comments

Comments
 (0)