-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from marp-team/mathjax-by-default
Change the default math library from `katex` to `mathjax`
- Loading branch information
Showing
7 changed files
with
202 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Marp math option with KaTeX (default) injects KaTeX css with replacing web font URL to CDN: katex-css-cdn 1`] = ` | ||
exports[`Marp math option with KaTeX injects KaTeX css with replacing web font URL to CDN: katex-css-cdn 1`] = ` | ||
Array [ | ||
"url('https://cdn.jsdelivr.net/npm/[email protected]/dist/fonts/KaTeX_AMS-Regular.woff2') format(\\"woff2\\"),url('https://cdn.jsdelivr.net/npm/[email protected]/dist/fonts/KaTeX_AMS-Regular.woff') format(\\"woff\\"),url('https://cdn.jsdelivr.net/npm/[email protected]/dist/fonts/KaTeX_AMS-Regular.ttf') format(\\"truetype\\")", | ||
"url('https://cdn.jsdelivr.net/npm/[email protected]/dist/fonts/KaTeX_Caligraphic-Bold.woff2') format(\\"woff2\\"),url('https://cdn.jsdelivr.net/npm/[email protected]/dist/fonts/KaTeX_Caligraphic-Bold.woff') format(\\"woff\\"),url('https://cdn.jsdelivr.net/npm/[email protected]/dist/fonts/KaTeX_Caligraphic-Bold.ttf') format(\\"truetype\\")", | ||
|
@@ -25,7 +25,7 @@ Array [ | |
] | ||
`; | ||
|
||
exports[`Marp math option with KaTeX (default) with katexFontPath as false does not replace KaTeX web font URL: katex-css-noops 1`] = ` | ||
exports[`Marp math option with KaTeX with katexFontPath as false does not replace KaTeX web font URL: katex-css-noops 1`] = ` | ||
Array [ | ||
"url(fonts/KaTeX_AMS-Regular.woff2) format(\\"woff2\\"),url(fonts/KaTeX_AMS-Regular.woff) format(\\"woff\\"),url(fonts/KaTeX_AMS-Regular.ttf) format(\\"truetype\\")", | ||
"url(fonts/KaTeX_Caligraphic-Bold.woff2) format(\\"woff2\\"),url(fonts/KaTeX_Caligraphic-Bold.woff) format(\\"woff\\"),url(fonts/KaTeX_Caligraphic-Bold.ttf) format(\\"truetype\\")", | ||
|
@@ -50,7 +50,7 @@ Array [ | |
] | ||
`; | ||
|
||
exports[`Marp math option with KaTeX (default) with katexFontPath replaces KaTeX web font URL with specified path: katex-css-replace 1`] = ` | ||
exports[`Marp math option with KaTeX with katexFontPath replaces KaTeX web font URL with specified path: katex-css-replace 1`] = ` | ||
Array [ | ||
"url('/resources/fonts/KaTeX_AMS-Regular.woff2') format(\\"woff2\\"),url('/resources/fonts/KaTeX_AMS-Regular.woff') format(\\"woff\\"),url('/resources/fonts/KaTeX_AMS-Regular.ttf') format(\\"truetype\\")", | ||
"url('/resources/fonts/KaTeX_Caligraphic-Bold.woff2') format(\\"woff2\\"),url('/resources/fonts/KaTeX_Caligraphic-Bold.woff') format(\\"woff\\"),url('/resources/fonts/KaTeX_Caligraphic-Bold.ttf') format(\\"truetype\\")", | ||
|
Oops, something went wrong.