Skip to content

render multiple line breaks with rehype-raw incorrect #917

@mortalYoung

Description

@mortalYoung

Initial checklist

Affected package

rehype-raw

Steps to reproduce

Use Playground to reproduce.

Check use rehype-raw

text:

<bold style="color:red;">
hello

world
</bold>

This should be normal

Actual behavior

<bold style="color: red;">
hello
<p>world
</p>
<p>This should be normal</p></bold>

Expected behavior

<bold style="color: red;">
hello
<p>world
</p>
</bold>
<p>This should be normal</p>

Runtime

chrome

Package manager

pnpm

Operating system

macOS

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🤷 no/invalidThis cannot be acted upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions