@bhsd/codemirror-mediawiki 2.12.1 → 2.12.3

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
@@ -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/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.
@@ -86,5 +88,25 @@ declare const modeConfig: {
86
88
  * @see https://lezer.codemirror.net/docs/ref/#highlight.Tag%5Edefine
87
89
  */
88
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
+ };
89
111
  };
90
112
  export default modeConfig;