-
Notifications
You must be signed in to change notification settings - Fork 61.2k
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
Comments
感谢反馈,能否提供更多信息来帮助定位问题:
|
@Yidadaa 主题无论设置成什么,发现首屏的代码高亮是正常的,但是滚动到第二瓶以后得代码高亮都是有问题的,好像是这样的 |
好的,请问你是在自己部署的代码上遇到的该问题,还是在本项目的演示网站中遇到的该问题? |
请尝试更新 fork 项目的代码与上游同步,该问题应该就自动解决了。具体方法请查阅本项目 readme。 |
@Yidadaa 我是看的你们演示站 |
如果这个问题目前还是存在的话,能否提供一下出错信息的原始 markdown 文本?在消息上右键点击即可,然后贴到这里。 |
我现在也遇到了这个问题。 原始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 官方文档。 |
确实会有这个问题,系统是夜间模式时,如果强制亮色,代码高亮就会出问题,有空修吧,建议先用 auto 凑合用着。 |
fix: ChatGPTNextWeb#7 disable light code theme
* fix: update endpoint url check * Update sync.yml
The text was updated successfully, but these errors were encountered: