#46 Add support of Markdown media type

Open
opened 2 months ago by nxshock · 1 comments
nxshock commented 2 months ago

It will be nice to view text/markdown media type in Ariane. Is it possible?

It will be nice to view `text/markdown` media type in Ariane. Is it possible?
Owner

I had contemplated this before but the best way of doing it would be to require Markwon as a dependency (the best md parser for Android: https://github.com/noties/Markwon - I've used it before, it's great) - and I don't want to use any unneccesary 3rd party dependencies in Ariane.

The second issue is Markdown is plentiful in Geminispace but only because it was a quick win to expose loads of existing content that way - Gemtext should be the preferred information transport, so I'd expect the ratio to change ever more in favour of Gemtext over time (you can use GUS to see the filetype count in Geminispace).

Markdown may also contain relative links - it'd quickly become an app within an app to implement properly.

A better solution, to stop Ariane trying to do too much and becoming difficult to maintain, might be to offer the file as a download and then immediately query for any intents that can handle the mime type and launch if one is available.

This is how MP3s are now handled (after previously having an in-app player), and it would also be a better solution for .txt files too (currently rendered in-app).

I had contemplated this before but the best way of doing it would be to require Markwon as a dependency (the best md parser for Android: https://github.com/noties/Markwon - I've used it before, it's great) - and I don't want to use any unneccesary 3rd party dependencies in Ariane. The second issue is Markdown is plentiful in Geminispace but only because it was a quick win to expose loads of existing content that way - Gemtext should be the preferred information transport, so I'd expect the ratio to change ever more in favour of Gemtext over time (you can use GUS to see the filetype count in Geminispace). Markdown may also contain relative links - it'd quickly become an app within an app to implement properly. A better solution, to stop Ariane trying to do too much and becoming difficult to maintain, might be to offer the file as a download and then immediately query for any intents that can handle the mime type and launch if one is available. This is how MP3s are now handled (after previously having an in-app player), and it would also be a better solution for .txt files too (currently rendered in-app).
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.