Kaynağa Gözat

fix conditional branches

kosei-n 2 yıl önce
ebeveyn
işleme
1b41c7da42

+ 1 - 1
packages/editor/src/services/paste-util/paste-markdown-util.ts

@@ -38,7 +38,7 @@ export const adjustPasteData = (strFromBol: string, text: string): string => {
     if (replacedLines == null) {
       adjusted = '';
     }
-    else if (replacedLines.length === 1 && !matchResult) {
+    else if (!matchResult) {
       adjusted = `${replacedLines.join('')}\n`;
     }
     else {