Skip to content

More configuration options for html-self-closing #837

Closed
@jrmajor

Description

@jrmajor

Description

I would like to be able to configure html-self-closing so that it aways produces most compact, yet correct tags. That would mean preferring void > self-closing > separate closing tag, but only within spec limitations.

I was able to accomplish that for HTML/Svelte with { void: 'never', normal: 'never' } settings (example output: <img><div></div><Component/>), but now it changes SVG tags from <path/> to <path></path>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions