Skip to content

Fix plain text links in citations - #1022

Open
aakashsbhatia2 wants to merge 3 commits into
mozilla:mainfrom
aakashsbhatia2:fix/plain-text-links
Open

Fix plain text links in citations#1022
aakashsbhatia2 wants to merge 3 commits into
mozilla:mainfrom
aakashsbhatia2:fix/plain-text-links

Conversation

@aakashsbhatia2

Copy link
Copy Markdown

This fixes issue - #1016

It seems like the issue is in the scoring algorithm. The end links are scored higher than the article content causing it to take precedence. I updated _getLinkDensity() to consider urls not wrapped in <a> tags as well. Added the source as a test case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant