Replies: 1 comment 2 replies
-
|
you could use docusaurus/packages/docusaurus-theme-classic/src/types.d.ts Lines 53 to 62 in f51f219 import CodeBlock from '@theme/CodeBlock'
<CodeBlock metastring="js">...</CodeBlock>personally i don't like how api of this component is written as it should have explicit properties for |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Hi there,
I'm currently locking for a way to use the included prism to highlight code withing a custom div element.
Something like
and then
I know I can also include prism as a dependency, but I would rather just use the included syntax highlighting.
Does the prism script just look for a certain class or is there any method I can use to highlight custom elements?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions