@bhsd/codemirror-mediawiki 3.0.3 → 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.
@@ -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
- });