Make links clickable in profile view

This commit is contained in:
Lionello Lunesu
2022-12-28 13:29:18 -08:00
parent a67cd2a841
commit 75c67bc1e9
3 changed files with 90 additions and 3 deletions

View File

@@ -143,7 +143,9 @@ struct ProfileView: View {
}
}
}
static let markdownHelper = Markdown()
var DMButton: some View {
let dm_model = damus_state.dms.lookup_or_create(profile.pubkey)
let dmview = DMChatView(damus_state: damus_state, pubkey: profile.pubkey)
@@ -179,7 +181,6 @@ struct ProfileView: View {
DMButton
if profile.pubkey != damus_state.pubkey {
FollowButtonView(
target: profile.get_follow_target(),
@@ -196,7 +197,7 @@ struct ProfileView: View {
ProfileNameView(pubkey: profile.pubkey, profile: data, contacts: damus_state.contacts)
.padding(.bottom)
Text(data?.about ?? "")
Text(ProfileView.markdownHelper.process(data?.about ?? ""))
.font(.subheadline)
Divider()