@bhsd/codemirror-mediawiki 2.19.4 → 2.19.6
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 +5 -4
- package/dist/bidi.d.ts +2 -1
- package/dist/codemirror.d.ts +4 -27
- package/dist/config.d.ts +0 -1
- package/dist/fold.d.ts +8 -1
- package/dist/linter.mjs +116 -0
- package/dist/main.min.js +14 -14
- package/dist/matchTag.d.ts +4 -3
- package/dist/mw.min.js +19 -19
- package/dist/mwConfig.mjs +161 -0
- package/dist/openExtLinks.d.ts +1 -1
- package/dist/openLinks.d.ts +4 -0
- package/dist/ref.d.ts +0 -5
- package/dist/static.d.ts +1 -1
- package/dist/token.d.ts +17 -6
- package/dist/wiki.min.js +19 -19
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/mediawiki.css +0 -11
- package/mw/config.ts +180 -0
- package/package.json +10 -4
- package/src/linter.ts +149 -0
- package/src/static.ts +66 -0
package/dist/matchTag.d.ts
CHANGED
|
@@ -13,18 +13,19 @@ declare class Tag {
|
|
|
13
13
|
readonly name: string;
|
|
14
14
|
readonly first: SyntaxNode;
|
|
15
15
|
readonly last: SyntaxNode;
|
|
16
|
+
readonly state: EditorState;
|
|
16
17
|
get closing(): boolean;
|
|
17
18
|
get selfClosing(): boolean;
|
|
18
19
|
get from(): number;
|
|
19
20
|
get to(): number;
|
|
20
|
-
constructor(type: TagType, name: string, first: SyntaxNode, last: SyntaxNode);
|
|
21
|
+
constructor(type: TagType, name: string, first: SyntaxNode, last: SyntaxNode, state: EditorState);
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* 获取标签信息,破损的HTML标签会返回`null`
|
|
24
25
|
* @param state
|
|
25
26
|
* @param node 语法树节点
|
|
26
27
|
*/
|
|
27
|
-
export declare const getTag: (state: EditorState, node: SyntaxNode) => Tag;
|
|
28
|
+
export declare const getTag: (state: EditorState, node: SyntaxNode) => Tag | null;
|
|
28
29
|
/**
|
|
29
30
|
* 匹配标签
|
|
30
31
|
* @param state
|