:::")',
)
}
let label: Element | string | null = null
if (properties && properties['has-directive-label']) {
const [firstChild, ...restChildren] = children
children = restChildren
if (firstChild && firstChild.type === 'element') {
label = firstChild as Element
label.tagName = 'div' // Change the tag to
}
else {
label = ''
}
}
return h('blockquote', { class: `admonition bdm-${type}` }, [
h('span', { class: 'bdm-title' }, label || type.toUpperCase()),
...(children as Element[]),
] as Element[])
}