@@ -94,16 +94,19 @@ The source code is written in markdown, refer to [example.md](https://raw.github
9494
9595### ` <CodeView> `
9696
97- | Name | Type | Default value | Description |
98- | -------------- | --------------------------------- | ----------------------- | ------------------------------------------------------------------------- |
99- | afterCompile | (code: string) => string | | Executed after compiling the code |
100- | beforeCompile | (code: string) => string | | Executed before compiling the code |
101- | children | any | | The code to be rendered is executed. Usually imported via markdown-loader |
102- | dependencies | object | | Dependent objects required by the executed code |
103- | editable | boolean | false | Renders a code editor that can modify the source code |
104- | editor | object | | Editor properties |
105- | onChange | (code?: string) => void | | Callback triggered after code change |
106- | renderToolbar | (buttons: ReactNode) => ReactNode | | Customize the rendering toolbar |
107- | sourceCode | string | | The code to be rendered is executed |
108- | theme | 'light' , 'dark' | 'light' | Code editor theme, applied to CodeMirror |
109- | compileOptions | object | defaultTransformOptions | https://github.com/alangpierce/sucrase#transforms |
97+ | Name | Type | Default value | Description |
98+ | ----------------- | --------------------------------- | ----------------------- | ------------------------------------------------------------------------- |
99+ | afterCompile | (code: string) => string | | Executed after compiling the code |
100+ | beforeCompile | (code: string) => string | | Executed before compiling the code |
101+ | children | any | | The code to be rendered is executed. Usually imported via markdown-loader |
102+ | compileOptions | object | defaultTransformOptions | https://github.com/alangpierce/sucrase#transforms |
103+ | dependencies | object | | Dependent objects required by the executed code |
104+ | editable | boolean | false | Renders a code editor that can modify the source code |
105+ | editor | object | | Editor properties |
106+ | onChange | (code?: string) => void | | Callback triggered after code change |
107+ | onCloseEditor | () => void | | Callback triggered when the editor is closed |
108+ | onOpenEditor | () => void | | Callback triggered when the editor is opened |
109+ | renderExtraFooter | () => ReactNode | | Customize the rendering footer |
110+ | renderToolbar | (buttons: ReactNode) => ReactNode | | Customize the rendering toolbar |
111+ | sourceCode | string | | The code to be rendered is executed |
112+ | theme | 'light' , 'dark' | 'light' | Code editor theme, applied to CodeMirror |
0 commit comments