fix: Fix parsing of mention nodes (#1471)

This commit is contained in:
shadow-light
2021-06-15 16:10:17 +10:00
committed by GitHub
parent b4fc7a4d0a
commit 5178172864

View File

@@ -102,7 +102,7 @@ export const Mention = Node.create<MentionOptions>({
renderHTML({ node, HTMLAttributes }) {
return [
'span',
mergeAttributes(this.options.HTMLAttributes, HTMLAttributes),
mergeAttributes({'data-mention': ''}, this.options.HTMLAttributes, HTMLAttributes),
this.options.renderLabel({
options: this.options,
node,