-
-
Notifications
You must be signed in to change notification settings - Fork 916
Closed
Labels
👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on🙋 no/questionThis does not need any changesThis does not need any changes
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
rehypeExternalLinks
Steps to reproduce
- Install
react-markdown
version 10.0.1 or later - Use the following code to reproduce the error:
<Markdown
rehypePlugins={[
rehypeRaw,
rehypeSanitize,
rehypeExternalLinks({ target: "_blank" }),
]}
>
{"some text"}
</Markdown>
Actual behavior
Typeerror occurs in UI
Uncaught TypeError: Cannot use 'in' operator to search for 'children' in undefined
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
Metadata
Metadata
Assignees
Labels
👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on🙋 no/questionThis does not need any changesThis does not need any changes