Skip to content

custom html component render in a wrong way #889

@byk11

Description

@byk11

Initial checklist

Affected package

"react-markdown": "^8.0.5" "rehype-raw": "^7.0.0",

Steps to reproduce

Image The position of the think component in the DOM tree is incorrect. How could I fix it, help please

Actual behavior

Image The position of the think component in the DOM tree is incorrect. How could I fix it, help please

Expected behavior

think about something,think about something

think about something,think about something

think component only wrap his children

Runtime

https://remarkjs.github.io/react-markdown/#html-in-markdown

Package manager

pnpm@8

Operating system

mac

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🙋 no/questionThis does not need any changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions