Skip to content

Commit

Permalink
feat(static-renderer): add markdown output support
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Dec 4, 2024
1 parent f70337f commit 479d895
Show file tree
Hide file tree
Showing 7 changed files with 1,051 additions and 222 deletions.
64 changes: 19 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 26 additions & 4 deletions packages/static-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@
},
"import": "./dist/pm/html-string/index.js",
"require": "./dist/pm/html-string/index.cjs"
},
"./pm/markdown": {
"types": {
"import": "./dist/pm/markdown/index.d.ts",
"require": "./dist/pm/markdown/index.d.cts"
},
"import": "./dist/pm/markdown/index.js",
"require": "./dist/pm/markdown/index.cjs"
}
},
"main": "dist/index.cjs",
Expand All @@ -63,10 +71,27 @@
"src",
"dist"
],
"dependencies": {
"devDependencies": {
"@tiptap/extension-text-style": "^3.0.0-next.1",
"@tiptap/extension-text-align": "^3.0.0-next.1",
"@tiptap/starter-kit": "^3.0.0-next.1",
"@tiptap/core": "^3.0.0-next.1",
"@tiptap/pm": "^3.0.0-next.1",
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependencies": {
"@tiptap/core": "^3.0.0-next.1",
"@tiptap/pm": "^3.0.0-next.1"
},
"optionalDependencies": {
"@types/react": "^18.2.14",
"@types/react-dom": "^18.2.6",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ueberdosis/tiptap",
Expand All @@ -75,8 +100,5 @@
"scripts": {
"clean": "rm -rf dist",
"build": "npm run clean && tsup"
},
"publishConfig": {
"access": "public"
}
}
4 changes: 4 additions & 0 deletions packages/static-renderer/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
export * from './helpers.js'
export * from './json/html-string/index.js'
export * from './json/react/index.js'
export * from './pm/html-string/index.js'
export * from './pm/react/index.js'
export * from './types.js'
2 changes: 2 additions & 0 deletions packages/static-renderer/src/pm/markdown/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from '../extensionRenderer.js'
export * from './markdown.js'
Loading

0 comments on commit 479d895

Please sign in to comment.