Skip to content

avoid wrapping custom elements in <p> tags #8

Description

@thescientist13

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.

Metadata

Metadata

Assignees

Labels

0.2.0documentationImprovements or additions to documentationenhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions