8000 Lost closing tags when used with KaTeX · Issue #181 · wilsonzlin/minify-html · GitHub
[go: up one dir, main page]

Skip to content
8000

Lost closing tags when used with KaTeX #181

Open

Description

@D-Sketon

I tried to use minify-html in html containing KaTeX, but the closing tags are lost after compression, resulting in rendering error
Since KaTeX generates MathML, does minify-html support MathML? Or do I need to do any other configurations?
Here is the reproduction code

const { minify } = require("@minify-html/node");
const str = `
<mrow>
  <mspace width="2em"/>
</mrow>
`;
const res = minify(Buffer.from(str), {
  keep_spaces_between_attributes: true,
  keep_comments: true
}).toString()
console.log(res);

The output is: <mrow> <mspace width=2em>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0