pull/18856/merge
hilon 12 months ago committed by GitHub
commit 978d095038
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -533,7 +533,7 @@ export function Markdown(props: { content: string; className?: string; customDis
if (node.type === 'element' && node.properties?.ref)
delete node.properties.ref
if (node.type === 'element' && !/^[a-z][a-z0-9]*$/i.test(node.tagName)) {
if (node.type === 'element' && !/^[a-z][a-z0-9]*$/i.test(node.tagName) && !(node.tagName.startsWith('wc-') && node.properties?.dataIsWebComponent === '1')) {
node.type = 'text'
node.value = `<${node.tagName}`
}

Loading…
Cancel
Save