Skip to content

Fix #97 -- Properly parse domain names in markdown links#98

Merged
amureki merged 3 commits into
mainfrom
97/domain-parsing
Aug 26, 2024
Merged

Fix #97 -- Properly parse domain names in markdown links#98
amureki merged 3 commits into
mainfrom
97/domain-parsing

Conversation

@amureki
Copy link
Copy Markdown
Member

@amureki amureki commented Aug 23, 2024

The problem is described in #97.

I had to introduce a library - tldextract to properly parse all varieties of domain names.

@amureki amureki self-assigned this Aug 23, 2024
@amureki amureki force-pushed the 97/domain-parsing branch from 9e5a5b3 to 7288a06 Compare August 23, 2024 09:10
@amureki amureki requested a review from codingjoe August 23, 2024 11:46
Copy link
Copy Markdown
Collaborator

@codingjoe codingjoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to introduce IO, but it is probably the best solution… since apparently germany is a valid domain name… who know this internet thing would ever succeed

Comment thread emark/utils.py Outdated
Comment thread emark/utils.py Outdated
amureki and others added 2 commits August 26, 2024 08:47
Co-authored-by: Johannes Maron <johannes@maron.family>
@amureki amureki merged commit 44231ac into main Aug 26, 2024
@amureki amureki deleted the 97/domain-parsing branch August 26, 2024 06:54
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.

2 participants