Explorar o código

fix conditional branches

kosei-n %!s(int64=2) %!d(string=hai) anos
pai
achega
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 {