bouncepaw / mycorrhiza

🍄📑 Filesystem and git-based wiki engine for the independent web written in Go and using Mycomarkup as its primary markup language.
https://mycorrhiza.wiki
GNU Affero General Public License v3.0
310 stars 23 forks source link

Rocket links 2.0 #30

Closed bouncepaw closed 2 years ago

bouncepaw commented 3 years ago

Mycomarkup supports rocket link syntax in addition to regular [[link]] syntax. It is a legacy feature from times when gemtext was used and it will be supported forever.

Today I've noticed a cool feature in Notion: embedded links. They look like that: image

The engine fetches a title, a description, an image and shows them all together in a nice box. I think that'd fit rocket links perfectly.

One day I want to support Gemini front-end as well. It makes sense to display rocket links in gemtext render as is, without magic link embedding.

bouncepaw commented 3 years ago

Current syntax for rocket links does not rhyme with the rest of the markup. I mean, obligatory underscores for hypha names, display name after space. That's not how the rest is designed.

Gotta break the legacy of Gemtext somehow. Here's a better syntax:

=> hypha
=> hypha name with spaces
=> some hypha | display text

Such an update would be really breaking and not backwards-compatible in any way. So, how to implement it?

I guess there would be a need for a special utility (built-in, I guess) for migrating from older Mycomarkup to newer.

bouncepaw commented 2 years ago

Well, rocket links 2.0 meant link previews. We then thought that it's better to leave link previews for transclusion (which they basically are). Closing for now.