fix: disable custom link embedding
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user