@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.
@@ -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): MwConfig;
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;