Skip to content

Commit 6cd09cf

Browse files
committed
wrap in Paper
1 parent 7925c89 commit 6cd09cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/js/demo.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@ import { components } from "https://unpkg.com/@wq/markdown";
33
import { Analyst } from "https://unpkg.com/@wq/analyst";
44

55
const React = modules.react;
6+
const { Paper } = modules["@mui/material"];
67
const Code = components.code;
78

89
export default function CodeDetect(props) {
910
const { children: value } = props;
1011
if (value.includes("// @wq/analyst")) {
1112
const config = parseConfig(value);
1213
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+
);
1419
} else {
1520
return React.createElement(Code, {
1621
children: "// Error parsing @wq/analyst config\n\n" + value,

0 commit comments

Comments
 (0)