File tree 1 file changed +3
-3
lines changed
plugins/markdown/plugin-markdown-hint/src/node
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const hint: PluginWithOptions<MarkdownItHintOptions> = (
44
44
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
45
45
info = options [ localePath ] ?. [ name ]
46
46
} else {
47
- info = md . renderInline ( info )
47
+ info = md . renderInline ( info , env )
48
48
}
49
49
50
50
return `<div class="hint-container ${ name } ">\n<p class="hint-container-title">${ info || name } </p>\n`
@@ -71,7 +71,7 @@ export const hint: PluginWithOptions<MarkdownItHintOptions> = (
71
71
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
72
72
info = options [ localePath ] ?. caution
73
73
} else {
74
- info = md . renderInline ( info )
74
+ info = md . renderInline ( info , env )
75
75
}
76
76
77
77
return `<div class="hint-container caution">\n<p class="hint-container-title">${
@@ -104,7 +104,7 @@ export const hint: PluginWithOptions<MarkdownItHintOptions> = (
104
104
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
105
105
info = options [ localePath ] ?. details
106
106
} else {
107
- info = md . renderInline ( info )
107
+ info = md . renderInline ( info , env )
108
108
}
109
109
110
110
return `<details class="hint-container details"><summary>${
You can’t perform that action at this time.
0 commit comments