🎨 Improve HTML underline style clipping https://github.com/siyuan-note/siyuan/issues/14804

fix lint

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-15 17:12:17 +08:00
parent d5257471fd
commit 5ccb95ae4e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -475,8 +475,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
const tempDiv = document.createElement("div");
tempDiv.innerHTML = textHTML;
const walker = document.createTreeWalker(tempDiv, NodeFilter.SHOW_TEXT, null);
let node;
while (node = walker.nextNode()) {
let node: Node | null = null;
while ((node = walker.nextNode())) {
if (node.nodeValue && (node.nodeValue.match(/\n/g) || []).length >= 2) {
containsNewlines = true;
break;