Community Extension: Shiki Code Block #7072
timomeh
started this conversation in
Community Extensions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
It's the CodeBlock extension, but with shiki syntax highlighting. Supports all shiki themes, languages and dark/light mode.
https://github.com/timomeh/tiptap-extension-code-block-shiki
Installation
Please note that shiki is a peer dependency and must be installed by yourself.
Usage
Add
CodeBlockShikito your extensions. It extends the vanilla CodeBlock extension and supports all its options, and additionally a few more. The theme can be specified either globally or per node.Docs here: https://github.com/timomeh/tiptap-extension-code-block-shiki
Type
Node
Other
Very open to contributions: https://github.com/timomeh/tiptap-extension-code-block-shiki
Beta Was this translation helpful? Give feedback.
All reactions