Skip to content

html tags are autoclosed within a single html file #73

@kmturley

Description

@kmturley

If I have an html file it will correctly auto close attributes

<body>

becomes:

<body></body>

However I want to have a header include such as:

includes/header.html:

<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Page title</title>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
</head>
<body>

includes/footer.html

</body>
</html>

But this is outputted as:

<html lang=en><head><meta charset=utf-8><title>Page title</title><meta name=viewport content="width=device-width,initial-scale=1"></head><body></body></html>

And it's auto closing the body/html tags. Can we add an option to override this behavior?

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