Ryan Barrett
Ryan Barrett
I hoped I could fix this by extracting links and converting them to facets _before_ [calling `html_to_markdown` here](https://github.com/snarfed/granary/blob/1a15c241b8ccf158cff55194c11d87cf1644378d/granary/bluesky.py#L723-L732), but `html_to_markdown` returns entirely new text, so the indices would be off....
...and `html2text` doesn't escape `]` characters in its output Markdown link text, which is what `test_bluesky.BlueskyTest.test_from_as1_html_link` tests. Maybe I can reuse these, from `html2text.config`: ```py RE_SLASH_CHARS = r"\`*_{}[]()#+-.!" RE_MD_BACKSLASH_MATCHER =...
I wonder if there's a simpler partial fix or workaround here. Or even less ambitious, I wonder if it'd be better in the short term to just turn off Bluesky...
Need to prioritize this now due to https://github.com/bluesky-social/atproto/discussions/3036
(...or not.)
The reason _not_ to do this is that we'll eventually want to bridge non-`app.bsky` apps, #1178, which will have firehoses but not necessarily jetstreams.
Yes! You're right, every character does count when you're counting characters. It's funny too, a number of other people have asked for us to put _more_ into these bridging disclaimers,...
@jfietkau good idea! Sadly I tried it just now and it doesn't work, bsky.app's auto-linker ignores the ZWS and included the characters after it in the link.
Done! Switched to using the 🌉 emoji, ie: > 🌉 bridged from [bsky.app/profile/snarfed.bsky.social](https://bsky.app/profile/snarfed.bsky.social) on Bluesky by [fed.brid.gy](https://fed.brid.gy/) Suggested by someone on here, but I can't find who/where. Thank you anyway!