fix: disable custom link embedding

This commit is contained in:
DIYgod
2023-05-20 01:29:17 +01:00
parent c058fc197a
commit 632468911b
+2 -1
View File
@@ -20,7 +20,8 @@ export const rehypeEmbed: Plugin<
!parent ||
!("tagName" in parent) ||
parent.tagName !== "p" ||
parent.children.length > 1
parent.children.length > 1 ||
(node.children?.[0] as any)?.value !== node.properties?.href
)
return