Skip to content

Commit

Permalink
feat: add re-export of markdown-it plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
smsochneg committed Jan 25, 2024
1 parent 3a62b9b commit dfe84bb
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
"require": "./build/cjs/pm/*",
"import": "./build/esm/pm/*"
},
"./markdown-it/*": {
"types": "./build/esm/markdown-it/*",
"require": "./build/cjs/markdown-it/*",
"import": "./build/esm/markdown-it/*"
},
"./styles/*": "./build/esm/styles/*"
},
"main": "build/cjs/index.js",
Expand All @@ -63,6 +68,9 @@
],
"pm/*": [
"./build/esm/pm/*"
],
"markdown-it/*": [
"./build/esm/markdown-it/*"
]
}
},
Expand Down
3 changes: 3 additions & 0 deletions src/markdown-it/color.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import color from 'markdown-it-color';

export default color;
3 changes: 3 additions & 0 deletions src/markdown-it/ins.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ins from 'markdown-it-ins';

export default ins;
3 changes: 3 additions & 0 deletions src/markdown-it/katex.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import katex from 'markdown-it-katex';

export default katex;
3 changes: 3 additions & 0 deletions src/markdown-it/mark.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import mark from 'markdown-it-mark';

export default mark;
9 changes: 9 additions & 0 deletions src/markdown-it/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Markdown-it submodule

### Re-exports Markdown-it plugins:

- [markdown-it-color](https://github.com/nkjmsss/markdown-it-color)
- [markdown-it-ins](https://github.com/markdown-it/markdown-it-ins)
- [markdown-it-katex](https://github.com/waylonflinn/markdown-it-katex)
- [markdown-it-mark](https://github.com/markdown-it/markdown-it-mark)
- [markdown-it-sub](https://github.com/markdown-it/markdown-it-sub)
3 changes: 3 additions & 0 deletions src/markdown-it/sub.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import sub from 'markdown-it-sub';

export default sub;

0 comments on commit dfe84bb

Please sign in to comment.