@bhsd/codemirror-mediawiki 2.23.2 → 2.24.1

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
@@ -584,8 +584,10 @@ CTRL/CMD-click opens a link in a new tab.
584
584
  ## Syntax Highlighting
585
585
 
586
586
  1. Preformatted text with a leading space may have false positives.
587
+ 1. [Extension:Translate](https://www.mediawiki.org/wiki/Extension:Translate) is not supported.
587
588
  1. Template parameter name followed by a newline ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#Templates%3A%20Handle%20comments%20in%20parameter%20names%20(T69657))).
588
589
  1. Wikitext in template parameter names ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#Templates%3A%20Other%20wikitext%20in%20parameter%20names%20(T69657))).
589
590
  1. Double URI encoding in link targets ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#Link%20containing%20%25%20as%20a%20double%20hex%20sequence%20interpreted%20to%20hex%20sequence)).
590
591
  1. Double HTML escaping in link targets ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#Link%20containing%20an%20ampersand)).
591
592
  1. Comments at the start of a line ([Example](https://bhsd-harry.github.io/codemirror-mediawiki/tests.html#1.%20Lists%20with%20start-of-line-transparent%20tokens%20before%20bullets%3A%20Comments)).
593
+ 1. External link inside double brackets ([Example](http://bhsd-harry.github.io/codemirror-mediawiki/tests.html#Render%20invalid%20page%20names%20as%20plain%20text%20(T53090))).
@@ -3,7 +3,7 @@ import type { KeyBinding } from '@codemirror/view';
3
3
  import type { Extension, Text } from '@codemirror/state';
4
4
  import type { SyntaxNode } from '@lezer/common';
5
5
  import type { Diagnostic } from '@codemirror/lint';
6
- import type { Config } from 'wikiparser-node';
6
+ import type { ConfigData } from 'wikiparser-node';
7
7
  import type { MwConfig } from './token';
8
8
  import type { DocRange } from './fold';
9
9
  import type { Option, LiveOption } from './linter';
@@ -101,5 +101,5 @@ export declare class CodeMirror6 {
101
101
  * 将wikiparser-node设置转换为codemirror-mediawiki设置
102
102
  * @param config
103
103
  */
104
- static getMwConfig(config: Config): MwConfig;
104
+ static getMwConfig(config: ConfigData): MwConfig;
105
105
  }