Skip to content

Commit ce95b6a

Browse files
committed
🐛(y-provider) fix interlinking markdown test for blocknote 0.51.4
The 0.51.4 markdown serializer no longer emits the optional link title attribute, so the exported link is `[text](url)` without ` "title"`. The title is still present in the HTML export. Update the expectation to match.
1 parent a729770 commit ce95b6a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/frontend/servers/y-provider/__tests__/convert.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,10 @@ describe('Conversion Testing', () => {
472472
.send(Buffer.from(yjsUpdate));
473473

474474
expect(response.status).toBe(200);
475+
// The markdown serializer keeps the link text and URL but drops the
476+
// optional title attribute (still present in the HTML export).
475477
expect(response.text).toContain(
476-
'[Other doc](http://localhost:3000/docs/00000000-0000-0000-0000-000000000123/ "Other doc")',
478+
'[Other doc](http://localhost:3000/docs/00000000-0000-0000-0000-000000000123/)',
477479
);
478480
});
479481

0 commit comments

Comments
 (0)