Skip to content

[Feature Request] 新增 Code Block with Title and Highlighting 支援 #319

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

Open
Kayxue opened this issue Feb 15, 2025 · 6 comments · May be fixed by #330
Open

[Feature Request] 新增 Code Block with Title and Highlighting 支援 #319

Kayxue opened this issue Feb 15, 2025 · 6 comments · May be fixed by #330
Labels
enhancement New feature or request

Comments

@Kayxue
Copy link

Kayxue commented Feb 15, 2025

希望新增如標題所示的支援,效果如下範例,截圖自 Astrozinc
Image

@Kayxue Kayxue changed the title 【功能請求】新增 Code Block with Title and Highlighting 支援 [Feature Request] 新增 Code Block with Title and Highlighting 支援 Feb 15, 2025
@ikamusume7
Copy link

Astrozinc是用了一个叫expressive-code的插件,把它集成到astro里就可以实现这些功能,我最近刚好写了一篇文章介绍它 增强代码块功能

@Hasenpfote
Copy link
Contributor

I wasn't satisfied with the current code block feature, so I’m glad to have come across Expressive Code.
I based this PR on the process by ikamusume7. There are still related open issues, so it’s uncertain how this will turn out.

@Kayxue
Copy link
Author

Kayxue commented Mar 4, 2025

👍

@Kayxue
Copy link
Author

Kayxue commented Mar 4, 2025

Astrozinc是用了一个叫expressive-code的插件,把它集成到astro里就可以实现这些功能,我最近刚好写了一篇文章介绍它 增强代码块功能

感謝

@Kayxue
Copy link
Author

Kayxue commented Mar 4, 2025

I wasn't satisfied with the current code block feature, so I’m glad to have come across Expressive Code. I based this PR on the process by ikamusume7. There are still related open issues, so it’s uncertain how this will turn out.

Can't wait to try it
But I have already followed tutorial on 伊卡的記事本, I need to revert the changes first

@ikamusume7
Copy link

ikamusume7 commented Mar 5, 2025

I wasn't satisfied with the current code block feature, so I’m glad to have come across Expressive Code. I based this PR on the process by ikamusume7. There are still related open issues, so it’s uncertain how this will turn out.

Thank you for your great contribution. I also hope that more users can use it!

@L4Ph L4Ph added the enhancement New feature or request label Mar 27, 2025
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

Successfully merging a pull request may close this issue.

4 participants