fuwari icon indicating copy to clipboard operation
fuwari copied to clipboard

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

Open Kayxue opened this issue 11 months ago • 6 comments

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

Kayxue avatar Feb 15 '25 02:02 Kayxue

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

ikamusume7 avatar Mar 01 '25 11:03 ikamusume7

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.

Hasenpfote avatar Mar 04 '25 15:03 Hasenpfote

👍

Kayxue avatar Mar 04 '25 15:03 Kayxue

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

感謝

Kayxue avatar Mar 04 '25 15:03 Kayxue

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

Kayxue avatar Mar 04 '25 15:03 Kayxue

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!

ikamusume7 avatar Mar 05 '25 01:03 ikamusume7