~sircmpwn/sr.ht#244: 
Allow gemini/gopher URLs in markdown

There are a number of gemini/gopher projects hosted on GitHub, such as https://sr.ht/~julienxx/Castor/ or https://sr.ht/~yotam/Shavit/ and it would be useful for markdown to be able to render gemini/gopher hyperlinks. I did a cursory look at the code and I believe this would be as simple as adding this line:

protocols=["http", "https", "mailto", "gemini", "gopher"],

after this line:

https://git.sr.ht/~sircmpwn/core.sr.ht/tree/a3703a393d53898f4378b3cc8b3170c56b1d1a92/srht/markdown.py#L134

I'd be happy to put together a patch for this, but I wanted to make sure this is a desired feature first -- I could imagine some reasons why you may not want this feature.

Thanks!

Status
RESOLVED FIXED
Submitter
~alexwennerberg
Assigned to
No-one
Submitted
4 years ago
Updated
4 years ago
Labels
No labels applied.

~sircmpwn 4 years ago

There are a number of gemini/gopher projects hosted on GitHub

I'll add this, but only if you apologise 😢

~alexwennerberg 4 years ago

~sircmpwn Haha, my bad 😓

~sircmpwn REPORTED FIXED 4 years ago

Register here or Log in to comment, or comment via email.