From 84371ed4561484e362a2072aa987b109f9bc60db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90=E1=BB=97=20V=C4=83n=20Ho=C3=A0i=20Tu=C3=A2n?= Date: Thu, 4 May 2023 17:47:31 -0700 Subject: [PATCH] TextReplace: Fix Linebreak (#1057) --- src/plugins/textReplace.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/textReplace.tsx b/src/plugins/textReplace.tsx index 431b129d..b685f803 100644 --- a/src/plugins/textReplace.tsx +++ b/src/plugins/textReplace.tsx @@ -153,7 +153,7 @@ function TextReplace({ title, rulesArray, rulesKey }: TextReplaceProps) { onChange(e, index, "replace")} + onChange={e => onChange(e.replaceAll("\\n", "\n"), index, "replace")} />