Files
paseo/packages/react-native-enriched-markdown/lib/module/web
40c5accf2a feat(app): add a copy control to Markdown quotes
Agents often write drafts as quotes meant to be pasted elsewhere. A plain
quote now copies its body, without the `>` markers and with its nested
Markdown, on web, Android and iOS. A nested quote, a code block or a
Mermaid diagram inside it keeps its own control. Admonitions and quotes
inside list items get no control.

Web reads the rendered quote at press time, so a streaming quote copies
what it shows, and writes the same two clipboard flavors as selection
copy. A rendered Mermaid diagram copies as its fence. Code blocks and
quotes share one copy button with a Copied state and an error toast when
the clipboard refuses the write. On compact layouts the control is always
visible and sits in a band above the quote body; on wide layouts it shows
on hover or focus and the quote keeps a right gutter.

Native code blocks and quotes share one header copy control with the
Lucide Copy glyph. A quote reserves the code block's header band above
its body, so the control never covers text at any font size. Native copy
emits the quote body as written.

Co-authored-by: Pedro Vieira <pedro.vieira@dremio.com>
Co-authored-by: Phieu Dinh <phieu@fiu.one>
2026-11-23 15:43:20 +01:00
..