diff --git a/package-lock.json b/package-lock.json index 50ae1c3..5ee259a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,17 +11,19 @@ "@codemirror/lang-css": "^6.3.1", "@codemirror/lang-html": "^6.4.9", "@codemirror/lang-javascript": "^6.2.3", + "@fsegurai/codemirror-theme-github-light": "^6.1.2", "@vueuse/core": "^12.7.0", "codemirror": "^6.0.1", "github-markdown-css": "^5.8.1", + "highlight.js": "^11.11.1", "marked": "^15.0.7", + "marked-highlight": "^2.2.1", "naive-ui": "^2.41.0", "normalize.css": "^8.0.1", "vue": "^3.5.13", "vue-codemirror": "^6.1.1" }, "devDependencies": { - "@codemirror/state": "^6.5.2", "@iconify/vue": "^4.3.0", "@rsbuild/core": "^1.2.11", "@rsbuild/plugin-vue": "^1.0.6", @@ -226,6 +228,18 @@ "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", "license": "MIT" }, + "node_modules/@fsegurai/codemirror-theme-github-light": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@fsegurai/codemirror-theme-github-light/-/codemirror-theme-github-light-6.1.2.tgz", + "integrity": "sha512-B/YvJ4mx1EuY5WvN+RrFd3uHoFhXiTZRDmSVEyctb/pQonKpgkblVN+FvLt9iRfVTJkkyBavjXJzT16ClaZcDg==", + "license": "MIT", + "peerDependencies": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.0.0", + "@lezer/highlight": "^1.0.0" + } + }, "node_modules/@iconify/types": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", @@ -1846,6 +1860,15 @@ "node": ">= 18" } }, + "node_modules/marked-highlight": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/marked-highlight/-/marked-highlight-2.2.1.tgz", + "integrity": "sha512-SiCIeEiQbs9TxGwle9/OwbOejHCZsohQRaNTY2u8euEXYt2rYUFoiImUirThU3Gd/o6Q1gHGtH9qloHlbJpNIA==", + "license": "MIT", + "peerDependencies": { + "marked": ">=4 <16" + } + }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", diff --git a/package.json b/package.json index 7bb7388..8c49e25 100644 --- a/package.json +++ b/package.json @@ -12,17 +12,19 @@ "@codemirror/lang-css": "^6.3.1", "@codemirror/lang-html": "^6.4.9", "@codemirror/lang-javascript": "^6.2.3", + "@fsegurai/codemirror-theme-github-light": "^6.1.2", "@vueuse/core": "^12.7.0", "codemirror": "^6.0.1", "github-markdown-css": "^5.8.1", + "highlight.js": "^11.11.1", "marked": "^15.0.7", + "marked-highlight": "^2.2.1", "naive-ui": "^2.41.0", "normalize.css": "^8.0.1", "vue": "^3.5.13", "vue-codemirror": "^6.1.1" }, "devDependencies": { - "@codemirror/state": "^6.5.2", "@iconify/vue": "^4.3.0", "@rsbuild/core": "^1.2.11", "@rsbuild/plugin-vue": "^1.0.6", diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 5ca6da7..87c2175 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -1,7 +1,7 @@