Skip to content

Commit

Permalink
fix: fix rehypePlugin issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 3, 2023
1 parent 665de0d commit 4c14a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/markdown-to-html/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function markdown(markdownStr: string = '', options: Options = {}) {
const { filterPlugins, showLineNumbers = true, katexOptions = {} } = options;
const remarkPlugins: PluggableList = [remarkGfm, ...(options.remarkPlugins || [])];
const rehypePlugins: PluggableList = [
rehypeRaw,
rehypeVideo,
[rehypePrism, { ignoreMissing: true, showLineNumbers }],
[rehypeAttrs, { properties: 'attr', codeBlockParames: false }],
Expand Down Expand Up @@ -90,7 +91,6 @@ function markdown(markdownStr: string = '', options: Options = {}) {
},
},
],
rehypeRaw,
[rehypeKatex, katexOptions],
stringify,
];
Expand Down

0 comments on commit 4c14a20

Please sign in to comment.