MyST-Parser icon indicating copy to clipboard operation
MyST-Parser copied to clipboard

No way to escape URLs so they don't linkify

Open asmeurer opened this issue 3 years ago • 2 comments
trafficstars

Describe the bug

The linkify extension seems to think that things like stuff.py are URLs. .py doesn't seem to be a TLD listed at https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains. But either way, there doesn't seem to be a way to escape the text so that it doesn't render it as a URL. I tried stuff\.py, but this still renders as "stuff.py".

Reproduce the bug

Enable the linkify extension and create a file with "something.py".

List your environment

linkify-it-py 2.0.0 myst-parser 0.18.1

asmeurer avatar Oct 14 '22 22:10 asmeurer

just FYI, '.py' is a tld. And shouldn't this be an issue at linkify-it-py and not here?

https://nic.py/ https://data.iana.org/TLD/tlds-alpha-by-domain.txt

jonas-w avatar Jan 26 '23 09:01 jonas-w

just FYI, '.py' is a tld. And shouldn't this be an issue at linkify-it-py and not here?

I would raise this with linkify-it-py

Happy to consider adding "configurability" for linkify in myst-parser, if they offer any for this sort of thing

chrisjsewell avatar Feb 10 '23 01:02 chrisjsewell