Skip to content

Commit 038da20

Browse files
feat: add markdown & mindmap viewer (#546)
* fix(snippets): initialize selectedSnippetIds with state snippetId * feat(ui): active state in ActionButton * feat(editor): add mindmap * fix(editor): toggle off markdown functionality if lang non md * feat(editor): watch selectedSnippetContent to trigger update mindmap
1 parent 035c59a commit 038da20

11 files changed

Lines changed: 495 additions & 23 deletions

File tree

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"codemirror": "^5.65.18",
4343
"codemirror-textmate": "^1.1.0",
4444
"date-fns": "^4.1.0",
45+
"dom-to-image": "^2.6.0",
4546
"electron-store": "^8.2.0",
4647
"elysia": "^1.2.15",
4748
"fs-extra": "^11.3.0",
@@ -51,6 +52,8 @@
5152
"ky": "^1.7.5",
5253
"lucide-vue-next": "^0.476.0",
5354
"marked": "^15.0.8",
55+
"markmap-lib": "^0.18.11",
56+
"markmap-view": "^0.18.10",
5457
"mermaid": "^11.6.0",
5558
"onigasm": "^2.2.5",
5659
"prettier": "^3.5.3",
@@ -69,6 +72,7 @@
6972
"@tailwindcss/vite": "^4.0.9",
7073
"@types/better-sqlite3": "^7.6.12",
7174
"@types/codemirror": "^5.60.15",
75+
"@types/dom-to-image": "^2.6.7",
7276
"@types/fs-extra": "^11.0.4",
7377
"@types/node": "^22.10.8",
7478
"@types/sanitize-html": "^2.15.0",

0 commit comments

Comments
 (0)