<Markdown
rehypePlugins={[
rehypeRaw,
rehypeSanitize,
rehypeExternalLinks({ target: "_blank" }),
]}
>
{"some text"}
</Markdown>
Uncaught TypeError: Cannot use 'in' operator to search for 'children' in undefined
Expecting a text with attached associated link to be visible and open in a new tab when clicked
Initial checklist
Affected package
rehypeExternalLinks
Steps to reproduce
react-markdownversion 10.0.1 or laterActual behavior
Typeerror occurs in UI
Expected behavior
Expecting a text with attached associated link to be visible and open in a new tab when clicked
Runtime
Node.js 22.14.0
Package manager
yarn 4.9.2
Operating system
Mac OS Sonoma 14.6
Build and bundle tools
webpack