From 008ea595cd241676f9220133f3fc2aba7ca77000 Mon Sep 17 00:00:00 2001 From: Dianliang233 Date: Sun, 13 Mar 2022 10:03:44 +0800 Subject: [PATCH] Fix duplicate img in feedback --- packages/userscript/src/utils/converter.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/userscript/src/utils/converter.ts b/packages/userscript/src/utils/converter.ts index d0cf01e..fff9671 100644 --- a/packages/userscript/src/utils/converter.ts +++ b/packages/userscript/src/utils/converter.ts @@ -436,6 +436,8 @@ export const converters = { return '' } else if (ele.innerHTML === ' ') { return '\n' + } else if (/\s{0,}/.test(ele.textContent!) && ele.querySelectorAll('img').length === 1) { + return inner } else { if (ctx.inList) { ans = inner