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

Prism代码主题 #822

Open
foxfire881 opened this issue Jul 2, 2024 · 5 comments
Open

Prism代码主题 #822

foxfire881 opened this issue Jul 2, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@foxfire881
Copy link

目前自带的8个代码主题都是Prism默认的,都不怎么好看甚至有点丑。而实际上Prismjs官方还提供了很多扩展代码主题,其中有很多不错的主题比如比较流行的one dark

因为Prism模块是编译集成在Cherry里面的没有开放出来,css主题我看了下也是编译好的不能自己增加,请看看是否把以上这些主题也打包一下,目测大概增加100多K

捕获

@sunsonliu
Copy link
Collaborator

哦哦,感觉可以挑选几个特征明显的引进来,比如one-light、one-dark、vs、vs-dark。我们后面排期搞搞哈,如果等不及也欢迎直接给我们提pr哈~

@sunsonliu
Copy link
Collaborator

而且确实我也觉得自带的代码块主题有点丑。。。。

@foxfire881
Copy link
Author

嗯嗯,先少加几个吧,至少把那个one dark加进来,这个用的比较多。后面还是排期搞搞,把prism模块开放出来让用户自己去接入,Prism还有很多好用的插件,现在好像还没整进去,比如command插件可以把命令行渲染成这样的,这在编写文档记录一些命令行输入输出时很有用。

1

2

3

@sunsonliu sunsonliu added the enhancement New feature or request label Jul 2, 2024
sunsonliu added a commit that referenced this issue Aug 9, 2024
@sunsonliu
Copy link
Collaborator

image
已丰富主题,目前在dev分支哈

@sunsonliu
Copy link
Collaborator

已发布,可以在v0.8.46及以后版本中体验哈,也可以在这里体验

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants