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

阅读模式下,原本规范的代码块变得不规范 #6089

Closed
Colbyzn opened this issue Nov 18, 2023 · 4 comments
Closed

阅读模式下,原本规范的代码块变得不规范 #6089

Colbyzn opened this issue Nov 18, 2023 · 4 comments

Comments

@Colbyzn
Copy link

Colbyzn commented Nov 18, 2023

描述这个错误

问题:

当我选中原网页部分内容,右键进入阅读模式时,原网页规范的代码块被去掉了所有的换行符,导致所有代码都在一行上显示;

而当我不选中原网页任何内容,直接按下AA键进入阅读模式时,虽然保留了原网页代码块的格式,但是注释内容不见了

需求:

希望阅读模式下,代码块与原网页内的代码块格式及内容一致;

复现步骤

image

其他相关说明

No response

操作系统

Windows

浏览器

Chrome

发生问题的网址

https://www.frontendinterviewhandbook.com/zh/javascript-questions#%E5%92%8C%E7%9A%84%E5%8C%BA%E5%88%AB%E6%98%AF%E4%BB%80%E4%B9%88

@Kenshin
Copy link
Owner

Kenshin commented Nov 18, 2023

嗨,这算是「预期」Bug 😂

代码段是一个很麻烦的事情,因为代码高亮规则太多了,没法统一,所以...

代码段的问题会集中在 #500 并关闭此 Issues 修复后会通知你~


PS:图示不错,很棒 👍
PPS:用是什么截(做)图 App?

@Kenshin Kenshin closed this as completed Nov 18, 2023
@Colbyzn
Copy link
Author

Colbyzn commented Nov 18, 2023 via email

@Kenshin
Copy link
Owner

Kenshin commented Nov 18, 2023

这个问题跟是否安装了 #500 无关,只是 #500 会优化各种代码段引起的问题的汇总而已 😂

至于有点「麻烦」的原因我说了,再简单的说,代码段并不都是使用 <code> 方案,即便使用了 <code> 也都不尽相同。

综上~ 🌚

PS:FastStone 可以做弧线的箭头了 👍

@Colbyzn
Copy link
Author

Colbyzn commented Nov 18, 2023 via email

@Kenshin Kenshin changed the title 阅读模式下,原本规范的代码块变得不规范 !!! 阅读模式下,原本规范的代码块变得不规范 Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants