Daniel Ruf
Daniel Ruf
Hi @universemaster, Thanks for creating the issue. This sounds like a request to support MathML. Is this what you mean? Please keep in mind, that this library is mainly for...
As the name suggests html-minifier is only for html tag. There are some hardcoded lists: https://github.com/terser/html-minifier-terser/blob/master/src/htmlparser.js#L70-L81 https://github.com/terser/html-minifier-terser/blob/master/src/htmlminifier.js#L397-L418 `math` appears at https://github.com/terser/html-minifier-terser/blob/master/src/htmlminifier.js#L65 MathML Specification contains different tags, which are probably not...
I have read https://github.com/w3c/mathml/issues/375 and the code example does not make much sense to me. XML and HTML normally only allow these variants (and so do parsers in most cases,...
Regarding this: > Some criticize mathml for being too verbose and heavy increasing the network payload. brotli can drastically reduce the size of xml and probably MathML (I did not...
Here is the hardcoded list of html tags with optional end tags: https://github.com/terser/html-minifier-terser/blob/master/src/htmlminifier.js#L403 ```js const optionalEndTags = new Set(['html', 'head', 'body', 'li', 'dt', 'dd', 'p', 'rb', 'rt', 'rtc', 'rp', 'optgroup',...
> which can be done with few lines of code. Less dependencies is better. An option makes sense.
Hi @jantimon, thanks for bringing this to my attention. Please check #21.
What type of attributes exactly do you mean? html-minifier(-terser) only minifies the code but does not cover such prod / dev differences since this has not much to do with...
Hi @xReeQz, can you provide a full example code for the html-minifier-terser so we have a testcase and the options that you use? https://github.com/terser/html-minifier-terser/blob/v5.1.1/src/htmlminifier.js#L327
Can you test if this would result in a green CI build? You can provide a PR and we can see then if there are any negative side-effects or not.