AgregoreWeb / extension-agregore-renderer

A generalized Markdown/Gemini/ETC content renderer for Agregore. Replaces the old Markdown/Gemini renderers
GNU Affero General Public License v3.0
1 stars 4 forks source link

Detect links in JSON strings #2

Closed RangerMauve closed 2 years ago

RangerMauve commented 2 years ago

If a string in JSON looks like a link, we should turn it into an href so that it can be clicked on.

This should also apply for relative URLs like ./ or ../

RangerMauve commented 2 years ago

We should also detect ipld:// URLs yielding dag-JSON content which looks like {"/": "CID here"} and auto convert those strings to point at ipld://${cid}/ URLs so that data could be easily traversed.