From 84371ed4561484e362a2072aa987b109f9bc60db Mon Sep 17 00:00:00 2001 From: Đỗ Văn Hoài Tuân Date: Thu, 4 May 2023 17:47:31 -0700 Subject: TextReplace: Fix Linebreak (#1057) --- src/plugins/textReplace.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/textReplace.tsx b/src/plugins/textReplace.tsx index 431b129..b685f80 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")} />