From ce476bb6785917b0976dfd80cab8e24df4e56a94 Mon Sep 17 00:00:00 2001 From: "@gapmiss" Date: Sat, 18 Jul 2026 16:06:53 -0500 Subject: [PATCH] fix: add eslint-disable for prefer-create-el false positive on DOMParser document --- src/converter.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/converter.ts b/src/converter.ts index 8dd3982..4d6efd3 100644 --- a/src/converter.ts +++ b/src/converter.ts @@ -17,10 +17,12 @@ function replaceVideoDivs(html: string, downloadedUrls: Set): string { if (id.length !== 42) continue; const videoId = id.replace('media-', ''); const videoUrl = `https://substack.com/api/v1/video/upload/${videoId}/src`; + // eslint-disable-next-line obsidianmd/prefer-create-el -- DOMParser document, not Obsidian DOM const p = doc.createElement('p'); if (downloadedUrls.has(videoUrl)) { p.textContent = `VIDEOEMBED${videoId}ENDVIDEO`; } else { + // eslint-disable-next-line obsidianmd/prefer-create-el -- DOMParser document, not Obsidian DOM const a = doc.createElement('a'); a.href = videoUrl; a.textContent = 'Video';