From 220113dacdd274c9edd4fe108c837c0d4c51950e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A2=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BD=D1=86=D0=B5=D0=B2?= Date: Thu, 25 Jan 2024 15:27:13 +0100 Subject: [PATCH] feat: add re-export of markdown-it plugins --- package.json | 8 ++++++++ src/markdown-it/color.ts | 3 +++ src/markdown-it/ins.ts | 3 +++ src/markdown-it/mark.ts | 3 +++ src/markdown-it/readme.md | 8 ++++++++ src/markdown-it/sub.ts | 3 +++ 6 files changed, 28 insertions(+) create mode 100644 src/markdown-it/color.ts create mode 100644 src/markdown-it/ins.ts create mode 100644 src/markdown-it/mark.ts create mode 100644 src/markdown-it/readme.md create mode 100644 src/markdown-it/sub.ts diff --git a/package.json b/package.json index 802a873c..8514fdb6 100644 --- a/package.json +++ b/package.json @@ -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", @@ -63,6 +68,9 @@ ], "pm/*": [ "./build/esm/pm/*" + ], + "markdown-it/*": [ + "./build/esm/markdown-it/*" ] } }, diff --git a/src/markdown-it/color.ts b/src/markdown-it/color.ts new file mode 100644 index 00000000..2ff3bc2a --- /dev/null +++ b/src/markdown-it/color.ts @@ -0,0 +1,3 @@ +import color from 'markdown-it-color'; + +export default color; diff --git a/src/markdown-it/ins.ts b/src/markdown-it/ins.ts new file mode 100644 index 00000000..0fa0f78a --- /dev/null +++ b/src/markdown-it/ins.ts @@ -0,0 +1,3 @@ +import ins from 'markdown-it-ins'; + +export default ins; diff --git a/src/markdown-it/mark.ts b/src/markdown-it/mark.ts new file mode 100644 index 00000000..d3485a78 --- /dev/null +++ b/src/markdown-it/mark.ts @@ -0,0 +1,3 @@ +import mark from 'markdown-it-mark'; + +export default mark; diff --git a/src/markdown-it/readme.md b/src/markdown-it/readme.md new file mode 100644 index 00000000..cfb9f088 --- /dev/null +++ b/src/markdown-it/readme.md @@ -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) diff --git a/src/markdown-it/sub.ts b/src/markdown-it/sub.ts new file mode 100644 index 00000000..55d365f9 --- /dev/null +++ b/src/markdown-it/sub.ts @@ -0,0 +1,3 @@ +import sub from 'markdown-it-sub'; + +export default sub;