Skip to content

Commit

Permalink
add markdown-it-katex
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Dec 16, 2024
1 parent 1afd56a commit 00484f2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"buffer": "latest",
"node-unrar-js": "latest",
"showdown-highlight": "latest",
"highlight.js": "latest"
"highlight.js": "latest",
"markdown-it-katex": "latest",
"katex": "latest"
},
"devDependencies": {
"@rollup/plugin-json": "latest",
Expand Down
2 changes: 2 additions & 0 deletions packages/markdown-it-katex.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import markdownitKatex from 'markdown-it-katex'
export default markdownitKatex
11 changes: 11 additions & 0 deletions src/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,15 @@ export default [
},
plugins,
},
{
input: 'packages/markdown-it-katex.mjs',
output: {
name: 'markdown_it_katex',
strict: false,
file: 'dist/markdown-it-katex.js',
format: 'iife',
sourcemap: true
},
plugins,
},
]

0 comments on commit 00484f2

Please sign in to comment.