-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
32 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,5 @@ const rehypeMathJaxBrowser = | |
} | ||
) | ||
) | ||
|
||
export default rehypeMathJaxBrowser |
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,3 +1,3 @@ | ||
import {browserAdaptor} from 'mathjax-full/js/adaptors/browserAdaptor.js' | ||
|
||
export {browserAdaptor} | ||
export {browserAdaptor as createAdaptor} |
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,9 +1,14 @@ | ||
/** | ||
* @typedef {import('mathjax-full/js/util/Options.js').OptionList} OptionList | ||
* @typedef {import('mathjax-full/js/output/chtml.js').CHTML<HTMLElement, Text, Document>} CHTML_ | ||
*/ | ||
|
||
import {CHTML} from 'mathjax-full/js/output/chtml.js' | ||
|
||
/** | ||
* @param {unknown} options | ||
* @param {OptionList} options | ||
* @returns {CHTML_} | ||
*/ | ||
export function createOutputChtml(options) { | ||
// @ts-expect-error: assume options work (mathjax types are not exported) | ||
return new CHTML(options) | ||
} |
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,9 +1,14 @@ | ||
/** | ||
* @typedef {import('mathjax-full/js/util/Options.js').OptionList} OptionList | ||
* @typedef {import('mathjax-full/js/output/svg.js').SVG<HTMLElement, Text, Document>} SVG_ | ||
*/ | ||
|
||
import {SVG} from 'mathjax-full/js/output/svg.js' | ||
|
||
/** | ||
* @param {unknown} options | ||
* @param {OptionList} options | ||
* @returns {SVG_} | ||
*/ | ||
export function createOutputSvg(options) { | ||
// @ts-expect-error: assume options work (mathjax types are not exported) | ||
return new SVG(options) | ||
} |
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