File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
packages/docusaurus-theme-classic/src Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -471,6 +471,7 @@ declare module '@theme/CodeBlock/Content/String' {
471471
472472declare module '@theme/CodeBlock/Line' {
473473 import type { ReactNode } from 'react' ;
474+ import type { CodeBlockMetaOptions } from '@docusaurus/theme-common/internal' ;
474475 import type {
475476 LineInputProps ,
476477 LineOutputProps ,
@@ -483,6 +484,7 @@ declare module '@theme/CodeBlock/Line' {
483484 readonly line : Token [ ] ;
484485 readonly classNames : string [ ] | undefined ;
485486 readonly showLineNumbers : boolean ;
487+ readonly metaOptions : CodeBlockMetaOptions ;
486488 readonly getLineProps : ( input : LineInputProps ) => LineOutputProps ;
487489 readonly getTokenProps : ( input : TokenInputProps ) => TokenOutputProps ;
488490 }
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ export default function CodeBlockString({
110110 < Line
111111 key = { i }
112112 line = { line }
113+ metaOptions = { metaOptions }
113114 getLineProps = { getLineProps }
114115 getTokenProps = { getTokenProps }
115116 classNames = { lineClassNames [ i ] }
You can’t perform that action at this time.
0 commit comments