@bhsd/codemirror-mediawiki 3.1.0 → 3.2.0
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 +42 -10
- package/dist/codemirror.d.ts +21 -1
- package/dist/codemirror.js +36 -10
- package/dist/css.d.ts +2 -0
- package/dist/css.js +3 -2
- package/dist/demo.min.js +19 -20
- package/dist/escape.js +66 -25
- package/dist/fold.js +1 -1
- package/dist/html.d.ts +4 -0
- package/dist/html.js +31 -0
- package/dist/indent.js +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +42 -18
- package/dist/lintsource.d.ts +3 -1
- package/dist/lintsource.js +46 -33
- package/dist/main.min.js +25 -25
- package/dist/mediawiki.d.ts +0 -5
- package/dist/mediawiki.js +0 -75
- package/dist/mw.min.js +30 -30
- package/dist/static.d.ts +0 -4
- package/dist/static.js +0 -4
- package/dist/statusBar.d.ts +2 -1
- package/dist/statusBar.js +58 -37
- package/dist/token.d.ts +0 -3
- package/dist/token.js +1 -12
- package/dist/vue.js +2 -2
- package/dist/wiki.min.js +29 -29
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +4 -3
package/dist/mediawiki.d.ts
CHANGED
|
@@ -42,8 +42,3 @@ export declare class FullMediaWiki extends MediaWiki {
|
|
|
42
42
|
* @param config Configuration for the MediaWiki mode
|
|
43
43
|
*/
|
|
44
44
|
export declare const mediawiki: (config: MwConfig) => LanguageSupport;
|
|
45
|
-
/**
|
|
46
|
-
* Gets a LanguageSupport instance for the mixed MediaWiki-HTML mode.
|
|
47
|
-
* @param config Configuration for the MediaWiki mode
|
|
48
|
-
*/
|
|
49
|
-
export declare const html: (config: MwConfig) => LanguageSupport;
|
package/dist/mediawiki.js
CHANGED
|
@@ -367,78 +367,3 @@ export const mediawiki = (config) => {
|
|
|
367
367
|
const mode = new FullMediaWiki(config), lang = StreamLanguage.define(mode.mediawiki()), highlighter = syntaxHighlighting(HighlightStyle.define(mode.getTagStyles()));
|
|
368
368
|
return new LanguageSupport(lang, highlighter);
|
|
369
369
|
};
|
|
370
|
-
/**
|
|
371
|
-
* Gets a LanguageSupport instance for the mixed MediaWiki-HTML mode.
|
|
372
|
-
* @param config Configuration for the MediaWiki mode
|
|
373
|
-
*/
|
|
374
|
-
export const html = (config) => mediawiki({
|
|
375
|
-
...config,
|
|
376
|
-
tags: {
|
|
377
|
-
...config.tags,
|
|
378
|
-
script: true,
|
|
379
|
-
style: true,
|
|
380
|
-
},
|
|
381
|
-
tagModes: {
|
|
382
|
-
...config.tagModes,
|
|
383
|
-
script: 'javascript',
|
|
384
|
-
style: 'css',
|
|
385
|
-
},
|
|
386
|
-
permittedHtmlTags: [
|
|
387
|
-
'html',
|
|
388
|
-
'base',
|
|
389
|
-
'title',
|
|
390
|
-
'menu',
|
|
391
|
-
'a',
|
|
392
|
-
'area',
|
|
393
|
-
'audio',
|
|
394
|
-
'map',
|
|
395
|
-
'track',
|
|
396
|
-
'video',
|
|
397
|
-
'embed',
|
|
398
|
-
'iframe',
|
|
399
|
-
'object',
|
|
400
|
-
'picture',
|
|
401
|
-
'source',
|
|
402
|
-
'canvas',
|
|
403
|
-
'col',
|
|
404
|
-
'colgroup',
|
|
405
|
-
'tbody',
|
|
406
|
-
'tfoot',
|
|
407
|
-
'thead',
|
|
408
|
-
'button',
|
|
409
|
-
'datalist',
|
|
410
|
-
'fieldset',
|
|
411
|
-
'form',
|
|
412
|
-
'input',
|
|
413
|
-
'label',
|
|
414
|
-
'legend',
|
|
415
|
-
'meter',
|
|
416
|
-
'optgroup',
|
|
417
|
-
'option',
|
|
418
|
-
'output',
|
|
419
|
-
'progress',
|
|
420
|
-
'select',
|
|
421
|
-
'textarea',
|
|
422
|
-
'details',
|
|
423
|
-
'dialog',
|
|
424
|
-
'slot',
|
|
425
|
-
'template',
|
|
426
|
-
'dir',
|
|
427
|
-
'frame',
|
|
428
|
-
'frameset',
|
|
429
|
-
'marquee',
|
|
430
|
-
'param',
|
|
431
|
-
'xmp',
|
|
432
|
-
],
|
|
433
|
-
implicitlyClosedHtmlTags: [
|
|
434
|
-
'area',
|
|
435
|
-
'base',
|
|
436
|
-
'col',
|
|
437
|
-
'embed',
|
|
438
|
-
'frame',
|
|
439
|
-
'input',
|
|
440
|
-
'param',
|
|
441
|
-
'source',
|
|
442
|
-
'track',
|
|
443
|
-
],
|
|
444
|
-
});
|