mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Rich messages (RichTextMessageAttribute, text == "") are copyable as markdown two ways: the context-menu Copy action copies the whole message, and a text selection inside the rich-data bubble copies just the selected range. Both reconstruct markdown mirroring the edit round-trip (markdownStringFromInstantPage). Implements the full RichText entity case set (mention/hashtag/cashtag/bot-command/bank-card/auto url/email/phone) with tap interaction, the InstantPage -> markdown inverse converter and edit round-trip, markdown-context stamping during V2 layout (InstantPageMarkdownBlockContext: heading level, list/code/table/quote depth), partial-selection markdown emission (InstantPageMultiTextAdapter.markdownForRange), and numerous converter edge-case fixes (tables, links, fenced code, blockquote line coalescing, compact nested >> markers). CLAUDE.md documents the feature; the spec/plan scratch docs generated during development are not committed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Sources | ||
| BUILD | ||