Parse links in profiles
Changelog-Added: Parse links in profiles
This commit is contained in:
@@ -152,7 +152,9 @@ struct ProfileView: View {
|
||||
.environmentObject(user_settings)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static let markdown = 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)
|
||||
@@ -188,7 +190,6 @@ struct ProfileView: View {
|
||||
|
||||
DMButton
|
||||
|
||||
|
||||
if profile.pubkey != damus_state.pubkey {
|
||||
FollowButtonView(
|
||||
target: profile.get_follow_target(),
|
||||
@@ -205,7 +206,7 @@ struct ProfileView: View {
|
||||
ProfileNameView(pubkey: profile.pubkey, profile: data, contacts: damus_state.contacts)
|
||||
.padding(.bottom)
|
||||
|
||||
Text(data?.about ?? "")
|
||||
Text(ProfileView.markdown.process(data?.about ?? ""))
|
||||
.font(.subheadline)
|
||||
|
||||
Divider()
|
||||
|
||||
Reference in New Issue
Block a user