Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gemini URI scheme #9968

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Add gemini URI scheme #9968

merged 1 commit into from
Sep 10, 2024

Conversation

prodrigestivill
Copy link
Contributor

In order to detect properly gemini:// links I propose to add it as an unofficial URI scheme.

More info regarding this scheme at wikipedia and their official website.

@prodrigestivill
Copy link
Contributor Author

If somebody requires it, as a workarround this lua filter or similar can be used using --lua-filter=filter.lua:

-- Fix gemini:// links
function Link(el)
  protopos = string.find(el.target, "/gemini://")
  if protopos then
    el.target = string.sub(el.target, protopos + 1);
  end
  return el
end

@jgm jgm merged commit b7bcc42 into jgm:main Sep 10, 2024
9 of 12 checks passed
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