Skip to content

Commit 8ce6f46

Browse files
mfisher87rowanc1
andcommitted
Change body type of youShouldKnow directive to "myst", removing need to parse
Co-authored-by: Rowan Cockett <913249+rowanc1@users.noreply.github.com>
1 parent 7f24494 commit 8ce6f46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin-custom-directives.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ const youShouldNoticeDirective = {
3232
name: "youShouldNotice",
3333
doc: "Renders a consistent callout when the learner should notice something.",
3434
body: {
35-
type: String
35+
type: 'myst',
3636
},
37-
run(data, _, ctx) {
37+
run(data) {
3838
return [{
3939
type: "admonition",
4040
kind: "important",
@@ -48,7 +48,7 @@ const youShouldNoticeDirective = {
4848
value: "👀 You should notice...",
4949
}],
5050
},
51-
ctx.parseMyst(data.body),
51+
...data.body,
5252
],
5353
}];
5454
},

0 commit comments

Comments
 (0)