Skip to content

Commit b9457f2

Browse files
authored
Merge pull request #13101 from quarto-dev/revealjs/math/use-jsdeliver
Use cdn.jsdeliver.net for Revealjs mathjax deps
2 parents 2f24776 + 1df5c34 commit b9457f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/changelog-1.8.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ All changes included in 1.8:
3535

3636
- ([#12598](https://github.com/quarto-dev/quarto-cli/pull/12598)): Ensure `.fragment` on an image with caption applies to whole figure.
3737
- ([#12716](https://github.com/quarto-dev/quarto-cli/issues/12716)): Correctly resolve `"brand"` set in `theme` configuration for document in subdirectory from project root.
38+
- Use `cdn.jsdelivr.net` for mathjax dependencies to ensure consistent CDN usage across formats. Previously, `cdnjs.cloudflare.com` was used for `revealjs` mathjax dependencies, while `cdn.jsdelivr.net` was used for html format.
3839

3940
### `docx`
4041

src/format/reveal/format-reveal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function revealjsFormat() {
126126
[kHtmlMathMethod]: {
127127
method: "mathjax",
128128
url:
129-
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-AMS_HTML-full",
129+
"https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?config=TeX-AMS_HTML-full",
130130
},
131131
[kSlideLevel]: 2,
132132
},

0 commit comments

Comments
 (0)