Clickable usernames and hashtags

Should work well enough. Report edge cases.
This commit is contained in:
Cadence Fish
2020-02-04 03:30:19 +13:00
parent 1fcdfce868
commit 0ea95d1943
9 changed files with 105 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
include includes/timeline_page.pug
include includes/next_page_button.pug
include includes/display_structured
- const numberFormat = new Intl.NumberFormat().format
@@ -30,7 +31,8 @@ html
else
h1.full-name= `@${user.data.username}`
if !user.fromReel
p.bio= user.data.biography
p.structured-text.bio
+display_structured(user.getStructuredBio())
if user.data.external_url
p.website
a(href=user.data.external_url)= user.data.external_url