theme-shoka-x / hexo-theme-shokaX

a hexo theme based on shoka
https://docs-hexo.shokax.top
GNU Affero General Public License v3.0
303 stars 41 forks source link

minify-html 丢失闭合标签 #220

Closed D-Sketon closed 2 months ago

D-Sketon commented 8 months ago

在开始之前......

问题发生位置

Hexo渲染报错

问题描述

image image

复现步骤

No response

相关配置

No response

注意事项

zkz098 commented 8 months ago

image 0.3.13无法复现 控制台报错看起来更像js文件被重复写入了

D-Sketon commented 7 months ago

0.4.0 中 \qquad 好像还是会导致LaTeX无法显示

D-Sketon commented 7 months ago

image

D-Sketon commented 7 months ago

minify后丢失标签 image image

D-Sketon commented 7 months ago

复现代码:

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

输出:<mrow> <mspace width=2em>

zkz098 commented 7 months ago

问题普遍存在,#243 中的html下载下来也是不完整的 image

D-Sketon commented 7 months ago

提了相关issue https://github.com/wilsonzlin/minify-html/issues/181 , 但感觉短期内无法被解决(

zkz098 commented 7 months ago

提了相关issue wilsonzlin/minify-html#181 , 但感觉短期内无法被解决(

是这样的,https://github.com/wilsonzlin/minify-html/issues/170 也是一个潜在问题,因为: image 但这个Issue已经1个月没进展了,而且似乎从未被正式受理()

D-Sketon commented 7 months ago

需要在文档中进行提示

zkz098 commented 7 months ago

lightning 0.1.5允许使用更稳定的缩小器进行解析,我改一下文档

zkz098 commented 7 months ago

已加文档

zkz098 commented 3 months ago

考虑移除minify-html支持,长期来看这个库已经被放弃了

zkz098 commented 2 months ago

minify-html 已半年未更新,后续将移除 minify-html 支持,等待上游已经失去意义