@bhsd/codemirror-mediawiki 2.12.0 → 2.12.2
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 +2 -1
- package/dist/codemirror.d.ts +2 -2
- package/dist/config.d.ts +18 -16
- package/dist/main.min.js +15 -15
- package/dist/matchTag.d.ts +26 -0
- package/dist/mediawiki.d.ts +6 -3
- package/dist/mw.min.js +5 -5
- package/dist/mw.min.js.map +3 -3
- package/i18n/en.json +3 -3
- package/i18n/zh-hans.json +3 -3
- package/i18n/zh-hant.json +3 -3
- package/mediawiki.css +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -291,8 +291,10 @@ cm.prefer([
|
|
|
291
291
|
]);
|
|
292
292
|
cm.prefer({
|
|
293
293
|
allowMultipleSelections: false,
|
|
294
|
+
autocompletion: false,
|
|
294
295
|
bracketMatching: false,
|
|
295
296
|
closeBrackets: false,
|
|
297
|
+
codeFolding: false,
|
|
296
298
|
highlightActiveLine: false,
|
|
297
299
|
highlightSpecialChars: false,
|
|
298
300
|
highlightWhitespace: false,
|
|
@@ -300,7 +302,6 @@ cm.prefer({
|
|
|
300
302
|
|
|
301
303
|
// only available in MediaWiki mode
|
|
302
304
|
escape: false,
|
|
303
|
-
codeFolding: false,
|
|
304
305
|
tagMatching: false,
|
|
305
306
|
});
|
|
306
307
|
```
|
package/dist/codemirror.d.ts
CHANGED
|
@@ -59,9 +59,9 @@ export declare class CodeMirror6 {
|
|
|
59
59
|
getLinter(opt?: Record<string, unknown>): Promise<LintSource | undefined>;
|
|
60
60
|
/**
|
|
61
61
|
* 重设编辑器内容
|
|
62
|
-
* @param
|
|
62
|
+
* @param insert 新内容
|
|
63
63
|
*/
|
|
64
|
-
setContent(
|
|
64
|
+
setContent(insert: string): void;
|
|
65
65
|
/**
|
|
66
66
|
* 在编辑器和文本框之间切换
|
|
67
67
|
* @param show 是否显示编辑器
|
package/dist/config.d.ts
CHANGED
|
@@ -31,26 +31,43 @@ declare const modeConfig: {
|
|
|
31
31
|
apostrophes: string;
|
|
32
32
|
comment: string;
|
|
33
33
|
doubleUnderscore: string;
|
|
34
|
+
em: string;
|
|
35
|
+
error: string;
|
|
34
36
|
extLink: string;
|
|
35
37
|
extLinkBracket: string;
|
|
36
38
|
extLinkProtocol: string;
|
|
37
39
|
extLinkText: string;
|
|
40
|
+
extTag: string;
|
|
41
|
+
extTagAttribute: string;
|
|
42
|
+
extTagBracket: string;
|
|
43
|
+
extTagName: string;
|
|
44
|
+
freeExtLink: string;
|
|
45
|
+
freeExtLinkProtocol: string;
|
|
38
46
|
hr: string;
|
|
47
|
+
htmlEntity: string;
|
|
39
48
|
htmlTagAttribute: string;
|
|
40
49
|
htmlTagBracket: string;
|
|
41
50
|
htmlTagName: string;
|
|
51
|
+
imageParameter: string;
|
|
42
52
|
linkBracket: string;
|
|
43
53
|
linkDelimiter: string;
|
|
54
|
+
linkPageName: string;
|
|
44
55
|
linkText: string;
|
|
45
56
|
linkToSection: string;
|
|
46
57
|
list: string;
|
|
58
|
+
pageName: string;
|
|
47
59
|
parserFunction: string;
|
|
48
60
|
parserFunctionBracket: string;
|
|
49
61
|
parserFunctionDelimiter: string;
|
|
50
62
|
parserFunctionName: string;
|
|
63
|
+
redirect: string;
|
|
64
|
+
section: string;
|
|
51
65
|
sectionHeader: string;
|
|
52
66
|
signature: string;
|
|
67
|
+
skipFormatting: string;
|
|
68
|
+
strong: string;
|
|
53
69
|
tableBracket: string;
|
|
70
|
+
tableCaption: string;
|
|
54
71
|
tableDefinition: string;
|
|
55
72
|
tableDelimiter: string;
|
|
56
73
|
template: string;
|
|
@@ -60,23 +77,8 @@ declare const modeConfig: {
|
|
|
60
77
|
templateName: string;
|
|
61
78
|
templateVariable: string;
|
|
62
79
|
templateVariableBracket: string;
|
|
63
|
-
templateVariableName: string;
|
|
64
|
-
section: string;
|
|
65
|
-
em: string;
|
|
66
|
-
error: string;
|
|
67
|
-
extTag: string;
|
|
68
|
-
extTagAttribute: string;
|
|
69
|
-
extTagBracket: string;
|
|
70
|
-
extTagName: string;
|
|
71
|
-
freeExtLink: string;
|
|
72
|
-
freeExtLinkProtocol: string;
|
|
73
|
-
htmlEntity: string;
|
|
74
|
-
linkPageName: string;
|
|
75
|
-
pageName: string;
|
|
76
|
-
skipFormatting: string;
|
|
77
|
-
strong: string;
|
|
78
|
-
tableCaption: string;
|
|
79
80
|
templateVariableDelimiter: string;
|
|
81
|
+
templateVariableName: string;
|
|
80
82
|
};
|
|
81
83
|
/**
|
|
82
84
|
* These are custom tokens (a.k.a. tags) that aren't mapped to any of the standardized tags.
|