Skip to content

Commit

Permalink
fix rehyp pretty code plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed May 21, 2024
1 parent 4aabd33 commit 0c9f35b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/lib/mdx/rehype-component-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ export const rehypeComponentDemo = ({
node.children?.push(
u('element', {
tagName: 'pre',
properties: {},
children: [
u('element', {
tagName: 'code',
properties: {
className: 'language-tsx',
className: ['language-tsx'],
metastring: `${lineHighlighting}+${wordHighlighting}`,
},
children: [
Expand Down

0 comments on commit 0c9f35b

Please sign in to comment.