MDXTS 0.16.0 was just released and it's the best version yet 🚀
Travis Arnold
在 X 上查看@souporserious4609 位关注者
45,405 次观看
MDXTS 0.16.0 was just released and it's the best version yet 🚀
The CodeBlock component was fully rewritten with minimal breaking changes and now exposes four new descendant components:
- LineHighlights
- LineNumbers
- Tokens
- Toolbar
You get all of the same type-checking and quick info benefits while being able to fully override the CodeBlock component. The examples have also been updated to showcase its flexibility.
Sign up for the newsletter and stay tuned for some big news this week!
5 条评论
评论来自 X (Twitter) 上的原帖

@souporserious
Learn how to get started using the CodeBlock component in any framework that supports React Server Components here:
20 个赞

@ryanlisse
@memdotai mem it

@memdotai
@souporserious Saved! Here's the compiled thread:

@raunakdoesdev
neat! what do you use for code highlighting?

@souporserious
Using Shiki for highlighting 😁
2 个赞
