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

新站适配:廖雪峰的官方网站 #6543

Open
WK-Apollo opened this issue Jun 8, 2024 · 5 comments
Open

新站适配:廖雪峰的官方网站 #6543

WK-Apollo opened this issue Jun 8, 2024 · 5 comments
Labels

Comments

@WK-Apollo
Copy link

描述这个错误

问题网址
该网站的代码段是在可以修改的文本框中,进入阅读模式后会读取不到代码
image
image
image

复现步骤

  1. 进入网站
  2. 进入阅读模式

其他相关说明

No response

操作系统

Windows 11, version 23H2

浏览器

Microsoft Edge 版本 125.0.2535.92 (正式版本) (64 位)

发生问题的网址

https://www.liaoxuefeng.com/wiki/1252599548343744/1306046706483233

@Kenshin
Copy link
Owner

Kenshin commented Jun 8, 2024

😂

如果是具有交互性质的页面并不适合使用阅读模式。

我关闭这个 Issues 了,有任何疑问随时沟通。

@Kenshin Kenshin closed this as completed Jun 8, 2024
@WK-Apollo
Copy link
Author

WK-Apollo commented Jun 8, 2024

@Kenshin 主要是我需要加入稍后做标注笔记,但是本地快照缺少代码段,还得返回原网页阅读

@Kenshin
Copy link
Owner

Kenshin commented Jun 9, 2024

  1. 排除掉互动的问题,简悦对代码段的支持确实有限,但不完全是简悦的问题,(感觉你应该是个 Developer),所以应该能理解,代码高亮方案太多了,而且没有任何规则,所以很难覆盖任意场景。

  2. 这个页面包含了很多互动内容,不可能在阅读模式中也能支持它们。

  3. 即便我强制让阅读模式拥有 textarea(但肯定没法使用 Run 功能),在稍后读中也是没法支持的。

不过,简悦可以能做到:

  1. 适配这个页面(因为还挺知名)

  2. 阅读模式内但无任何交互内容

  3. 适配后可正常加入稍后读(但建议使用 本地快照方案 否则也不会太完美支持。


我的想法是没必要适配这个页面,但如果你能接受上面的情况,我会考虑适配它。

@Kenshin Kenshin changed the title 阅读模式无法获取代码段 廖雪峰的官方网站适配问题 Jun 9, 2024
@WK-Apollo
Copy link
Author

即便我强制让阅读模式拥有 textarea(但肯定没法使用 Run 功能),在稍后读中也是没法支持的

  • 并不需要交互功能,我使用阅读模式大多数情况下是为了下载文章,所以只需要可以正常显示出代码即可。
  • 编辑文本框内代码的需求也没有, textarea没有必要,只需要可以读取原页面textarea中的内容并显示即可
    (其实那个run已经失效了,服务器端似乎已经把这个功能砍了,所以相当于是没有交互的页面)

@Kenshin Kenshin changed the title 廖雪峰的官方网站适配问题 新站适配:廖雪峰的官方网站 Jun 10, 2024
@Kenshin
Copy link
Owner

Kenshin commented Jun 10, 2024

okay 可以考虑适配

@Kenshin Kenshin reopened this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants