Skip to content

Extension md_in_html does not recognize tags with hyphens #1246

Open
@igordsm

Description

@igordsm

Web components are custom HTML components that are required to have - in their names. This breaks current HTML handling since these elements are not considered. IMHO they should be treated the same as <div> ("block" elements, if I'm not mistaken).

The following was tested in current main with the extension md_in_html active.

input

<a-b>

asdf

</a-b>

output:

<p><a-b></p>
<p>asdf</p>
<p></a-b></p>

expected:

<a-b>
<p>asdf</p>
</a-b>

I went through the code and might know how to add this, but I would like the maintainers' input before proceeding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedConfirmed bug report or approved feature request.extensionRelated to one or more of the included extensions.featureFeature request.someday-maybeApproved low priority request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions