Skip to content

Commit 11375c0

Browse files
committed
fix: use consistent equation numbering for html-math-method and html-math-method.method (MathJax and KaTeX)
1 parent 26fa297 commit 11375c0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

news/changelog-1.8.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ All changes included in 1.8:
1616
- ([#12259](https://github.com/quarto-dev/quarto-cli/issues/12259)): Fix conflict between `html-math-method: katex` and crossref popups (author: @benkeks).
1717
- ([#12734](https://github.com/quarto-dev/quarto-cli/issues/12734)): `highlight-style` now correctly supports setting a different `light` and `dark`.
1818
- ([#12747](https://github.com/quarto-dev/quarto-cli/issues/12747)): Ensure `th` elements are properly restored when Quarto's HTML table processing is happening.
19+
- ([#12766](https://github.com/quarto-dev/quarto-cli/issues/12766)): Use consistent equation numbering for `html-math-method` and `html-math-method.method` (MathJax and KaTeX)
1920

2021
### `revealjs`
2122

src/resources/filters/crossref/equations.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ function process_equations(blockEl)
6363
else
6464
local eqNumber = eqQquad
6565
local mathMethod = param("html-math-method", nil)
66+
if type(mathMethod) == "table" and mathMethod["method"] then
67+
mathMethod = mathMethod["method"]
68+
end
6669
if _quarto.format.isHtmlOutput() and (mathMethod == "mathjax" or mathMethod == "katex") then
6770
eqNumber = eqTag
6871
end

0 commit comments

Comments
 (0)