Skip to content

Support omitting self-closing tags of void elements like <meta>Β #95

@matthew-puku

Description

@matthew-puku

Hey there,

This project is awesome!

Proposal

I wondered if it'd be worthwhile to make void elements not self-closing.

For example, <br>s might output as:

<p>
  so much depends<br>
  upon<br>
  <br>
  a red wheel<br>
  barrow<br>
  <br>
  glazed with rain<br>
  water<br>
  <br>
  beside the white<br>
  chickens.
</p>

Currently, the output looks like this:

<p>
  so much depends<br />
  upon<br />
  <br />
  a red wheel<br />
  barrow<br />
  <br />
  glazed with rain<br />
  water<br />
  <br />
  beside the white<br />
  chickens.
</p>

But why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions