From 0a35ac2414e16b16826d029133b60600838d6e6d Mon Sep 17 00:00:00 2001 From: "Jeet Mandaliya github: sereneinserenade" Date: Wed, 10 Jan 2024 17:20:54 +0530 Subject: [PATCH] feat: formatting file --- src/comment.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/comment.ts b/src/comment.ts index b6343db..0925bcf 100644 --- a/src/comment.ts +++ b/src/comment.ts @@ -44,7 +44,8 @@ export const CommentExtension = Mark.create({ return { commentId: { default: null, - parseHTML: (el) => (el as HTMLSpanElement).getAttribute("data-comment-id"), + parseHTML: (el) => + (el as HTMLSpanElement).getAttribute("data-comment-id"), renderHTML: (attrs) => ({ "data-comment-id": attrs.commentId }), }, }; @@ -115,7 +116,7 @@ export const CommentExtension = Mark.create({ const commentMark = node.marks.find( (mark) => mark.type.name === "comment" && - mark.attrs.commentId === commentId + mark.attrs.commentId === commentId, ); if (!commentMark) return;