Skip to content

Commit

Permalink
Fix duplicate img in feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Dianliang233 committed Mar 13, 2022
1 parent 77245b3 commit 008ea59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/userscript/src/utils/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 008ea59

Please sign in to comment.