| @@ -258,6 +258,11 @@ export function Markdown(props: { content: string; className?: string }) { | |||
| if (node.type === 'element' && node.properties?.ref) | |||
| delete node.properties.ref | |||
| if (node.type === 'element' && !/^[a-z][a-z0-9]*$/i.test(node.tagName)) { | |||
| node.type = 'text' | |||
| node.value = `<${node.tagName}` | |||
| } | |||
| if (node.children) | |||
| node.children.forEach(iterate) | |||
| } | |||