Lim Chee Aun
d4dce2fa45
Differentiate username displays
...
When there're mentions of multiple same username + different instances in a post
2023-09-03 10:07:06 +08:00
Lim Chee Aun
39d96f22a0
Make code blocks focusable
2023-09-02 20:49:25 +08:00
Lim Chee Aun
ccd79e5348
Further polish hashtag stuffing logic
2023-08-20 10:17:56 +08:00
Lim Chee Aun
de10faee88
Further apply text color to links
2023-08-18 13:48:45 +08:00
Lim Chee Aun
cab2e47a77
Perf fixes
2023-06-11 23:31:14 +08:00
Lim Chee Aun
d95ef309ca
Quick fix html escaping bug
2023-05-08 12:08:26 +08:00
Lim Chee Aun
338b556e34
Only consider "stuffing" if there are more than 3 hashtags
2023-04-23 22:00:32 +08:00
Lim Chee Aun
861a596d4e
Fix double ## and scan all links instead
2023-04-23 09:02:19 +08:00
Lim Chee Aun
8d42e33f71
Small tooltip for hashtag stuffing
2023-04-23 08:55:22 +08:00
Lim Chee Aun
7a7693ae52
New feature: hashtag stuffing collapsing
2023-04-20 18:56:22 +08:00
Lim Chee Aun
b2827e690d
Better handling of mentions
2023-04-20 13:40:42 +08:00
Lim Chee Aun
5598059715
Spanify un-spanned mentions
2023-04-14 21:02:29 +08:00
Lim Chee Aun
82c8247ac8
Fix infinite loop bug!!
2023-02-17 01:54:19 +08:00
Lim Chee Aun
7aba448f42
Handle multi-paragraph code blocks
...
This ain't going to be fun if the HTML gets messier in the future
2023-02-16 21:51:22 +08:00
Lim Chee Aun
334584ecef
Fix HTML inside code blocks being rendered
2022-12-26 18:04:49 +08:00
Lim Chee Aun
31e2196cd6
Safeguard for unknown HTML cases in status content
...
1. Mark up code blocks first because anything inside code blocks cannot be "enhanced".
2. Set default rejects for elements that don't need to be "enhanced". Not a complete list but best-effort. Probably allowlist works better than blocklist, but some content doesn't even start with any parent nodes.
2022-12-23 09:20:34 +08:00
Lim Chee Aun
1c98433333
Linkify twitter usernames
...
This is due to some folks cross-posting from Twitter.
2022-12-23 00:40:25 +08:00
Lim Chee Aun
d0579a57d6
Fix bug when text nodes contain HTML <>
...
Text nodes don't escape them
2022-12-17 17:24:26 +08:00
Lim Chee Aun
665b908698
Put names into every export
2022-12-16 13:27:04 +08:00
Lim Chee Aun
3e80ee03f3
Simpler code for content enhancement
...
Also fixed some shortcodes not converted
2022-12-13 20:15:02 +08:00
Lim Chee Aun
d32d9c62eb
Style backtick inline codes
...
The tree walker code is generated via Copilot, hope it works
2022-12-12 21:51:59 +08:00
Lim Chee Aun
039d4661fb
Remove target=_blank from username links
...
Mobile Safari ignores the click preventDefault and not show the Account popover. Removing target_blank fixes this ignorance
Kinda hacky fix for now
2022-12-11 09:28:02 +08:00
Lim Chee Aun
b26f1204c7
Enhance the account note and make sure links open in new window
2022-12-10 19:16:11 +08:00
Lim Chee Aun
2b9390a0a1
Initial commit
2022-12-10 17:14:48 +08:00