diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-05-09 21:08:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-09 21:08:56 +0100 |
commit | becc708c610015c510edeac87394b3f77ac4ed06 (patch) | |
tree | 12e45c8f3d3d32c1bed1a05cc908cf903162a133 /src/lib | |
parent | 03b2796976b1f7232e5466dfbea83de4171d16c3 (diff) | |
download | voidsky-becc708c610015c510edeac87394b3f77ac4ed06.tar.zst |
[🐴] Rich text in messages (#3926)
* add facets to message * richtext messages * undo richtexttag changes * whoops, don't redetect facets * dont set color directly * shorten links and filter invalid facets * fix link shortening * pass in underline style
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/strings/rich-text-manip.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/strings/rich-text-manip.ts b/src/lib/strings/rich-text-manip.ts index d9cd8c071..508e0772e 100644 --- a/src/lib/strings/rich-text-manip.ts +++ b/src/lib/strings/rich-text-manip.ts @@ -1,4 +1,5 @@ import {RichText, UnicodeString} from '@atproto/api' + import {toShortUrl} from './url-helpers' export function shortenLinks(rt: RichText): RichText { |