diff --git a/src/markdown-render.tsx b/src/markdown-render.tsx index 3c68b48..3f37c87 100644 --- a/src/markdown-render.tsx +++ b/src/markdown-render.tsx @@ -39,7 +39,7 @@ const MarkdownRender = (props: MarkDownRenderProps) => { ...props.renderers, }, plugins: [RemarkMathPlugin], - astPlugins: [AttachmentTransformer(props.attachments), ...props.astPlugins], + astPlugins: [AttachmentTransformer(props.attachments)].concat(props.astPlugins ? props.astPlugins : []), }; return ; };