diff --git a/src/descriptionFormatter.ts b/src/descriptionFormatter.ts index 4f26ff0..e61a821 100644 --- a/src/descriptionFormatter.ts +++ b/src/descriptionFormatter.ts @@ -347,7 +347,7 @@ async function formatDescription( case "blockquote": { const paragraph = await stringyfy(ast, "", mdAst); - return `${intention}> ${paragraph + return `\n\n> ${paragraph .trim() .replace(/(\n+)/g, `$1${intention}> `)}`; } diff --git a/tests/main.test.ts b/tests/main.test.ts index 94e045c..563f1e3 100755 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -760,6 +760,10 @@ test("Block quote", async () => { `); expect(result2).toMatchSnapshot(); + + const result3 = await subject(result2); + + expect(result3).toMatch(result2); }); test("File with just an import", async () => {