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 support for gemini (gemtext) links #88

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Misterio77
Copy link

@Misterio77 Misterio77 commented Jun 17, 2022

Hey, thanks a lot for this plugin!

I've added support for gemtext-formatted links. This is a format pretty similar to markdown, and mostly used with the small-web gemini protocol.

There's some people using gemtext for their websites (gemtext can easily be converted to and from markdown or html), jekyll also works great when you want to have both a website and gemini capsule on the same project (my usecase).

This just basically adds a link_type and accompanying regex pattern for gemini-style links. Gemtext looks something like this:

# Heading 1

This is a paragraph

## Heading 2

Yo

=> ./file.gmi Link to my cool file

=> gemini://misterio.me Check out my website!

=> github.com

So the syntax is basically =>[whitespace]<url>[whitespace <Link title>].

I've also refactored the link_parts section a little bit.

Hoping this can be useful for other people, but I do understand if it's out of scope for this project and you prefer not to merge it.

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.

1 participant