@bhsd/codemirror-mediawiki 2.12.2 → 2.12.4
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/dist/codemirror.d.ts +1 -2
- package/dist/config.d.ts +28 -0
- package/dist/main.min.js +13 -13
- package/dist/mw.min.js +43 -9
- package/dist/static.d.ts +17 -0
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/mediawiki.css +1 -1
- package/package.json +1 -2
- package/dist/mw.min.js.map +0 -7
package/dist/codemirror.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import type { KeyBinding } from '@codemirror/view';
|
|
|
4
4
|
import type { Text } from '@codemirror/state';
|
|
5
5
|
import type { SyntaxNode } from '@lezer/common';
|
|
6
6
|
import type { Diagnostic } from '@codemirror/lint';
|
|
7
|
-
import type { Config } from 'wikiparser-node';
|
|
8
7
|
import type { MwConfig } from './mediawiki';
|
|
9
8
|
import type { DocRange } from './fold';
|
|
10
9
|
export { CDN };
|
|
@@ -118,5 +117,5 @@ export declare class CodeMirror6 {
|
|
|
118
117
|
* 将wikiparser-node设置转换为codemirror-mediawiki设置
|
|
119
118
|
* @param config
|
|
120
119
|
*/
|
|
121
|
-
static getMwConfig(config: Config)
|
|
120
|
+
static getMwConfig: (config: import("wikiparser-node").Config) => MwConfig;
|
|
122
121
|
}
|
package/dist/config.d.ts
CHANGED
|
@@ -88,5 +88,33 @@ declare const modeConfig: {
|
|
|
88
88
|
* @see https://lezer.codemirror.net/docs/ref/#highlight.Tag%5Edefine
|
|
89
89
|
*/
|
|
90
90
|
readonly tokenTable: Record<string, Tag>;
|
|
91
|
+
htmlAttrs: string[];
|
|
92
|
+
elementAttrs: {
|
|
93
|
+
table: string[];
|
|
94
|
+
td: string[];
|
|
95
|
+
th: string[];
|
|
96
|
+
blockquote: string[];
|
|
97
|
+
q: string[];
|
|
98
|
+
ins: string[];
|
|
99
|
+
del: string[];
|
|
100
|
+
time: string[];
|
|
101
|
+
ol: string[];
|
|
102
|
+
li: string[];
|
|
103
|
+
img: string[];
|
|
104
|
+
rt: string[];
|
|
105
|
+
data: string[];
|
|
106
|
+
meta: string[];
|
|
107
|
+
link: string[];
|
|
108
|
+
gallery: string[];
|
|
109
|
+
poem: string[];
|
|
110
|
+
};
|
|
111
|
+
extAttrs: {
|
|
112
|
+
indicator: string[];
|
|
113
|
+
langconvert: string[];
|
|
114
|
+
ref: string[];
|
|
115
|
+
references: string[];
|
|
116
|
+
charinsert: string[];
|
|
117
|
+
templatestyles: string[];
|
|
118
|
+
};
|
|
91
119
|
};
|
|
92
120
|
export default modeConfig;
|