Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid wrapping custom elements in <p> tags #8

Open
thescientist13 opened this issue Jun 21, 2022 · 0 comments
Open

avoid wrapping custom elements in <p> tags #8

thescientist13 opened this issue Jun 21, 2022 · 0 comments
Labels
help wanted Extra attention is needed question Further information is requested
Milestone

Comments

@thescientist13
Copy link
Member

thescientist13 commented Jun 21, 2022

It looks like the output in all markdown is always wrapped in a <p> tag.

<h2>11ty + WCC Demo</h2>
<p><x-greeting>
      <template shadowroot="open">
        
  <p>Hello from the greeting component!</p>

      </template>
    </x-greeting></p>

Screen Shot 2022-06-20 at 5 30 38 PM

Or with innerHTML it breaks apart even more. 🤔
Screen Shot 2022-06-20 at 8 57 49 PM

Had this same issue with Greenwood and so would like to see if there is a proper way to avoid this.

@thescientist13 thescientist13 added help wanted Extra attention is needed question Further information is requested labels Jun 21, 2022
@thescientist13 thescientist13 added this to the MVP milestone Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant