-
Notifications
You must be signed in to change notification settings - Fork 0
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
8 changed files
with
476 additions
and
1,603 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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
{ | ||
"name": "@paperist/remark-math", | ||
"description": "wooorm/remark plugin for math likes LaTeX / MathJax", | ||
"author": "3846masa <[email protected]>", | ||
"license": "MIT", | ||
"author": "3846masa <[email protected]>", | ||
"homepage": "https://github.com/Paperist/remark-math#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Paperist/remark-math.git" | ||
}, | ||
"repository": "git+https://github.com/Paperist/remark-math.git", | ||
"bugs": { | ||
"url": "https://github.com/Paperist/remark-math/issues" | ||
}, | ||
|
@@ -16,54 +13,37 @@ | |
"files": [ | ||
"lib" | ||
], | ||
"directories": { | ||
"lib": "lib" | ||
}, | ||
"scripts": { | ||
"prebuild": "npm-run-all prebuild:clean prebuild:mkdir", | ||
"prebuild": "npm-run-all clean prebuild:mkdir", | ||
"build": "npm-run-all -p build:*", | ||
"postbuild": "npm-run-all -p postbuild:*", | ||
"prebuild:clean": "npm run clean", | ||
"postbuild:copy-d.ts": "cpx \"src/**/*.d.ts\" lib", | ||
"prebuild:mkdir": "mkdirp lib/peg", | ||
"build:peg": "npm-run-all -p build:peg:*", | ||
"build:peg:inlineMath": "pegjs -o ./lib/peg/inlineMath.js ./src/peg/inlineMath.pegjs", | ||
"build:peg:math": "pegjs -o ./lib/peg/math.js ./src/peg/math.pegjs", | ||
"build:tsc": "tsc", | ||
"clean": "rimraf lib", | ||
"precommit": "lint-staged" | ||
"clean": "rimraf lib" | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"remark-parse": "^4.0.0" | ||
"types": "lib/index.d.ts", | ||
"dependencies": { | ||
"@types/mdast": "^3.0.2", | ||
"@types/unist": "^2.0.3", | ||
"remark-parse": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
"@paperist/types-remark": "^0.1.1", | ||
"@types/node": "^8.0.19", | ||
"@types/pegjs": "^0.10.0", | ||
"cpx": "^1.5.0", | ||
"husky": "^0.14.3", | ||
"lint-staged": "^4.0.2", | ||
"@types/node": "^12.6.8", | ||
"@types/pegjs": "^0.10.1", | ||
"mkdirp": "^0.5.1", | ||
"npm-run-all": "^4.0.2", | ||
"npm-run-all": "^4.1.5", | ||
"pegjs": "^0.10.0", | ||
"prettier-package-json": "^1.4.0", | ||
"remark-parse": "^4.0.0", | ||
"rimraf": "^2.6.1", | ||
"typescript": "^2.4.2", | ||
"unified": "^6.1.5" | ||
"rimraf": "^2.6.3", | ||
"typescript": "^3.5.3", | ||
"unified": "^8.3.2" | ||
}, | ||
"keywords": [ | ||
"katex", | ||
"markdown", | ||
"mathjax", | ||
"remark" | ||
], | ||
"lint-staged": { | ||
"package.json": [ | ||
"prettier-package-json --write", | ||
"git add" | ||
] | ||
}, | ||
"types": "lib/index.d.ts" | ||
] | ||
} |
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,15 +1,13 @@ | ||
import { UNIST } from 'unist'; | ||
import * as mdast from 'mdast'; | ||
|
||
declare module 'mdast' { | ||
export namespace MDAST { | ||
interface Math extends UNIST.Text { | ||
type: 'math'; | ||
math: string; | ||
} | ||
export interface Math extends mdast.Literal { | ||
type: 'math'; | ||
math: string; | ||
} | ||
|
||
interface InlineMath extends UNIST.Text { | ||
type: 'inlineMath'; | ||
math: string; | ||
} | ||
export interface InlineMath extends mdast.Literal { | ||
type: 'inlineMath'; | ||
math: string; | ||
} | ||
} |
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,3 +1,3 @@ | ||
import { UNIST } from 'unist'; | ||
import * as unist from 'unist'; | ||
|
||
export default function transformer(_tree: UNIST.Node, _vfile: any) {} | ||
export default function transformer(_tree: unist.Node, _vfile: any) {} |
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.