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

代码高亮有问题 #7

Closed
erbao2001 opened this issue Mar 23, 2023 · 8 comments
Closed

代码高亮有问题 #7

erbao2001 opened this issue Mar 23, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@erbao2001
Copy link

CleanShot 2023-03-23 at 20 59 06@2x

@Yidadaa Yidadaa added the bug Something isn't working label Mar 23, 2023
@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 23, 2023

感谢反馈,能否提供更多信息来帮助定位问题:

  • 刷新页面后是否依然存在该问题?
  • 设置中的主题选项是 auto/light/dark?切换主题后问题是否依然存在?
  • 能否提供当前所用的操作系统版本和浏览器版本。

@erbao2001
Copy link
Author

@Yidadaa 主题无论设置成什么,发现首屏的代码高亮是正常的,但是滚动到第二瓶以后得代码高亮都是有问题的,好像是这样的

Chrome:版本 111.0.5563.110
CleanShot 2023-03-24 at 10 41 12@2x

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 24, 2023

好的,请问你是在自己部署的代码上遇到的该问题,还是在本项目的演示网站中遇到的该问题?

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 24, 2023

请尝试更新 fork 项目的代码与上游同步,该问题应该就自动解决了。具体方法请查阅本项目 readme。

@Yidadaa Yidadaa closed this as completed Mar 24, 2023
@erbao2001
Copy link
Author

@Yidadaa 我是看的你们演示站

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 25, 2023

如果这个问题目前还是存在的话,能否提供一下出错信息的原始 markdown 文本?在消息上右键点击即可,然后贴到这里。

@zsnjuts
Copy link

zsnjuts commented Mar 26, 2023

我现在也遇到了这个问题。

image

原始markdown文本如下:

好的,以下是一个简单的RoaringBitmap使用方法的示例代码:

#include <iostream>
#include "roaring/roaring.h"

int main() {
  Roaring r1, r2, r3;
  // 添加数据到 r1 和 r2 中
  for (uint32_t i = 0; i < 10000; ++i) {
    r1.add(i);
  }
  for (uint32_t i = 5000; i < 15000; ++i) {
    r2.add(i);
  }
  // 进行并集运算
  r3 = Roaring::or(r1, r2);
  uint32_t *result = new uint32_t[r3.getCardinality()];
  r3.toArray(result);
  // 输出结果
  for (uint32_t i = 0; i < r3.getCardinality(); ++i) {
    std::cout << result[i] << " ";
  }
  std::cout << std::endl;
  delete[] result;
  return 0;
}

上述代码创建了三个 RoaringBitmap 对象,r1 和 r2 分别添加了一些数据,然后使用 RoaringBitmap::or 方法计算它们的并集,结果保存在 r3 中。最后,将 r3 的结果输出到控制台上。代码中还包括了内存分配和释放。请注意,这只是 RoaringBitmap 用法的简单示例,更加复杂的用法请参考 RoaringBitmap 官方文档。

@Yidadaa
Copy link
Collaborator

Yidadaa commented Mar 26, 2023

确实会有这个问题,系统是夜间模式时,如果强制亮色,代码高亮就会出问题,有空修吧,建议先用 auto 凑合用着。

@Yidadaa Yidadaa reopened this Mar 26, 2023
Yidadaa added a commit that referenced this issue Mar 27, 2023
fix: #7 disable light code theme
yxl pushed a commit to yxl/ChatGPT-Next-Web that referenced this issue May 4, 2023
yxl pushed a commit to yxl/ChatGPT-Next-Web that referenced this issue May 4, 2023
bohanyang pushed a commit to bohanyang/ChatGPT-Next-Web that referenced this issue Jul 23, 2023
* fix: update endpoint url check

* Update sync.yml
Dogtiti pushed a commit that referenced this issue Sep 6, 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

3 participants