@type32/codemirror-rich-obsidian-editor 0.1.24 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
- https://github.com/nothingislost/obsidian-cm6-attributes
|
|
20
20
|
|
|
21
21
|
## Disclaimer
|
|
22
|
-
I have used Gemini 2.5 Pro + Gemini 3 Pro Preview + Claude Sonnet 4.5 in the process of developing this editor numerous times, so do expect errors or inconsistencies in some parts of the code.
|
|
22
|
+
I have used Gemini 2.5 Pro + Gemini 3 Pro Preview + Claude Sonnet 4.5 + Claude Sonnet 4.6 in the process of developing this editor numerous times, so do expect errors or inconsistencies in some parts of the code.
|
|
23
23
|
|
|
24
24
|
## Introduction
|
|
25
25
|
Do I even need an intro?
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -17,7 +17,39 @@ const module$1 = defineNuxtModule({
|
|
|
17
17
|
});
|
|
18
18
|
addImportsDir(resolver.resolve("runtime/composables"));
|
|
19
19
|
addImportsDir(resolver.resolve("runtime/utils"));
|
|
20
|
-
_nuxt.options.build.transpile.push(
|
|
20
|
+
_nuxt.options.build.transpile.push(
|
|
21
|
+
"alfaaz",
|
|
22
|
+
"js-yaml",
|
|
23
|
+
"lezer-markdown-obsidian",
|
|
24
|
+
"markdown-it-obsidian-callouts"
|
|
25
|
+
);
|
|
26
|
+
const codemirrorPackages = [
|
|
27
|
+
"@codemirror/state",
|
|
28
|
+
"@codemirror/view",
|
|
29
|
+
"@codemirror/language",
|
|
30
|
+
"@codemirror/autocomplete",
|
|
31
|
+
"@codemirror/commands",
|
|
32
|
+
"@codemirror/lang-markdown",
|
|
33
|
+
"@codemirror/lang-json",
|
|
34
|
+
"@codemirror/lang-yaml",
|
|
35
|
+
"@codemirror/language-data",
|
|
36
|
+
"@codemirror/search",
|
|
37
|
+
"@codemirror/lint",
|
|
38
|
+
"@lezer/common",
|
|
39
|
+
"@lezer/highlight",
|
|
40
|
+
"@lezer/markdown",
|
|
41
|
+
"codemirror",
|
|
42
|
+
"vue-codemirror6"
|
|
43
|
+
];
|
|
44
|
+
_nuxt.hook("vite:extendConfig", (config) => {
|
|
45
|
+
config.resolve ??= {};
|
|
46
|
+
config.resolve.dedupe ??= [];
|
|
47
|
+
config.resolve.dedupe.push(...codemirrorPackages);
|
|
48
|
+
config.optimizeDeps ??= {};
|
|
49
|
+
config.optimizeDeps.include ??= [];
|
|
50
|
+
config.optimizeDeps.exclude ??= [];
|
|
51
|
+
config.optimizeDeps.exclude.push(...codemirrorPackages);
|
|
52
|
+
});
|
|
21
53
|
_nuxt.options.alias["#codemirror-rich-obsidian-editor"] = resolver.resolve(
|
|
22
54
|
"./runtime/editor/types"
|
|
23
55
|
);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Extension } from "@codemirror/state";
|
|
2
|
+
export declare const editorInternalLinkAutocompletePlugin: Extension;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { LanguageSupport } from '@codemirror/language';
|
|
1
2
|
import type { Tree } from '@lezer/common';
|
|
2
3
|
/**
|
|
3
4
|
* Creates a markdown parser with standard OFM extensions
|
|
4
5
|
* This configuration is used consistently across the codebase
|
|
5
6
|
*/
|
|
6
|
-
export declare function createMarkdownParser():
|
|
7
|
+
export declare function createMarkdownParser(): LanguageSupport;
|
|
7
8
|
/**
|
|
8
9
|
* Parses markdown text to AST using the standard OFM parser configuration
|
|
9
10
|
* @param markdownText The markdown text to parse
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@type32/codemirror-rich-obsidian-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"description": "OFM Editor Component for Nuxt.",
|
|
5
5
|
"repository": "https://github.com/Type-32/codemirror-rich-obsidian",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,51 +35,103 @@
|
|
|
35
35
|
"test:types": "bunx vue-tsc --noEmit && cd playground && bunx vue-tsc --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@
|
|
38
|
+
"@nuxt/kit": "^4.3.1",
|
|
39
|
+
"alfaaz": "^1.1.0",
|
|
40
|
+
"js-yaml": "^4.1.1",
|
|
41
|
+
"lezer-markdown-obsidian": "^0.0.3",
|
|
42
|
+
"markdown-it": "^14.1.1",
|
|
43
|
+
"markdown-it-obsidian-callouts": "^0.3.3"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@catppuccin/codemirror": "^1.0.3",
|
|
39
47
|
"@codemirror/autocomplete": "^6.20.0",
|
|
40
48
|
"@codemirror/lang-json": "^6.0.2",
|
|
41
49
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
42
50
|
"@codemirror/lang-yaml": "^6.1.2",
|
|
43
|
-
"@codemirror/language": "^6.12.
|
|
51
|
+
"@codemirror/language": "^6.12.2",
|
|
44
52
|
"@codemirror/language-data": "^6.5.2",
|
|
53
|
+
"@codemirror/state": "^6.5.4",
|
|
45
54
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
55
|
+
"@codemirror/view": "^6.0.0",
|
|
46
56
|
"@hsorby/vue3-katex": "0.6.0-rc.7",
|
|
57
|
+
"@lezer/common": "^1.0.0",
|
|
47
58
|
"@lezer/markdown": "^1.6.3",
|
|
48
|
-
"@nuxt/
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@tiptap/extension-collaboration": "^3.18.0",
|
|
52
|
-
"@tiptap/extension-node-range": "^3.18.0",
|
|
59
|
+
"@nuxt/ui": "^4.5.0",
|
|
60
|
+
"@tiptap/extension-collaboration": "^3.20.0",
|
|
61
|
+
"@tiptap/extension-node-range": "^3.20.0",
|
|
53
62
|
"@tiptap/y-tiptap": "^3.0.2",
|
|
54
|
-
"alfaaz": "^1.1.0",
|
|
55
63
|
"codemirror": "^6.0.2",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"markdown-it": "^14.1.0",
|
|
60
|
-
"markdown-it-obsidian-callouts": "^0.3.3",
|
|
61
|
-
"tailwindcss": "^4.1.18",
|
|
62
|
-
"vue-codemirror6": "^1.4.1",
|
|
64
|
+
"katex": "^0.16.33",
|
|
65
|
+
"tailwindcss": "^4.2.1",
|
|
66
|
+
"vue-codemirror6": "^1.4.2",
|
|
63
67
|
"yjs": "^13.6.29"
|
|
64
68
|
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"@catppuccin/codemirror": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"@codemirror/theme-one-dark": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"@hsorby/vue3-katex": {
|
|
77
|
+
"optional": true
|
|
78
|
+
},
|
|
79
|
+
"@tiptap/extension-collaboration": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"@tiptap/extension-node-range": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"@tiptap/y-tiptap": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"katex": {
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"yjs": {
|
|
92
|
+
"optional": true
|
|
93
|
+
}
|
|
94
|
+
},
|
|
65
95
|
"devDependencies": {
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
96
|
+
"@catppuccin/codemirror": "^1.0.3",
|
|
97
|
+
"@codemirror/autocomplete": "^6.20.0",
|
|
98
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
99
|
+
"@codemirror/lang-markdown": "^6.5.0",
|
|
100
|
+
"@codemirror/lang-yaml": "^6.1.2",
|
|
101
|
+
"@codemirror/language": "^6.12.2",
|
|
102
|
+
"@codemirror/language-data": "^6.5.2",
|
|
103
|
+
"@codemirror/state": "^6.5.4",
|
|
104
|
+
"@codemirror/theme-one-dark": "^6.1.3",
|
|
105
|
+
"@codemirror/view": "^6.0.0",
|
|
106
|
+
"@hsorby/vue3-katex": "0.6.0-rc.7",
|
|
107
|
+
"@iconify-json/lucide": "^1.2.95",
|
|
108
|
+
"@iconify-json/simple-icons": "^1.2.71",
|
|
109
|
+
"@lezer/common": "^1.0.0",
|
|
110
|
+
"@lezer/markdown": "^1.6.3",
|
|
111
|
+
"@nuxt/devtools": "^3.2.2",
|
|
112
|
+
"@nuxt/eslint-config": "^1.15.2",
|
|
113
|
+
"@nuxt/fonts": "0.14.0",
|
|
71
114
|
"@nuxt/icon": "2.2.1",
|
|
115
|
+
"@nuxt/image": "2.0.0",
|
|
72
116
|
"@nuxt/module-builder": "^1.0.2",
|
|
73
|
-
"@nuxt/schema": "^4.3.
|
|
74
|
-
"@nuxt/test-utils": "^
|
|
117
|
+
"@nuxt/schema": "^4.3.1",
|
|
118
|
+
"@nuxt/test-utils": "^4.0.0",
|
|
119
|
+
"@tiptap/extension-collaboration": "^3.20.0",
|
|
120
|
+
"@tiptap/extension-node-range": "^3.20.0",
|
|
121
|
+
"@tiptap/y-tiptap": "^3.0.2",
|
|
75
122
|
"@types/js-yaml": "^4.0.9",
|
|
76
|
-
"@types/node": "^25.
|
|
123
|
+
"@types/node": "^25.3.3",
|
|
77
124
|
"changelogen": "^0.6.2",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
125
|
+
"codemirror": "^6.0.2",
|
|
126
|
+
"eslint": "^10.0.2",
|
|
127
|
+
"katex": "^0.16.33",
|
|
128
|
+
"nuxt": "^4.3.1",
|
|
129
|
+
"tailwindcss": "^4.2.1",
|
|
80
130
|
"typescript": "~5.9.3",
|
|
81
131
|
"vitest": "^4.0.18",
|
|
82
|
-
"vue-
|
|
132
|
+
"vue-codemirror6": "^1.4.2",
|
|
133
|
+
"vue-tsc": "^3.2.5",
|
|
134
|
+
"yjs": "^13.6.29"
|
|
83
135
|
},
|
|
84
136
|
"trustedDependencies": [
|
|
85
137
|
"@parcel/watcher",
|