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

[低优先级]tg bot 对特殊格式的显示优化 #90

Open
Enter-tainer opened this issue Sep 9, 2024 · 0 comments
Open

[低优先级]tg bot 对特殊格式的显示优化 #90

Enter-tainer opened this issue Sep 9, 2024 · 0 comments

Comments

@Enter-tainer
Copy link
Member

比如这种东西:

💬 New paragraph comment on 启发式搜索 - OI Wiki
 示例代码 <span></span><span class=normal> 1</span>
<span class=normal> 2</span>
<span class=normal> 3</s...
by nicognaw

怎么每一行代码都有黄线了

感觉可以考虑改一改 https://github.com/OI-wiki/feedback-sys/blob/master/cloudflare-workers%2Fsrc%2Fadministration.ts#L62-L68 这些代码。改为获取原始的md文件(maybe通过github api,可能需要额外的token),然后去掉front matter。再用offset信息来截取原文。

这里还有一些麻烦的逻辑,就是要把path map成md文件的路径。感觉会有一些完全相同的逻辑分别用js和py写了两遍 😇

不过这个不是很重要,现在的也不是不能用。

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

1 participant