Skip to content

🐛 BUG: Nesting inside <p> tags #432

@gloopsies

Description

@gloopsies

What version of @astrojs/compiler are you using?

1.0.0-beta.47

What package manager are you using?

pnpm

What operating system are you using?

Fedora Linux

Describe the Bug

Currently compiler doesn't allow nesting <table> and <p> elements inside other <p> elements as per HTML standard. But instead of showing a warning or error it just renders unexpected html:

<p>
    <table />
</p>

gets rendered as:

<p></p>
<table />
<p></p>

Link to Minimal Reproducible Example

N / A

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedPlease help with this issue!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions