Skip to content

Commit 6bac572

Browse files
committed
Use harden, last in the list
fixes #29
1 parent b82e4c1 commit 6bac572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harden-react-markdown/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export default function hardenReactMarkdown(
3939
{...props}
4040
urlTransform={customUrlTransform}
4141
rehypePlugins={[
42+
...(rehypePlugins ?? []),
4243
[
4344
harden,
4445
{ defaultOrigin, allowedLinkPrefixes, allowedImagePrefixes, allowDataImages },
4546
],
46-
...(rehypePlugins ?? []),
4747
]}
4848
/>
4949
);

0 commit comments

Comments
 (0)