Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minify-html 丢失闭合标签 #220

Open
5 tasks done
D-Sketon opened this issue Feb 3, 2024 · 11 comments
Open
5 tasks done

minify-html 丢失闭合标签 #220

D-Sketon opened this issue Feb 3, 2024 · 11 comments
Labels
bug 🐛 Something isn't working

Comments

@D-Sketon
Copy link
Member

D-Sketon commented Feb 3, 2024

在开始之前......

  • 我理解 Issue 是用于反馈和解决问题的,将尽可能提供更多信息帮助问题解决
  • 我填写了简短且清晰明确的标题,以便开发者在收到 Issue 时能快速确定大致问题。而不是"一个问题"、"报错了"等
  • 我确认最新版尚未修复此问题,且此前没有人提出过此问题
  • 为保证 Issue 及时得到回复,我已选择至少一名不在 busy 状态的组织成员作为assignees

问题发生位置

Hexo渲染报错

问题描述

image
image

复现步骤

No response

相关配置

No response

注意事项

  • 我已确认以上事项
@D-Sketon D-Sketon added the bug 🐛 Something isn't working label Feb 3, 2024
@D-Sketon D-Sketon changed the title Latex渲染异常 LaTeX渲染异常 Feb 3, 2024
@zkz098
Copy link
Member

zkz098 commented Feb 3, 2024

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

@zkz098 zkz098 added the question 🗨️ Further information is requested label Feb 3, 2024
@zkz098 zkz098 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2024
@D-Sketon
Copy link
Member Author

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

@zkz098 zkz098 reopened this Feb 16, 2024
@D-Sketon
Copy link
Member Author

image

@D-Sketon
Copy link
Member Author

minify后丢失标签
image
image

@D-Sketon
Copy link
Member Author

复现代码:

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>

@D-Sketon D-Sketon removed the question 🗨️ Further information is requested label Feb 20, 2024
@zkz098
Copy link
Member

zkz098 commented Feb 20, 2024

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

@D-Sketon D-Sketon changed the title LaTeX渲染异常 minify-html 丢失闭合标签 Feb 20, 2024
@D-Sketon
Copy link
Member Author

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

@zkz098
Copy link
Member

zkz098 commented Feb 20, 2024

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

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

@D-Sketon
Copy link
Member Author

需要在文档中进行提示

@zkz098
Copy link
Member

zkz098 commented Feb 20, 2024

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

@zkz098
Copy link
Member

zkz098 commented Feb 20, 2024

已加文档

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants