Replies: 1 comment
-
@Airkro we implement our own component that highlights with vscode syntax highlighters: https://github.com/terrastruct/d2-docs/blob/master/src/theme/CodeBlock/index.js docusaurus picks up this special component due to their "swizzling" mechanism: https://docusaurus.io/docs/swizzling#which-component-should-i-swizzle it'd be nice to get something in prismjs, but i just looked and they're not accepting PRs until later: https://github.com/PrismJS/prism#important-notice |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Apparently, it's not implemented using Prismjs that comes with Docusaurus.
Beta Was this translation helpful? Give feedback.
All reactions