Closed davidmehren closed 2 years ago
Markdown-it uses linkify-it for link detection.
This has a function .tlds()
which allows to set custom tlds.
If you don't do this then linkify falls back to a built in list.
However. Markdown it doesn't offer a possibility to configure its linkify-it instance.
So we need to live with it and tell people to use the markdown link syntax or create our own linkify-plugin.
We could also open an issue / PR with markdown-it enabling the configuration of linkify-it.
Remove my last sentence. Reading docs helps.
https://markdown-it.github.io/markdown-it/
So. It's possible if we import tlds and stuff that into linkify after the creation of the markdown-it-instance.
Which part of the project should be enhanced? The...renderer? auto-linkifier?
Is your enhancement request related to a problem? Please describe. If I add plain links to my Markdown document using TLDs like .de or .com, they automatically are converted into links. The .rocks TLD is not auto-converted:
Describe the solution you'd like All links with domains from the public suffix list should be auto-linkified.
Describe alternatives you've considered Keep the current system that provides a confusing user-experience.
Additional context