Commit 502e565

benny-dou <60535774+benny-dou@users.noreply.github.com>
2026-04-22 03:12:02
fix(twitter): handle MARKDOWN entity type
1 parent 6e32565
Changed files (1)
src
preview
src/preview/twitter.py
@@ -553,6 +553,8 @@ def parse_article(article: dict) -> dict:
                 elif e_type == "TWEET":
                     if tweet_id := glom(entity, "data.tweetId", default=""):
                         texts += f"[QuoteTweet](https://x.com/i/status/{tweet_id})"
+                elif e_type == "MARKDOWN":
+                    texts += glom(entity, "data.markdown", default="")
         return texts
 
     markdown = ""