Skip to content

Commit f8fc8b5

Browse files
committed
Remove unnecessary block wrappers
1 parent f50fdc7 commit f8fc8b5

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

plugin-custom-directives.mjs

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,20 @@ const youShouldNoticeDirective = {
3939
},
4040
run(data, _, ctx) {
4141
return [{
42-
type: "block",
43-
children: [{
44-
type: "admonition",
45-
kind: "important",
46-
icon: false,
47-
class: "simple",
48-
children: [
49-
{
50-
type: "admonitionTitle",
51-
children: [{
52-
type: "text",
53-
value: "👀 You should notice...",
54-
}],
55-
},
56-
ctx.parseMyst(data.body),
57-
],
58-
}],
42+
type: "admonition",
43+
kind: "important",
44+
icon: false,
45+
class: "simple",
46+
children: [
47+
{
48+
type: "admonitionTitle",
49+
children: [{
50+
type: "text",
51+
value: "👀 You should notice...",
52+
}],
53+
},
54+
ctx.parseMyst(data.body),
55+
],
5956
}];
6057
},
6158
};

0 commit comments

Comments
 (0)