We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7925c89 commit 57def8fCopy full SHA for 57def8f
docs/js/demo.js
@@ -3,14 +3,19 @@ import { components } from "https://unpkg.com/@wq/markdown";
3
import { Analyst } from "https://unpkg.com/@wq/analyst";
4
5
const React = modules.react;
6
+const { Paper } = modules["@mui/material"];
7
const Code = components.code;
8
9
export default function CodeDetect(props) {
10
const { children: value } = props;
11
if (value.includes("// @wq/analyst")) {
12
const config = parseConfig(value);
13
if (config) {
- return React.createElement(Analyst, config);
14
+ return React.createElement(
15
+ Paper,
16
+ null,
17
+ React.createElement(Analyst, config),
18
+ );
19
} else {
20
return React.createElement(Code, {
21
children: "// Error parsing @wq/analyst config\n\n" + value,
0 commit comments