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

feat: add code block language display #208

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CosmoLau
Copy link

[功能] 新增在 Markdown 代码块的右上角显示代码块的语言

效果如下:

2024-10-28.133154.mp4

且代码块语言使用主题颜色,修改主题颜色时代码块语言也会改变,效果如下:

2024-10-28.133729.mp4

该功能参考了 VitePress 代码块的显示效果,如下:

2024-10-28.133422.mp4

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuwari-yags ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 6:02am

@saicaca
Copy link
Owner

saicaca commented Nov 15, 2024

感谢 PR!不过我觉得当前的实现视觉效果不算太好,我可能需要时间来重新设计一下这个

Scrrrr added a commit to Scrrrr/scrrrr.github.io that referenced this pull request Nov 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants