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/katex.ts b/src/markdown-it/katex.ts new file mode 100644 index 00000000..3e150088 --- /dev/null +++ b/src/markdown-it/katex.ts @@ -0,0 +1,3 @@ +import katex from 'markdown-it-katex'; + +export default katex; 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..7e2574db --- /dev/null +++ b/src/markdown-it/readme.md @@ -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) 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;