diff --git a/docs/src/theme/CodeBlock/Line/index.js b/docs/src/theme/CodeBlock/Line/index.js index 89e67dde6..2688a5747 100644 --- a/docs/src/theme/CodeBlock/Line/index.js +++ b/docs/src/theme/CodeBlock/Line/index.js @@ -15,9 +15,10 @@ export default function CodeBlockLine({ line, className: clsx(classNames, showLineNumbers && styles.codeLine), }); - const lineTokens = line.map((token, key) => ( - - )); + const lineTokens = line.map((token, index) => { + const { key, ...props } = getTokenProps({token, key: index}); + return + }); return ( {showLineNumbers ? (