diff --git a/app/components/home.tsx b/app/components/home.tsx
index 10f58ebe..da65b1d6 100644
--- a/app/components/home.tsx
+++ b/app/components/home.tsx
@@ -439,6 +439,7 @@ export function Chat(props: {
className="markdown-body"
style={{ fontSize: `${fontSize}px` }}
onContextMenu={(e) => onRightClick(e, message)}
+ onDoubleClickCapture={() => setUserInput(message.content)}
>
diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx
index 6e0e6d86..6d3cd0bf 100644
--- a/app/components/markdown.tsx
+++ b/app/components/markdown.tsx
@@ -1,6 +1,7 @@
import ReactMarkdown from "react-markdown";
import "katex/dist/katex.min.css";
import RemarkMath from "remark-math";
+import RemarkBreaks from "remark-breaks";
import RehypeKatex from "rehype-katex";
import RemarkGfm from "remark-gfm";
import RehypePrsim from "rehype-prism-plus";
@@ -29,7 +30,7 @@ export function PreCode(props: { children: any }) {
export function Markdown(props: { content: string }) {
return (