Mlem icon indicating copy to clipboard operation
Mlem copied to clipboard

Lemmy links are not correctly recognised

Open mormaer opened this issue 2 years ago • 1 comments

Describe the bug When viewing posts that uses links in the format [email protected], the MarkdownView only recognises the [email protected] portion and returns it as a mailto: link.

Expected Behavior The application will recognise Lemmy style links correctly.

Actual Behavior Tapping on one of these links currently crashes the application, however this should be resolved by #143.

To Reproduce Browse to a post that includes links in this style and tap it. (the newcommunities feed has many)

Mlem Information: 0.0.6 (22)

mormaer avatar Jun 14 '23 09:06 mormaer

As discussed in the development chat room, one consideration when looking at this is if we want to use ~our lord and saviour~ Christian's open sourced mark down editor -> https://github.com/christianselig/Markdownosaur

This is built for UIKit, but we could convert the output into an AttributedString for native use in SwiftUI, failing that we can perhaps use it as a reference for anything we're building ourselves to handle lemmydown

mormaer avatar Jun 20 '23 21:06 mormaer