-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
23 changed files
with
303 additions
and
278 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 |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
"Marc-Antoine Ouimet <[email protected]>", | ||
"Rongjian Zhang <[email protected]>" | ||
], | ||
"type": "module", | ||
"devDependencies": { | ||
"c8": "^7.0.0", | ||
"dtslint": "^4.0.0", | ||
|
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 |
---|---|---|
|
@@ -29,12 +29,12 @@ | |
"Junyoung Choi <[email protected]> (https://rokt33r.github.io)", | ||
"Titus Wormer <[email protected]> (https://wooorm.com)" | ||
], | ||
"sideEffects": false, | ||
"type": "module", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"types/index.d.ts" | ||
"index.js" | ||
], | ||
"main": "index.js", | ||
"types": "types/index.d.ts", | ||
"dependencies": { | ||
"@types/katex": "^0.11.0", | ||
"hast-util-to-text": "^2.0.0", | ||
|
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
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 +1,3 @@ | ||
module.exports = require('./svg') | ||
import rehypeMathJaxSvg from './svg.js' | ||
|
||
export default rehypeMathJaxSvg |
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,2 +1,3 @@ | ||
module.exports = | ||
require('mathjax-full/js/adaptors/browserAdaptor').browserAdaptor | ||
import {browserAdaptor} from 'mathjax-full/js/adaptors/browserAdaptor.js' | ||
|
||
export {browserAdaptor} |
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,8 +1,6 @@ | ||
const JsDom = require('jsdom').JSDOM | ||
const adaptor = require('mathjax-full/js/adaptors/jsdomAdaptor').jsdomAdaptor | ||
import {JSDOM} from 'jsdom' | ||
import {jsdomAdaptor} from 'mathjax-full/js/adaptors/jsdomAdaptor.js' | ||
|
||
module.exports = createAdaptor | ||
|
||
function createAdaptor() { | ||
return adaptor(JsDom) | ||
export function createAdaptor() { | ||
return jsdomAdaptor(JSDOM) | ||
} |
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,8 +1,6 @@ | ||
const Tex = require('mathjax-full/js/input/tex').TeX | ||
const packages = require('mathjax-full/js/input/tex/AllPackages').AllPackages | ||
import {TeX} from 'mathjax-full/js/input/tex.js' | ||
import {AllPackages} from 'mathjax-full/js/input/tex/AllPackages.js' | ||
|
||
module.exports = createInput | ||
|
||
function createInput(options) { | ||
return new Tex(Object.assign({packages: packages}, options)) | ||
export function createInput(options) { | ||
return new TeX(Object.assign({packages: AllPackages}, 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,7 +1,5 @@ | ||
const CHtml = require('mathjax-full/js/output/chtml').CHTML | ||
import {CHTML} from 'mathjax-full/js/output/chtml.js' | ||
|
||
module.exports = createOutput | ||
|
||
function createOutput(options) { | ||
return new CHtml(options) | ||
export function createOutput(options) { | ||
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,7 +1,5 @@ | ||
const Svg = require('mathjax-full/js/output/svg').SVG | ||
import {SVG} from 'mathjax-full/js/output/svg.js' | ||
|
||
module.exports = createOutput | ||
|
||
function createOutput(options) { | ||
return new Svg(options) | ||
export function createOutput(options) { | ||
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
Oops, something went wrong.