1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00

perf(readability): move transformMisusedDivsIntoParagraphs call after removeUnlikelyCandidates

This commit is contained in:
Julien Voisin 2025-07-13 23:34:14 +02:00 committed by GitHub
parent 4679691c94
commit 86e2ce6d0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,8 +86,8 @@ func ExtractContent(page io.Reader) (baseURL string, extractedContent string, er
document.Find("script,style").Remove() document.Find("script,style").Remove()
transformMisusedDivsIntoParagraphs(document)
removeUnlikelyCandidates(document) removeUnlikelyCandidates(document)
transformMisusedDivsIntoParagraphs(document)
candidates := getCandidates(document) candidates := getCandidates(document)
topCandidate := getTopCandidate(document, candidates) topCandidate := getTopCandidate(document, candidates)