Skip to content

Commit 1a9c32d

Browse files
committedSep 24, 2023
fix: selectively pass env for container titles
closes #3007
1 parent bc96b2b commit 1a9c32d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/node/markdown/plugins/containers.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ function createContainer(
4343
const info = token.info.trim().slice(klass.length).trim()
4444
const attrs = md.renderer.renderAttrs(token)
4545
if (token.nesting === 1) {
46-
const title = md.renderInline(info || defaultTitle, { ...env })
46+
const title = md.renderInline(info || defaultTitle, {
47+
references: env.references
48+
})
4749
if (klass === 'details')
4850
return `<details class="${klass} custom-block"${attrs}><summary>${title}</summary>\n`
4951
return `<div class="${klass} custom-block"${attrs}><p class="custom-block-title">${title}</p>\n`

0 commit comments

Comments
 (0)
Please sign in to comment.