Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblickhan committed Jul 7, 2024
1 parent 3fca928 commit 38ce8d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ describe("handles quotes around inline code", async () => {
});
});

it("handles quotes after blockquotes", async () => {
const file = await process('> blockquote \n\n"after blockquote"');
expect(file.toString()).toMatchInlineSnapshot(`
"> blockquote \n\n“after blockquote”"
"`);
});

describe("should ignore parent nodes", () => {
const mdxCompiler = remark().use(remarkMdx).use(remarkSmartypants);
const process = mdxCompiler.process.bind(mdxCompiler);
Expand Down

0 comments on commit 38ce8d7

Please sign in to comment.