We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
kiaking
brc-dd
posva
Learn more about funding links in repositories.
Report abuse
1 parent 0d56855 commit 7fbfe71Copy full SHA for 7fbfe71
src/node/markdown/plugins/containers.ts
@@ -38,12 +38,12 @@ function createContainer(
38
container,
39
klass,
40
{
41
- render(tokens, idx) {
+ render(tokens, idx, _options, env) {
42
const token = tokens[idx]
43
const info = token.info.trim().slice(klass.length).trim()
44
const attrs = md.renderer.renderAttrs(token)
45
if (token.nesting === 1) {
46
- const title = md.renderInline(info || defaultTitle)
+ const title = md.renderInline(info || defaultTitle, { ...env })
47
if (klass === 'details')
48
return `<details class="${klass} custom-block"${attrs}><summary>${title}</summary>\n`
49
return `<div class="${klass} custom-block"${attrs}><p class="custom-block-title">${title}</p>\n`
0 commit comments