We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
custom-block-title-default
1 parent 7d94481 commit 63079bfCopy full SHA for 63079bf
src/node/markdown/plugins/containers.ts
@@ -69,9 +69,11 @@ function createContainer(
69
const title = md.renderInline(info || defaultTitle, {
70
references: env.references
71
})
72
+ const titleClass =
73
+ 'custom-block-title' + (info ? '' : ' custom-block-title-default')
74
if (klass === 'details')
75
return `<details ${attrs}><summary>${title}</summary>\n`
- return `<div ${attrs}><p class="custom-block-title">${title}</p>\n`
76
+ return `<div ${attrs}><p class="${titleClass}">${title}</p>\n`
77
} else return klass === 'details' ? `</details>\n` : `</div>\n`
78
}
79
0 commit comments