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' {
471
471
472
472
declare module '@theme/CodeBlock/Line' {
473
473
import type { ReactNode } from 'react' ;
474
+ import type { CodeBlockMetaOptions } from '@docusaurus/theme-common/internal' ;
474
475
import type {
475
476
LineInputProps ,
476
477
LineOutputProps ,
@@ -483,6 +484,7 @@ declare module '@theme/CodeBlock/Line' {
483
484
readonly line : Token [ ] ;
484
485
readonly classNames : string [ ] | undefined ;
485
486
readonly showLineNumbers : boolean ;
487
+ readonly metaOptions : CodeBlockMetaOptions ;
486
488
readonly getLineProps : ( input : LineInputProps ) => LineOutputProps ;
487
489
readonly getTokenProps : ( input : TokenInputProps ) => TokenOutputProps ;
488
490
}
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ export default function CodeBlockString({
110
110
< Line
111
111
key = { i }
112
112
line = { line }
113
+ metaOptions = { metaOptions }
113
114
getLineProps = { getLineProps }
114
115
getTokenProps = { getTokenProps }
115
116
classNames = { lineClassNames [ i ] }
You can’t perform that action at this time.
0 commit comments