From 5178172864e167538698186d56e0aa75df307c98 Mon Sep 17 00:00:00 2001 From: shadow-light <42055707+shadow-light@users.noreply.github.com> Date: Tue, 15 Jun 2021 16:10:17 +1000 Subject: [PATCH] fix: Fix parsing of mention nodes (#1471) --- packages/extension-mention/src/mention.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/extension-mention/src/mention.ts b/packages/extension-mention/src/mention.ts index 32765bb8..fa2ec538 100644 --- a/packages/extension-mention/src/mention.ts +++ b/packages/extension-mention/src/mention.ts @@ -102,7 +102,7 @@ export const Mention = Node.create({ renderHTML({ node, HTMLAttributes }) { return [ 'span', - mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), + mergeAttributes({'data-mention': ''}, this.options.HTMLAttributes, HTMLAttributes), this.options.renderLabel({ options: this.options, node,