Skip to content

Commit

Permalink
Ensure parity between blockquote formats
Browse files Browse the repository at this point in the history
  • Loading branch information
sxxov committed Mar 24, 2024
1 parent 7a884b6 commit 49e0538
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/descriptionFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}> `)}`;
}
Expand Down
4 changes: 4 additions & 0 deletions tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 49e0538

Please sign in to comment.