Skip to content

Commit

Permalink
fix: update astPlugins array merge logic
Browse files Browse the repository at this point in the history
  • Loading branch information
captainsafia committed Jun 9, 2021
1 parent 56bb44d commit f4ea1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/markdown-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ReactMarkdown {...newProps} />;
};
Expand Down

0 comments on commit f4ea1af

Please sign in to comment.