-
Notifications
You must be signed in to change notification settings - Fork 453
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
内置于html文件中的js代码段,为何要使用"代替单引号? #284
Comments
这段 8.3.0 及之前的 可读性下降、不利于开发维护这个不至于,Hexo 所生成网页源码就不是设计成给人读的开发时几乎用不到。 @stevenjoezhang 你觉得这个转义要不要去掉还是化简一下呢。 👀 |
补充一句,这不是js,script的属性被设置为 |
感谢各位对 |
gulp-beautify 已经超过两年没有更新,建议使用 Hexo 的插件替代。支持代码压缩和格式化的 Hexo 插件可以在这里查找: https://hexo.io/plugins/ |
我觉得应该使得格式化 另外我不太清楚规范或者浏览器是怎么判断 end tag 的, |
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs. |
如题,在这个
6b23d42930658f5b8bf20a2c3a32f6a516fa8976
commit后,开始发生此情况,作为一个强迫症患者,在hexo g
以后,我还会使用gulp-beautif
来格式化渲染后的html、css、js文件,但是其无法很好的识别转义后的标点符号,因此格式化后无法正常显示网页。另外转义后会导致代码的可读性下降,不利于开发维护。Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate.
请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
Expected behavior
在hexo-theme-next@v8.3.0及以前,内置的js代码会被正常的渲染,例如:
Actual behavior
在hexo-theme-next@v8.4.0及以后,内置的js代码会被转义,例如:
The text was updated successfully, but these errors were encountered: