WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f3bb5c1

Browse files
authored
fix(markdown): downgrade marked to v15 for CommonJS compatibility (#7241)
Downgraded the marked dependency from v16 to v15 to restore CommonJS support. The marked v16+ package is ESM-only and causes ERR_REQUIRE_ESM errors when used in CommonJS environments with require(). This change ensures @tiptap/markdown works in both ESM and CommonJS Node.js projects.
1 parent 95d3e80 commit f3bb5c1

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tiptap/markdown': patch
3+
---
4+
5+
Fixed CommonJS compatibility by downgrading `marked` dependency from v16 to v15.

packages/markdown/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"dist"
3535
],
3636
"dependencies": {
37-
"marked": "^16.1.2"
37+
"marked": "^15.0.12"
3838
},
3939
"devDependencies": {
4040
"@tiptap/core": "workspace:^",

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)