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

文章/页面历史版本代码框字体颜色看不清 #5845

Closed
longjuan opened this issue Apr 30, 2024 · 3 comments · Fixed by #5982
Closed

文章/页面历史版本代码框字体颜色看不清 #5845

longjuan opened this issue Apr 30, 2024 · 3 comments · Fixed by #5982
Assignees
Labels
area/ui Issues or PRs related to the Halo UI kind/improvement Categorizes issue or PR as related to a improvement.
Milestone

Comments

@longjuan
Copy link
Member

系统信息

使用的哪种方式运行?

Docker

发生了什么?

如图
image
image

相关日志输出

No response

附加信息

No response

@ruibaby
Copy link
Member

ruibaby commented Apr 30, 2024

感谢反馈这个问题,这可能是由于当前只是单纯的渲染了 HTML 结构,但暂时并未对内容做任何处理,所以代码块这种样式还未得到适配。我这边主要能想到两个优化方案:

  1. 单独为每种格式做优化,但可能很难达到与编辑器完全一致。
  2. 让默认编辑器支持只读模式,完全用默认编辑器渲染 HTML。

/kind improvement
/area ui

@ruibaby ruibaby added this to the 2.16.x milestone Apr 30, 2024
@f2c-ci-robot f2c-ci-robot bot added kind/improvement Categorizes issue or PR as related to a improvement. area/ui Issues or PRs related to the Halo UI labels Apr 30, 2024
@longjuan
Copy link
Member Author

我觉得删了这个background就行
image

@ruibaby
Copy link
Member

ruibaby commented May 24, 2024

/assign

f2c-ci-robot bot pushed a commit that referenced this issue May 24, 2024
…5982)

#### What type of PR is this?

/area ui
/kind bug
/milestone 2.16.x

#### What this PR does / why we need it:

修复在文章版本历史内容预览中代码块颜色显示异常的问题。

#### Which issue(s) this PR fixes:

Fixes #5845

#### Does this PR introduce a user-facing change?

```release-note
修复在文章版本历史内容预览中代码块颜色显示异常的问题。
```
@JohnNiang JohnNiang modified the milestones: 2.16.x, 2.16.0 May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Issues or PRs related to the Halo UI kind/improvement Categorizes issue or PR as related to a improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants