Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add re-export of markdown-it plugins #179

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/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;
8 changes: 8 additions & 0 deletions src/markdown-it/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## 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-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;
Loading