Skip to content

Commit d42fb8e

Browse files
committed
feat(static-renderer): add markdown output support
1 parent 7601c36 commit d42fb8e

File tree

7 files changed

+1051
-222
lines changed

7 files changed

+1051
-222
lines changed

package-lock.json

+19-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/static-renderer/package.json

+26-4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@
5454
},
5555
"import": "./dist/pm/html-string/index.js",
5656
"require": "./dist/pm/html-string/index.cjs"
57+
},
58+
"./pm/markdown": {
59+
"types": {
60+
"import": "./dist/pm/markdown/index.d.ts",
61+
"require": "./dist/pm/markdown/index.d.cts"
62+
},
63+
"import": "./dist/pm/markdown/index.js",
64+
"require": "./dist/pm/markdown/index.cjs"
5765
}
5866
},
5967
"main": "dist/index.cjs",
@@ -63,10 +71,27 @@
6371
"src",
6472
"dist"
6573
],
66-
"dependencies": {
74+
"devDependencies": {
75+
"@tiptap/extension-text-style": "^3.0.0-next.1",
76+
"@tiptap/extension-text-align": "^3.0.0-next.1",
77+
"@tiptap/starter-kit": "^3.0.0-next.1",
78+
"@tiptap/core": "^3.0.0-next.1",
79+
"@tiptap/pm": "^3.0.0-next.1",
80+
"@types/react": "^18.2.14",
81+
"@types/react-dom": "^18.2.6",
82+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
83+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
84+
},
85+
"peerDependencies": {
6786
"@tiptap/core": "^3.0.0-next.1",
6887
"@tiptap/pm": "^3.0.0-next.1"
6988
},
89+
"optionalDependencies": {
90+
"@types/react": "^18.2.14",
91+
"@types/react-dom": "^18.2.6",
92+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
93+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
94+
},
7095
"repository": {
7196
"type": "git",
7297
"url": "https://github.com/ueberdosis/tiptap",
@@ -75,8 +100,5 @@
75100
"scripts": {
76101
"clean": "rm -rf dist",
77102
"build": "npm run clean && tsup"
78-
},
79-
"publishConfig": {
80-
"access": "public"
81103
}
82104
}

packages/static-renderer/src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
export * from './helpers.js'
2+
export * from './json/html-string/index.js'
3+
export * from './json/react/index.js'
4+
export * from './pm/html-string/index.js'
5+
export * from './pm/react/index.js'
26
export * from './types.js'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from '../extensionRenderer.js'
2+
export * from './markdown.js'

0 commit comments

Comments
 (0)