File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,19 @@ import { components } from "https://unpkg.com/@wq/markdown";
3
3
import { Analyst } from "https://unpkg.com/@wq/analyst" ;
4
4
5
5
const React = modules . react ;
6
+ const { Paper } = modules [ "@mui/material" ] ;
6
7
const Code = components . code ;
7
8
8
9
export default function CodeDetect ( props ) {
9
10
const { children : value } = props ;
10
11
if ( value . includes ( "// @wq/analyst" ) ) {
11
12
const config = parseConfig ( value ) ;
12
13
if ( config ) {
13
- return React . createElement ( Analyst , config ) ;
14
+ return React . createElement (
15
+ Paper ,
16
+ { elevation : 3 , sx : { p : 1 } } ,
17
+ React . createElement ( Analyst , config ) ,
18
+ ) ;
14
19
} else {
15
20
return React . createElement ( Code , {
16
21
children : "// Error parsing @wq/analyst config\n\n" + value ,
You can’t perform that action at this time.
0 commit comments