@gmb/bitmark-parser-generator 3.32.0 → 3.34.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.
Files changed (32) hide show
  1. package/dist/browser/bitmark-parser-generator.min.js +1 -1
  2. package/dist/browser/bundle-report.html +2 -2
  3. package/dist/cjs/ast/Builder.js +39 -46
  4. package/dist/cjs/ast/Builder.js.map +1 -1
  5. package/dist/cjs/ast/ResourceBuilder.js +1 -2
  6. package/dist/cjs/ast/ResourceBuilder.js.map +1 -1
  7. package/dist/cjs/generated/build-info.js +1 -1
  8. package/dist/cjs/generated/parser/text/text-peggy-parser.js +1139 -941
  9. package/dist/cjs/generated/parser/text/text-peggy-parser.js.map +1 -1
  10. package/dist/cjs/generator/text/TextGenerator.js +16 -1
  11. package/dist/cjs/generator/text/TextGenerator.js.map +1 -1
  12. package/dist/cjs/model/enum/TextMarkType.js +11 -0
  13. package/dist/cjs/model/enum/TextMarkType.js.map +1 -1
  14. package/dist/esm/ast/Builder.js +39 -46
  15. package/dist/esm/ast/Builder.js.map +1 -1
  16. package/dist/esm/ast/ResourceBuilder.js +1 -2
  17. package/dist/esm/ast/ResourceBuilder.js.map +1 -1
  18. package/dist/esm/generated/build-info.js +1 -1
  19. package/dist/esm/generated/parser/text/text-peggy-parser.js +1139 -941
  20. package/dist/esm/generated/parser/text/text-peggy-parser.js.map +1 -1
  21. package/dist/esm/generator/text/TextGenerator.js +16 -1
  22. package/dist/esm/generator/text/TextGenerator.js.map +1 -1
  23. package/dist/esm/model/enum/TextMarkType.js +11 -0
  24. package/dist/esm/model/enum/TextMarkType.js.map +1 -1
  25. package/dist/types/generated/parser/text/text-peggy-parser.d.ts.map +1 -1
  26. package/dist/types/generator/text/TextGenerator.d.ts +2 -2
  27. package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
  28. package/dist/types/model/ast/TextNodes.d.ts +4 -0
  29. package/dist/types/model/ast/TextNodes.d.ts.map +1 -1
  30. package/dist/types/model/enum/TextMarkType.d.ts +22 -0
  31. package/dist/types/model/enum/TextMarkType.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -7,7 +7,7 @@ exports.StartRules = void 0;
7
7
  exports.SyntaxError = peg$SyntaxError;
8
8
  exports.parse = peg$parse;
9
9
  const Breakscape_1 = require("../../../breakscaping/Breakscape");
10
- const VERSION = "8.32.2";
10
+ const VERSION = "8.34.3";
11
11
  //Parser peggy.js
12
12
  // parser options (parameter when running parser):
13
13
  // allowedStartRules: ["bitmarkPlusPlus", "bitmarkPlus", "bitmarkMinusMinus", "bitmarkPlusString", "bitmarkMinusMinusString"]
@@ -381,100 +381,116 @@ function peg$parse(input, options) {
381
381
  var peg$c27 = "left";
382
382
  var peg$c28 = "center";
383
383
  var peg$c29 = "right";
384
- var peg$c30 = "=";
385
- var peg$c31 = "|latex|";
386
- var peg$c32 = "|imageInline:";
387
- var peg$c33 = "alignmentVertical";
388
- var peg$c34 = "size";
389
- var peg$c35 = "top";
390
- var peg$c36 = "middle";
391
- var peg$c37 = "bottom";
392
- var peg$c38 = "baseline";
393
- var peg$c39 = "sub";
394
- var peg$c40 = "super";
395
- var peg$c41 = "text-bottom";
396
- var peg$c42 = "text-top";
397
- var peg$c43 = "line-height";
398
- var peg$c44 = "font-height";
399
- var peg$c45 = "explicit";
400
- var peg$c46 = "link:";
401
- var peg$c47 = "extref:";
402
- var peg$c48 = "provider:";
403
- var peg$c49 = "xref:";
404
- var peg$c50 = "\u25BA";
405
- var peg$c51 = "symbol:";
406
- var peg$c52 = "footnote:";
407
- var peg$c53 = "footnote*:";
408
- var peg$c54 = "var:";
409
- var peg$c55 = "code:";
410
- var peg$c56 = "timer";
411
- var peg$c57 = "timer:";
412
- var peg$c58 = "duration:";
413
- var peg$c59 = "P";
414
- var peg$c60 = "color:";
415
- var peg$c61 = "|\u25BA";
416
- var peg$c62 = "bold";
417
- var peg$c63 = "italic";
418
- var peg$c64 = "light";
419
- var peg$c65 = "highlight";
420
- var peg$c66 = "strike";
421
- var peg$c67 = "subscript";
422
- var peg$c68 = "superscript";
423
- var peg$c69 = "ins";
424
- var peg$c70 = "del";
425
- var peg$c71 = "underline";
426
- var peg$c72 = "doubleUnderline";
427
- var peg$c73 = "circle";
428
- var peg$c74 = "languageEm";
429
- var peg$c75 = "userUnderline";
430
- var peg$c76 = "userDoubleUnderline";
431
- var peg$c77 = "userStrike";
432
- var peg$c78 = "userCircle";
433
- var peg$c79 = "userHighlight";
434
- var peg$c80 = "notranslate";
435
- var peg$c81 = "aqua";
436
- var peg$c82 = "black";
437
- var peg$c83 = "blue";
438
- var peg$c84 = "pink";
439
- var peg$c85 = "fuchsia";
440
- var peg$c86 = "lightgrey";
441
- var peg$c87 = "gray";
442
- var peg$c88 = "darkgray";
443
- var peg$c89 = "green";
444
- var peg$c90 = "lime";
445
- var peg$c91 = "magenta";
446
- var peg$c92 = "maroon";
447
- var peg$c93 = "navy";
448
- var peg$c94 = "olive";
449
- var peg$c95 = "orange";
450
- var peg$c96 = "purple";
451
- var peg$c97 = "red";
452
- var peg$c98 = "silver";
453
- var peg$c99 = "teal";
454
- var peg$c100 = "violet";
455
- var peg$c101 = "white";
456
- var peg$c102 = "yellow";
457
- var peg$c103 = "*";
458
- var peg$c104 = "_";
459
- var peg$c105 = "`";
460
- var peg$c106 = "!";
461
- var peg$c107 = "[!";
462
- var peg$c108 = "]";
463
- var peg$c109 = "\n";
464
- var peg$c110 = "\r\n";
465
- var peg$c111 = "http";
466
- var peg$c112 = "s";
467
- var peg$c113 = "://";
468
- var peg$c114 = "mailto:";
384
+ var peg$c30 = "alt";
385
+ var peg$c31 = "caption";
386
+ var peg$c32 = "zoomDisabled";
387
+ var peg$c33 = "true";
388
+ var peg$c34 = "false";
389
+ var peg$c35 = "=";
390
+ var peg$c36 = "|latex|";
391
+ var peg$c37 = "|imageInline:";
392
+ var peg$c38 = "alignmentVertical";
393
+ var peg$c39 = "size";
394
+ var peg$c40 = "top";
395
+ var peg$c41 = "middle";
396
+ var peg$c42 = "bottom";
397
+ var peg$c43 = "baseline";
398
+ var peg$c44 = "sub";
399
+ var peg$c45 = "super";
400
+ var peg$c46 = "text-bottom";
401
+ var peg$c47 = "text-top";
402
+ var peg$c48 = "line-height";
403
+ var peg$c49 = "font-height";
404
+ var peg$c50 = "explicit";
405
+ var peg$c51 = "link:";
406
+ var peg$c52 = "extref:";
407
+ var peg$c53 = "provider:";
408
+ var peg$c54 = "xref:";
409
+ var peg$c55 = "\u25BA";
410
+ var peg$c56 = "symbol:";
411
+ var peg$c57 = "footnote:";
412
+ var peg$c58 = "footnote*:";
413
+ var peg$c59 = "var:";
414
+ var peg$c60 = "code:";
415
+ var peg$c61 = "timer";
416
+ var peg$c62 = "timer:";
417
+ var peg$c63 = "duration:";
418
+ var peg$c64 = "P";
419
+ var peg$c65 = "color:";
420
+ var peg$c66 = "|\u25BA";
421
+ var peg$c67 = "bold";
422
+ var peg$c68 = "italic";
423
+ var peg$c69 = "light";
424
+ var peg$c70 = "highlight";
425
+ var peg$c71 = "strike";
426
+ var peg$c72 = "subscript";
427
+ var peg$c73 = "superscript";
428
+ var peg$c74 = "ins";
429
+ var peg$c75 = "del";
430
+ var peg$c76 = "underline";
431
+ var peg$c77 = "doubleUnderline";
432
+ var peg$c78 = "circle";
433
+ var peg$c79 = "languageEmRed";
434
+ var peg$c80 = "languageEmOrange";
435
+ var peg$c81 = "languageEmYellow";
436
+ var peg$c82 = "languageEmGreen";
437
+ var peg$c83 = "languageEmBlue";
438
+ var peg$c84 = "languageEmPurple";
439
+ var peg$c85 = "languageEmPink";
440
+ var peg$c86 = "languageEmBrown";
441
+ var peg$c87 = "languageEmBlack";
442
+ var peg$c88 = "languageEmWhite";
443
+ var peg$c89 = "languageEmGray";
444
+ var peg$c90 = "languageEm";
445
+ var peg$c91 = "userUnderline";
446
+ var peg$c92 = "userDoubleUnderline";
447
+ var peg$c93 = "userStrike";
448
+ var peg$c94 = "userCircle";
449
+ var peg$c95 = "userHighlight";
450
+ var peg$c96 = "notranslate";
451
+ var peg$c97 = "aqua";
452
+ var peg$c98 = "black";
453
+ var peg$c99 = "blue";
454
+ var peg$c100 = "brown";
455
+ var peg$c101 = "fuchsia";
456
+ var peg$c102 = "lightgrey";
457
+ var peg$c103 = "gray";
458
+ var peg$c104 = "darkgray";
459
+ var peg$c105 = "green";
460
+ var peg$c106 = "lime";
461
+ var peg$c107 = "magenta";
462
+ var peg$c108 = "maroon";
463
+ var peg$c109 = "navy";
464
+ var peg$c110 = "olive";
465
+ var peg$c111 = "orange";
466
+ var peg$c112 = "pink";
467
+ var peg$c113 = "purple";
468
+ var peg$c114 = "red";
469
+ var peg$c115 = "silver";
470
+ var peg$c116 = "teal";
471
+ var peg$c117 = "violet";
472
+ var peg$c118 = "white";
473
+ var peg$c119 = "yellow";
474
+ var peg$c120 = "*";
475
+ var peg$c121 = "_";
476
+ var peg$c122 = "`";
477
+ var peg$c123 = "!";
478
+ var peg$c124 = "[!";
479
+ var peg$c125 = "]";
480
+ var peg$c126 = "\n";
481
+ var peg$c127 = "\r\n";
482
+ var peg$c128 = "http";
483
+ var peg$c129 = "s";
484
+ var peg$c130 = "://";
485
+ var peg$c131 = "mailto:";
469
486
  var peg$r0 = /^[ \t]/;
470
487
  var peg$r1 = /^[0-9]/;
471
- var peg$r2 = /^[:|]/;
472
- var peg$r3 = /^[\r\u2028-\u2029]/;
473
- var peg$r4 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
474
- var peg$r5 = /^[\n\r\u2028\u2029]/;
475
- var peg$r6 = /^[^\n\r\u2028\u2029]/;
476
- var peg$r7 = /^[^\n\r\u2028\u2029\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
477
- var peg$r8 = /^[!#-;=?-[\]-_a-{}-~]/;
488
+ var peg$r2 = /^[\r\u2028-\u2029]/;
489
+ var peg$r3 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
490
+ var peg$r4 = /^[\n\r\u2028\u2029]/;
491
+ var peg$r5 = /^[^\n\r\u2028\u2029]/;
492
+ var peg$r6 = /^[^\n\r\u2028\u2029\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
493
+ var peg$r7 = /^[!#-;=?-[\]-_a-{}-~]/;
478
494
  var peg$e0 = peg$anyExpectation();
479
495
  var peg$e1 = peg$otherExpectation("StyledText");
480
496
  var peg$e2 = peg$literalExpectation("|", false);
@@ -502,113 +518,129 @@ function peg$parse(input, options) {
502
518
  var peg$e24 = peg$literalExpectation("image", false);
503
519
  var peg$e25 = peg$literalExpectation("#", false);
504
520
  var peg$e26 = peg$literalExpectation("@", false);
505
- var peg$e27 = peg$classExpectation([":", "|"], false, false);
506
- var peg$e28 = peg$literalExpectation("width", false);
507
- var peg$e29 = peg$literalExpectation("height", false);
508
- var peg$e30 = peg$literalExpectation("alignment", false);
509
- var peg$e31 = peg$literalExpectation("captionAlign", false);
510
- var peg$e32 = peg$literalExpectation("left", false);
511
- var peg$e33 = peg$literalExpectation("center", false);
512
- var peg$e34 = peg$literalExpectation("right", false);
513
- var peg$e35 = peg$otherExpectation("StyledString");
514
- var peg$e36 = peg$literalExpectation("=", false);
515
- var peg$e37 = peg$literalExpectation("|latex|", false);
516
- var peg$e38 = peg$literalExpectation("|imageInline:", false);
517
- var peg$e39 = peg$literalExpectation("alignmentVertical", false);
518
- var peg$e40 = peg$literalExpectation("size", false);
519
- var peg$e41 = peg$literalExpectation("top", false);
520
- var peg$e42 = peg$literalExpectation("middle", false);
521
- var peg$e43 = peg$literalExpectation("bottom", false);
522
- var peg$e44 = peg$literalExpectation("baseline", false);
523
- var peg$e45 = peg$literalExpectation("sub", false);
524
- var peg$e46 = peg$literalExpectation("super", false);
525
- var peg$e47 = peg$literalExpectation("text-bottom", false);
526
- var peg$e48 = peg$literalExpectation("text-top", false);
527
- var peg$e49 = peg$literalExpectation("line-height", false);
528
- var peg$e50 = peg$literalExpectation("font-height", false);
529
- var peg$e51 = peg$literalExpectation("explicit", false);
530
- var peg$e52 = peg$literalExpectation("link:", false);
531
- var peg$e53 = peg$literalExpectation("extref:", false);
532
- var peg$e54 = peg$literalExpectation("provider:", false);
533
- var peg$e55 = peg$literalExpectation("xref:", false);
534
- var peg$e56 = peg$literalExpectation("\u25BA", false);
535
- var peg$e57 = peg$literalExpectation("symbol:", false);
536
- var peg$e58 = peg$literalExpectation("footnote:", false);
537
- var peg$e59 = peg$literalExpectation("footnote*:", false);
538
- var peg$e60 = peg$literalExpectation("var:", false);
539
- var peg$e61 = peg$literalExpectation("code:", false);
540
- var peg$e62 = peg$literalExpectation("timer", false);
541
- var peg$e63 = peg$literalExpectation("timer:", false);
542
- var peg$e64 = peg$literalExpectation("duration:", false);
543
- var peg$e65 = peg$literalExpectation("P", false);
544
- var peg$e66 = peg$literalExpectation("color:", false);
545
- var peg$e67 = peg$literalExpectation("|\u25BA", false);
546
- var peg$e68 = peg$literalExpectation("bold", false);
547
- var peg$e69 = peg$literalExpectation("italic", false);
548
- var peg$e70 = peg$literalExpectation("light", false);
549
- var peg$e71 = peg$literalExpectation("highlight", false);
550
- var peg$e72 = peg$literalExpectation("strike", false);
551
- var peg$e73 = peg$literalExpectation("subscript", false);
552
- var peg$e74 = peg$literalExpectation("superscript", false);
553
- var peg$e75 = peg$literalExpectation("ins", false);
554
- var peg$e76 = peg$literalExpectation("del", false);
555
- var peg$e77 = peg$literalExpectation("underline", false);
556
- var peg$e78 = peg$literalExpectation("doubleUnderline", false);
557
- var peg$e79 = peg$literalExpectation("circle", false);
558
- var peg$e80 = peg$literalExpectation("languageEm", false);
559
- var peg$e81 = peg$literalExpectation("userUnderline", false);
560
- var peg$e82 = peg$literalExpectation("userDoubleUnderline", false);
561
- var peg$e83 = peg$literalExpectation("userStrike", false);
562
- var peg$e84 = peg$literalExpectation("userCircle", false);
563
- var peg$e85 = peg$literalExpectation("userHighlight", false);
564
- var peg$e86 = peg$literalExpectation("notranslate", false);
565
- var peg$e87 = peg$literalExpectation("aqua", false);
566
- var peg$e88 = peg$literalExpectation("black", false);
567
- var peg$e89 = peg$literalExpectation("blue", false);
568
- var peg$e90 = peg$literalExpectation("pink", false);
569
- var peg$e91 = peg$literalExpectation("fuchsia", false);
570
- var peg$e92 = peg$literalExpectation("lightgrey", false);
571
- var peg$e93 = peg$literalExpectation("gray", false);
572
- var peg$e94 = peg$literalExpectation("darkgray", false);
573
- var peg$e95 = peg$literalExpectation("green", false);
574
- var peg$e96 = peg$literalExpectation("lime", false);
575
- var peg$e97 = peg$literalExpectation("magenta", false);
576
- var peg$e98 = peg$literalExpectation("maroon", false);
577
- var peg$e99 = peg$literalExpectation("navy", false);
578
- var peg$e100 = peg$literalExpectation("olive", false);
579
- var peg$e101 = peg$literalExpectation("orange", false);
580
- var peg$e102 = peg$literalExpectation("purple", false);
581
- var peg$e103 = peg$literalExpectation("red", false);
582
- var peg$e104 = peg$literalExpectation("silver", false);
583
- var peg$e105 = peg$literalExpectation("teal", false);
584
- var peg$e106 = peg$literalExpectation("violet", false);
585
- var peg$e107 = peg$literalExpectation("white", false);
586
- var peg$e108 = peg$literalExpectation("yellow", false);
587
- var peg$e109 = peg$otherExpectation("MinimalStyledText");
588
- var peg$e110 = peg$otherExpectation("MinimalStyledString");
589
- var peg$e111 = peg$literalExpectation("*", false);
590
- var peg$e112 = peg$literalExpectation("_", false);
591
- var peg$e113 = peg$literalExpectation("`", false);
592
- var peg$e114 = peg$literalExpectation("!", false);
593
- var peg$e115 = peg$literalExpectation("[!", false);
594
- var peg$e116 = peg$literalExpectation("]", false);
595
- var peg$e117 = peg$otherExpectation("Line Terminator");
596
- var peg$e118 = peg$literalExpectation("\n", false);
597
- var peg$e119 = peg$literalExpectation("\r\n", false);
598
- var peg$e120 = peg$classExpectation(["\r", ["\u2028", "\u2029"]], false, false);
599
- var peg$e121 = peg$otherExpectation("whitespace in line");
600
- var peg$e122 = peg$otherExpectation("space");
601
- var peg$e123 = peg$otherExpectation("language tag separator");
602
- var peg$e124 = peg$otherExpectation("white space, separator");
603
- var peg$e125 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
604
- var peg$e126 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
605
- var peg$e127 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
606
- var peg$e128 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
607
- var peg$e129 = peg$literalExpectation("http", false);
608
- var peg$e130 = peg$literalExpectation("s", false);
609
- var peg$e131 = peg$literalExpectation("://", false);
610
- var peg$e132 = peg$literalExpectation("mailto:", false);
611
- var peg$e133 = peg$classExpectation(["!", ["#", ";"], "=", ["?", "["], ["]", "_"], ["a", "{"], ["}", "~"]], false, false);
521
+ var peg$e27 = peg$literalExpectation("width", false);
522
+ var peg$e28 = peg$literalExpectation("height", false);
523
+ var peg$e29 = peg$literalExpectation("alignment", false);
524
+ var peg$e30 = peg$literalExpectation("captionAlign", false);
525
+ var peg$e31 = peg$literalExpectation("left", false);
526
+ var peg$e32 = peg$literalExpectation("center", false);
527
+ var peg$e33 = peg$literalExpectation("right", false);
528
+ var peg$e34 = peg$literalExpectation("alt", false);
529
+ var peg$e35 = peg$literalExpectation("caption", false);
530
+ var peg$e36 = peg$literalExpectation("zoomDisabled", false);
531
+ var peg$e37 = peg$literalExpectation("true", false);
532
+ var peg$e38 = peg$literalExpectation("false", false);
533
+ var peg$e39 = peg$otherExpectation("StyledString");
534
+ var peg$e40 = peg$literalExpectation("=", false);
535
+ var peg$e41 = peg$literalExpectation("|latex|", false);
536
+ var peg$e42 = peg$literalExpectation("|imageInline:", false);
537
+ var peg$e43 = peg$literalExpectation("alignmentVertical", false);
538
+ var peg$e44 = peg$literalExpectation("size", false);
539
+ var peg$e45 = peg$literalExpectation("top", false);
540
+ var peg$e46 = peg$literalExpectation("middle", false);
541
+ var peg$e47 = peg$literalExpectation("bottom", false);
542
+ var peg$e48 = peg$literalExpectation("baseline", false);
543
+ var peg$e49 = peg$literalExpectation("sub", false);
544
+ var peg$e50 = peg$literalExpectation("super", false);
545
+ var peg$e51 = peg$literalExpectation("text-bottom", false);
546
+ var peg$e52 = peg$literalExpectation("text-top", false);
547
+ var peg$e53 = peg$literalExpectation("line-height", false);
548
+ var peg$e54 = peg$literalExpectation("font-height", false);
549
+ var peg$e55 = peg$literalExpectation("explicit", false);
550
+ var peg$e56 = peg$literalExpectation("link:", false);
551
+ var peg$e57 = peg$literalExpectation("extref:", false);
552
+ var peg$e58 = peg$literalExpectation("provider:", false);
553
+ var peg$e59 = peg$literalExpectation("xref:", false);
554
+ var peg$e60 = peg$literalExpectation("\u25BA", false);
555
+ var peg$e61 = peg$literalExpectation("symbol:", false);
556
+ var peg$e62 = peg$literalExpectation("footnote:", false);
557
+ var peg$e63 = peg$literalExpectation("footnote*:", false);
558
+ var peg$e64 = peg$literalExpectation("var:", false);
559
+ var peg$e65 = peg$literalExpectation("code:", false);
560
+ var peg$e66 = peg$literalExpectation("timer", false);
561
+ var peg$e67 = peg$literalExpectation("timer:", false);
562
+ var peg$e68 = peg$literalExpectation("duration:", false);
563
+ var peg$e69 = peg$literalExpectation("P", false);
564
+ var peg$e70 = peg$literalExpectation("color:", false);
565
+ var peg$e71 = peg$literalExpectation("|\u25BA", false);
566
+ var peg$e72 = peg$literalExpectation("bold", false);
567
+ var peg$e73 = peg$literalExpectation("italic", false);
568
+ var peg$e74 = peg$literalExpectation("light", false);
569
+ var peg$e75 = peg$literalExpectation("highlight", false);
570
+ var peg$e76 = peg$literalExpectation("strike", false);
571
+ var peg$e77 = peg$literalExpectation("subscript", false);
572
+ var peg$e78 = peg$literalExpectation("superscript", false);
573
+ var peg$e79 = peg$literalExpectation("ins", false);
574
+ var peg$e80 = peg$literalExpectation("del", false);
575
+ var peg$e81 = peg$literalExpectation("underline", false);
576
+ var peg$e82 = peg$literalExpectation("doubleUnderline", false);
577
+ var peg$e83 = peg$literalExpectation("circle", false);
578
+ var peg$e84 = peg$literalExpectation("languageEmRed", false);
579
+ var peg$e85 = peg$literalExpectation("languageEmOrange", false);
580
+ var peg$e86 = peg$literalExpectation("languageEmYellow", false);
581
+ var peg$e87 = peg$literalExpectation("languageEmGreen", false);
582
+ var peg$e88 = peg$literalExpectation("languageEmBlue", false);
583
+ var peg$e89 = peg$literalExpectation("languageEmPurple", false);
584
+ var peg$e90 = peg$literalExpectation("languageEmPink", false);
585
+ var peg$e91 = peg$literalExpectation("languageEmBrown", false);
586
+ var peg$e92 = peg$literalExpectation("languageEmBlack", false);
587
+ var peg$e93 = peg$literalExpectation("languageEmWhite", false);
588
+ var peg$e94 = peg$literalExpectation("languageEmGray", false);
589
+ var peg$e95 = peg$literalExpectation("languageEm", false);
590
+ var peg$e96 = peg$literalExpectation("userUnderline", false);
591
+ var peg$e97 = peg$literalExpectation("userDoubleUnderline", false);
592
+ var peg$e98 = peg$literalExpectation("userStrike", false);
593
+ var peg$e99 = peg$literalExpectation("userCircle", false);
594
+ var peg$e100 = peg$literalExpectation("userHighlight", false);
595
+ var peg$e101 = peg$literalExpectation("notranslate", false);
596
+ var peg$e102 = peg$literalExpectation("aqua", false);
597
+ var peg$e103 = peg$literalExpectation("black", false);
598
+ var peg$e104 = peg$literalExpectation("blue", false);
599
+ var peg$e105 = peg$literalExpectation("brown", false);
600
+ var peg$e106 = peg$literalExpectation("fuchsia", false);
601
+ var peg$e107 = peg$literalExpectation("lightgrey", false);
602
+ var peg$e108 = peg$literalExpectation("gray", false);
603
+ var peg$e109 = peg$literalExpectation("darkgray", false);
604
+ var peg$e110 = peg$literalExpectation("green", false);
605
+ var peg$e111 = peg$literalExpectation("lime", false);
606
+ var peg$e112 = peg$literalExpectation("magenta", false);
607
+ var peg$e113 = peg$literalExpectation("maroon", false);
608
+ var peg$e114 = peg$literalExpectation("navy", false);
609
+ var peg$e115 = peg$literalExpectation("olive", false);
610
+ var peg$e116 = peg$literalExpectation("orange", false);
611
+ var peg$e117 = peg$literalExpectation("pink", false);
612
+ var peg$e118 = peg$literalExpectation("purple", false);
613
+ var peg$e119 = peg$literalExpectation("red", false);
614
+ var peg$e120 = peg$literalExpectation("silver", false);
615
+ var peg$e121 = peg$literalExpectation("teal", false);
616
+ var peg$e122 = peg$literalExpectation("violet", false);
617
+ var peg$e123 = peg$literalExpectation("white", false);
618
+ var peg$e124 = peg$literalExpectation("yellow", false);
619
+ var peg$e125 = peg$otherExpectation("MinimalStyledText");
620
+ var peg$e126 = peg$otherExpectation("MinimalStyledString");
621
+ var peg$e127 = peg$literalExpectation("*", false);
622
+ var peg$e128 = peg$literalExpectation("_", false);
623
+ var peg$e129 = peg$literalExpectation("`", false);
624
+ var peg$e130 = peg$literalExpectation("!", false);
625
+ var peg$e131 = peg$literalExpectation("[!", false);
626
+ var peg$e132 = peg$literalExpectation("]", false);
627
+ var peg$e133 = peg$otherExpectation("Line Terminator");
628
+ var peg$e134 = peg$literalExpectation("\n", false);
629
+ var peg$e135 = peg$literalExpectation("\r\n", false);
630
+ var peg$e136 = peg$classExpectation(["\r", ["\u2028", "\u2029"]], false, false);
631
+ var peg$e137 = peg$otherExpectation("whitespace in line");
632
+ var peg$e138 = peg$otherExpectation("space");
633
+ var peg$e139 = peg$otherExpectation("language tag separator");
634
+ var peg$e140 = peg$otherExpectation("white space, separator");
635
+ var peg$e141 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
636
+ var peg$e142 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
637
+ var peg$e143 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
638
+ var peg$e144 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
639
+ var peg$e145 = peg$literalExpectation("http", false);
640
+ var peg$e146 = peg$literalExpectation("s", false);
641
+ var peg$e147 = peg$literalExpectation("://", false);
642
+ var peg$e148 = peg$literalExpectation("mailto:", false);
643
+ var peg$e149 = peg$classExpectation(["!", ["#", ";"], "=", ["?", "["], ["]", "_"], ["a", "{"], ["}", "~"]], false, false);
612
644
  var peg$f0 = function () { return VERSION; };
613
645
  var peg$f1 = function (b) { const cleaned_ = cleanEmptyTextNodes(Object.assign({}, b)); return cleaned_; };
614
646
  var peg$f2 = function (b) { let lb_ = Object.assign({}, b); removeTempParsingParent(lb_); const cleaned_ = cleanEmptyTextNodes(lb_); return cleaned_; };
@@ -732,7 +764,9 @@ function peg$parse(input, options) {
732
764
  delete chain.caption;
733
765
  let class_ = chain.align || "center";
734
766
  delete chain.align;
735
- let zoomDisabled_ = chain.zoomDisabled || Boolean(chain.zoomDisabled);
767
+ let zoomDisabled_ = chain.zoomDisabled === undefined ? true
768
+ : typeof chain.zoomDisabled === 'boolean' ? chain.zoomDisabled
769
+ : String(chain.zoomDisabled).toLowerCase() === 'true';
736
770
  delete chain.zoomDisabled;
737
771
  let image = {
738
772
  type: t,
@@ -741,61 +775,63 @@ function peg$parse(input, options) {
741
775
  return image;
742
776
  };
743
777
  var peg$f42 = function (ch) { return ch; };
744
- var peg$f43 = function (str) { return { comment: str }; };
778
+ var peg$f43 = function (str) { return { comment: str.trim() }; };
745
779
  var peg$f44 = function (p, v) { return { [p]: parseInt(v) }; };
746
- var peg$f45 = function (p, v) { return { type: "error", msg: p + ' must be an positive integer.', found: v }; };
780
+ var peg$f45 = function (p, v) { return { [p]: v.trim() }; };
747
781
  var peg$f46 = function (p, v) { return { [p]: v }; };
748
782
  var peg$f47 = function (p, v) { return { [p]: v }; };
749
783
  var peg$f48 = function (p) { return { [p]: true }; };
750
- var peg$f49 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
751
- var peg$f50 = function (first, more) { const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat()); return cleaned_; };
752
- var peg$f51 = function () { return { "type": "hardBreak" }; };
753
- var peg$f52 = function (t) { return { text: unbreakscape(t), type: "text" }; };
754
- var peg$f53 = function (t) { return { index: +t, type: "bit" }; };
755
- var peg$f54 = function (t) { return { attrs: { formula: unbreakscape(t) }, type: "latex" }; };
756
- var peg$f55 = function (alt, u, ch) { return { attrs: Object.assign(Object.assign({ alt, src: (u.pr + u.t).trim() }, Object.assign({}, ...ch)), { zoomDisabled: true }), type: "imageInline" }; };
757
- var peg$f56 = function (t, marks) { if (!marks)
784
+ var peg$f49 = function () { return; };
785
+ var peg$f50 = function (p) { return { error: 'Found unknown property or invalid value: ' + p }; };
786
+ var peg$f51 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
787
+ var peg$f52 = function (first, more) { const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat()); return cleaned_; };
788
+ var peg$f53 = function () { return { "type": "hardBreak" }; };
789
+ var peg$f54 = function (t) { return { text: unbreakscape(t), type: "text" }; };
790
+ var peg$f55 = function (t) { return { index: +t, type: "bit" }; };
791
+ var peg$f56 = function (t) { return { attrs: { formula: unbreakscape(t) }, type: "latex" }; };
792
+ var peg$f57 = function (alt, u, ch) { return { attrs: Object.assign(Object.assign({ alt, src: (u.pr + u.t).trim() }, Object.assign({}, ...ch)), { zoomDisabled: true }), type: "imageInline" }; };
793
+ var peg$f58 = function (t, marks) { if (!marks)
758
794
  marks = []; return { marks, text: unbreakscape(t), type: "text" }; };
759
- var peg$f57 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
760
- var peg$f58 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
761
- var peg$f59 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
762
- var peg$f60 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
763
- var peg$f61 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
764
- var peg$f62 = function (ch) { return ch; };
765
- var peg$f63 = function (ch) { return ch; };
766
- var peg$f64 = function (str) { return { comment: str }; };
767
- var peg$f65 = function (p, v) { return { [p]: parseInt(v) }; };
768
- var peg$f66 = function (p, v) { return { type: "error", msg: p + ' must be an positive integer.', found: v }; };
769
- var peg$f67 = function (p, v) { return { [p]: v }; };
770
- var peg$f68 = function (p, v) { return { [p]: v }; };
771
- var peg$f69 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
772
- var peg$f70 = function (str, rc, p) { return { type: 'extref', attrs: { extref: str.trim(), references: rc, provider: p.trim() } }; };
773
- var peg$f71 = function (str, str2) { return { type: 'xref', attrs: { xref: str.trim(), reference: str2.trim() } }; };
774
- var peg$f72 = function (str) { return { type: 'xref', attrs: { xref: str.trim(), reference: '' } }; };
775
- var peg$f73 = function (str) { return { type: 'ref', attrs: { reference: str.trim() } }; };
776
- var peg$f74 = function (str, ch) { const chain = Object.assign({}, ...ch); return { type: 'symbol', attrs: Object.assign({ src: str.trim() }, chain) }; };
777
- var peg$f75 = function (str) { return { type: 'footnote', attrs: { content: bitmarkPlusString(str.trim()) } }; };
778
- var peg$f76 = function (str) { return { type: 'footnote*', attrs: { content: bitmarkPlusString(str.trim()) } }; };
779
- var peg$f77 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
780
- var peg$f78 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
781
- var peg$f79 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
782
- var peg$f80 = function () { return { type: 'timer', attrs: { name: "" } }; };
783
- var peg$f81 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
784
- var peg$f82 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
785
- var peg$f83 = function (color) { return { type: 'color', attrs: { color } }; };
786
- var peg$f84 = function (style) { return { type: style }; };
787
- var peg$f85 = function (str) { return { type: "comment", comment: str }; };
788
- var peg$f86 = function (r) { return r.trim(); };
789
- var peg$f87 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
790
- var peg$f88 = function (first, more) { const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat()); return cleaned_; };
791
- var peg$f89 = function () { return { "type": "hardBreak" }; };
792
- var peg$f90 = function (t) { return { text: unbreakscape(t), type: "text" }; };
793
- var peg$f91 = function (t) { return { index: +t, type: "bit" }; };
794
- var peg$f92 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
795
- var peg$f93 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
796
- var peg$f94 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
797
- var peg$f95 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
798
- var peg$f96 = function (pr, t) { return { pr, t }; };
795
+ var peg$f59 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
796
+ var peg$f60 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
797
+ var peg$f61 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
798
+ var peg$f62 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
799
+ var peg$f63 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
800
+ var peg$f64 = function (ch) { return ch; };
801
+ var peg$f65 = function (ch) { return ch; };
802
+ var peg$f66 = function (str) { return { comment: str }; };
803
+ var peg$f67 = function (p, v) { return { [p]: parseInt(v) }; };
804
+ var peg$f68 = function (p, v) { return { type: "error", msg: p + ' must be a positive integer.', found: v }; };
805
+ var peg$f69 = function (p, v) { return { [p]: v }; };
806
+ var peg$f70 = function (p, v) { return { [p]: v }; };
807
+ var peg$f71 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
808
+ var peg$f72 = function (str, rc, p) { return { type: 'extref', attrs: { extref: str.trim(), references: rc, provider: p.trim() } }; };
809
+ var peg$f73 = function (str, str2) { return { type: 'xref', attrs: { xref: str.trim(), reference: str2.trim() } }; };
810
+ var peg$f74 = function (str) { return { type: 'xref', attrs: { xref: str.trim(), reference: '' } }; };
811
+ var peg$f75 = function (str) { return { type: 'ref', attrs: { reference: str.trim() } }; };
812
+ var peg$f76 = function (str, ch) { const chain = Object.assign({}, ...ch); return { type: 'symbol', attrs: Object.assign({ src: str.trim() }, chain) }; };
813
+ var peg$f77 = function (str) { return { type: 'footnote', attrs: { content: bitmarkPlusString(str.trim()) } }; };
814
+ var peg$f78 = function (str) { return { type: 'footnote*', attrs: { content: bitmarkPlusString(str.trim()) } }; };
815
+ var peg$f79 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
816
+ var peg$f80 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
817
+ var peg$f81 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
818
+ var peg$f82 = function () { return { type: 'timer', attrs: { name: "" } }; };
819
+ var peg$f83 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
820
+ var peg$f84 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
821
+ var peg$f85 = function (color) { return { type: 'color', attrs: { color } }; };
822
+ var peg$f86 = function (style) { return { type: style }; };
823
+ var peg$f87 = function (str) { return { type: "comment", comment: str }; };
824
+ var peg$f88 = function (r) { return r.trim(); };
825
+ var peg$f89 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
826
+ var peg$f90 = function (first, more) { const cleaned_ = cleanEmptyTextNodes(first ? [first, ...more.flat()] : more.flat()); return cleaned_; };
827
+ var peg$f91 = function () { return { "type": "hardBreak" }; };
828
+ var peg$f92 = function (t) { return { text: unbreakscape(t), type: "text" }; };
829
+ var peg$f93 = function (t) { return { index: +t, type: "bit" }; };
830
+ var peg$f94 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
831
+ var peg$f95 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
832
+ var peg$f96 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
833
+ var peg$f97 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
834
+ var peg$f98 = function (pr, t) { return { pr, t }; };
799
835
  var peg$currPos = options.peg$currPos | 0;
800
836
  var peg$savedPos = peg$currPos;
801
837
  var peg$posDetailsCache = [{ line: 1, column: 1 }];
@@ -2988,7 +3024,7 @@ function peg$parse(input, options) {
2988
3024
  return s0;
2989
3025
  }
2990
3026
  function peg$parseImageBlock() {
2991
- var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
3027
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11;
2992
3028
  s0 = peg$currPos;
2993
3029
  s1 = peg$parseImageTag();
2994
3030
  if (s1 !== peg$FAILED) {
@@ -3018,57 +3054,81 @@ function peg$parse(input, options) {
3018
3054
  }
3019
3055
  s4 = peg$parseUrlHttp();
3020
3056
  if (s4 !== peg$FAILED) {
3021
- s5 = peg$parseBlockTag();
3022
- if (s5 !== peg$FAILED) {
3023
- s6 = peg$parseMediaChain();
3024
- s7 = peg$currPos;
3057
+ s5 = [];
3058
+ if (input.charCodeAt(peg$currPos) === 32) {
3059
+ s6 = peg$c12;
3060
+ peg$currPos++;
3061
+ }
3062
+ else {
3063
+ s6 = peg$FAILED;
3064
+ if (peg$silentFails === 0) {
3065
+ peg$fail(peg$e16);
3066
+ }
3067
+ }
3068
+ while (s6 !== peg$FAILED) {
3069
+ s5.push(s6);
3070
+ if (input.charCodeAt(peg$currPos) === 32) {
3071
+ s6 = peg$c12;
3072
+ peg$currPos++;
3073
+ }
3074
+ else {
3075
+ s6 = peg$FAILED;
3076
+ if (peg$silentFails === 0) {
3077
+ peg$fail(peg$e16);
3078
+ }
3079
+ }
3080
+ }
3081
+ s6 = peg$parseBlockTag();
3082
+ if (s6 !== peg$FAILED) {
3083
+ s7 = peg$parseMediaChain();
3025
3084
  s8 = peg$currPos;
3026
- s9 = [];
3027
- s10 = input.charAt(peg$currPos);
3028
- if (peg$r0.test(s10)) {
3085
+ s9 = peg$currPos;
3086
+ s10 = [];
3087
+ s11 = input.charAt(peg$currPos);
3088
+ if (peg$r0.test(s11)) {
3029
3089
  peg$currPos++;
3030
3090
  }
3031
3091
  else {
3032
- s10 = peg$FAILED;
3092
+ s11 = peg$FAILED;
3033
3093
  if (peg$silentFails === 0) {
3034
3094
  peg$fail(peg$e7);
3035
3095
  }
3036
3096
  }
3037
- while (s10 !== peg$FAILED) {
3038
- s9.push(s10);
3039
- s10 = input.charAt(peg$currPos);
3040
- if (peg$r0.test(s10)) {
3097
+ while (s11 !== peg$FAILED) {
3098
+ s10.push(s11);
3099
+ s11 = input.charAt(peg$currPos);
3100
+ if (peg$r0.test(s11)) {
3041
3101
  peg$currPos++;
3042
3102
  }
3043
3103
  else {
3044
- s10 = peg$FAILED;
3104
+ s11 = peg$FAILED;
3045
3105
  if (peg$silentFails === 0) {
3046
3106
  peg$fail(peg$e7);
3047
3107
  }
3048
3108
  }
3049
3109
  }
3050
- s10 = peg$parseEOL();
3051
- if (s10 !== peg$FAILED) {
3052
- s9 = [s9, s10];
3053
- s8 = s9;
3110
+ s11 = peg$parseEOL();
3111
+ if (s11 !== peg$FAILED) {
3112
+ s10 = [s10, s11];
3113
+ s9 = s10;
3054
3114
  }
3055
3115
  else {
3056
- peg$currPos = s8;
3057
- s8 = peg$FAILED;
3116
+ peg$currPos = s9;
3117
+ s9 = peg$FAILED;
3058
3118
  }
3059
- if (s8 !== peg$FAILED) {
3060
- s7 = input.substring(s7, peg$currPos);
3119
+ if (s9 !== peg$FAILED) {
3120
+ s8 = input.substring(s8, peg$currPos);
3061
3121
  }
3062
3122
  else {
3063
- s7 = s8;
3123
+ s8 = s9;
3064
3124
  }
3065
- if (s7 !== peg$FAILED) {
3066
- s8 = peg$parseNL();
3067
- if (s8 === peg$FAILED) {
3068
- s8 = null;
3125
+ if (s8 !== peg$FAILED) {
3126
+ s9 = peg$parseNL();
3127
+ if (s9 === peg$FAILED) {
3128
+ s9 = null;
3069
3129
  }
3070
3130
  peg$savedPos = s0;
3071
- s0 = peg$f41(s1, s4, s6);
3131
+ s0 = peg$f41(s1, s4, s7);
3072
3132
  }
3073
3133
  else {
3074
3134
  peg$currPos = s0;
@@ -3339,8 +3399,32 @@ function peg$parse(input, options) {
3339
3399
  s5 = s6;
3340
3400
  }
3341
3401
  if (s5 !== peg$FAILED) {
3342
- s6 = peg$parseBlockTag();
3343
- if (s6 !== peg$FAILED) {
3402
+ s6 = [];
3403
+ if (input.charCodeAt(peg$currPos) === 32) {
3404
+ s7 = peg$c12;
3405
+ peg$currPos++;
3406
+ }
3407
+ else {
3408
+ s7 = peg$FAILED;
3409
+ if (peg$silentFails === 0) {
3410
+ peg$fail(peg$e16);
3411
+ }
3412
+ }
3413
+ while (s7 !== peg$FAILED) {
3414
+ s6.push(s7);
3415
+ if (input.charCodeAt(peg$currPos) === 32) {
3416
+ s7 = peg$c12;
3417
+ peg$currPos++;
3418
+ }
3419
+ else {
3420
+ s7 = peg$FAILED;
3421
+ if (peg$silentFails === 0) {
3422
+ peg$fail(peg$e16);
3423
+ }
3424
+ }
3425
+ }
3426
+ s7 = peg$parseBlockTag();
3427
+ if (s7 !== peg$FAILED) {
3344
3428
  peg$savedPos = s0;
3345
3429
  s0 = peg$f44(s2, s5);
3346
3430
  }
@@ -3378,7 +3462,7 @@ function peg$parse(input, options) {
3378
3462
  if (s1 === peg$FAILED) {
3379
3463
  s1 = null;
3380
3464
  }
3381
- s2 = peg$parseMediaSizeTags();
3465
+ s2 = peg$parseMediaTextTags();
3382
3466
  if (s2 !== peg$FAILED) {
3383
3467
  if (input.charCodeAt(peg$currPos) === 58) {
3384
3468
  s3 = peg$c5;
@@ -3509,7 +3593,7 @@ function peg$parse(input, options) {
3509
3593
  if (s1 === peg$FAILED) {
3510
3594
  s1 = null;
3511
3595
  }
3512
- s2 = peg$parseAlignmentTags();
3596
+ s2 = peg$parseMediaAlignmentTags();
3513
3597
  if (s2 !== peg$FAILED) {
3514
3598
  if (input.charCodeAt(peg$currPos) === 58) {
3515
3599
  s3 = peg$c5;
@@ -3546,10 +3630,34 @@ function peg$parse(input, options) {
3546
3630
  }
3547
3631
  }
3548
3632
  }
3549
- s5 = peg$parseAlignment();
3633
+ s5 = peg$parseMediaAlignment();
3550
3634
  if (s5 !== peg$FAILED) {
3551
- s6 = peg$parseBlockTag();
3552
- if (s6 !== peg$FAILED) {
3635
+ s6 = [];
3636
+ if (input.charCodeAt(peg$currPos) === 32) {
3637
+ s7 = peg$c12;
3638
+ peg$currPos++;
3639
+ }
3640
+ else {
3641
+ s7 = peg$FAILED;
3642
+ if (peg$silentFails === 0) {
3643
+ peg$fail(peg$e16);
3644
+ }
3645
+ }
3646
+ while (s7 !== peg$FAILED) {
3647
+ s6.push(s7);
3648
+ if (input.charCodeAt(peg$currPos) === 32) {
3649
+ s7 = peg$c12;
3650
+ peg$currPos++;
3651
+ }
3652
+ else {
3653
+ s7 = peg$FAILED;
3654
+ if (peg$silentFails === 0) {
3655
+ peg$fail(peg$e16);
3656
+ }
3657
+ }
3658
+ }
3659
+ s7 = peg$parseBlockTag();
3660
+ if (s7 !== peg$FAILED) {
3553
3661
  peg$savedPos = s0;
3554
3662
  s0 = peg$f46(s2, s5);
3555
3663
  }
@@ -3587,229 +3695,84 @@ function peg$parse(input, options) {
3587
3695
  if (s1 === peg$FAILED) {
3588
3696
  s1 = null;
3589
3697
  }
3590
- s2 = peg$currPos;
3591
- s3 = [];
3592
- s4 = peg$currPos;
3593
- s5 = peg$currPos;
3594
- peg$silentFails++;
3595
- s6 = input.charAt(peg$currPos);
3596
- if (peg$r2.test(s6)) {
3597
- peg$currPos++;
3598
- }
3599
- else {
3600
- s6 = peg$FAILED;
3601
- if (peg$silentFails === 0) {
3602
- peg$fail(peg$e27);
3698
+ s2 = peg$parseMediaBooleanTags();
3699
+ if (s2 !== peg$FAILED) {
3700
+ if (input.charCodeAt(peg$currPos) === 58) {
3701
+ s3 = peg$c5;
3702
+ peg$currPos++;
3603
3703
  }
3604
- }
3605
- if (s6 === peg$FAILED) {
3606
- s6 = peg$currPos;
3607
- s7 = peg$parseAlignmentTags();
3608
- if (s7 !== peg$FAILED) {
3609
- if (input.charCodeAt(peg$currPos) === 58) {
3610
- s8 = peg$c5;
3704
+ else {
3705
+ s3 = peg$FAILED;
3706
+ if (peg$silentFails === 0) {
3707
+ peg$fail(peg$e8);
3708
+ }
3709
+ }
3710
+ if (s3 !== peg$FAILED) {
3711
+ s4 = [];
3712
+ if (input.charCodeAt(peg$currPos) === 32) {
3713
+ s5 = peg$c12;
3611
3714
  peg$currPos++;
3612
3715
  }
3613
3716
  else {
3614
- s8 = peg$FAILED;
3717
+ s5 = peg$FAILED;
3615
3718
  if (peg$silentFails === 0) {
3616
- peg$fail(peg$e8);
3719
+ peg$fail(peg$e16);
3617
3720
  }
3618
3721
  }
3619
- if (s8 !== peg$FAILED) {
3620
- s7 = [s7, s8];
3621
- s6 = s7;
3622
- }
3623
- else {
3624
- peg$currPos = s6;
3625
- s6 = peg$FAILED;
3626
- }
3627
- }
3628
- else {
3629
- peg$currPos = s6;
3630
- s6 = peg$FAILED;
3631
- }
3632
- }
3633
- peg$silentFails--;
3634
- if (s6 === peg$FAILED) {
3635
- s5 = undefined;
3636
- }
3637
- else {
3638
- peg$currPos = s5;
3639
- s5 = peg$FAILED;
3640
- }
3641
- if (s5 !== peg$FAILED) {
3642
- s6 = peg$parsechar();
3643
- if (s6 !== peg$FAILED) {
3644
- s5 = [s5, s6];
3645
- s4 = s5;
3646
- }
3647
- else {
3648
- peg$currPos = s4;
3649
- s4 = peg$FAILED;
3650
- }
3651
- }
3652
- else {
3653
- peg$currPos = s4;
3654
- s4 = peg$FAILED;
3655
- }
3656
- while (s4 !== peg$FAILED) {
3657
- s3.push(s4);
3658
- s4 = peg$currPos;
3659
- s5 = peg$currPos;
3660
- peg$silentFails++;
3661
- s6 = input.charAt(peg$currPos);
3662
- if (peg$r2.test(s6)) {
3663
- peg$currPos++;
3664
- }
3665
- else {
3666
- s6 = peg$FAILED;
3667
- if (peg$silentFails === 0) {
3668
- peg$fail(peg$e27);
3669
- }
3670
- }
3671
- if (s6 === peg$FAILED) {
3672
- s6 = peg$currPos;
3673
- s7 = peg$parseAlignmentTags();
3674
- if (s7 !== peg$FAILED) {
3675
- if (input.charCodeAt(peg$currPos) === 58) {
3676
- s8 = peg$c5;
3722
+ while (s5 !== peg$FAILED) {
3723
+ s4.push(s5);
3724
+ if (input.charCodeAt(peg$currPos) === 32) {
3725
+ s5 = peg$c12;
3677
3726
  peg$currPos++;
3678
3727
  }
3679
3728
  else {
3680
- s8 = peg$FAILED;
3729
+ s5 = peg$FAILED;
3681
3730
  if (peg$silentFails === 0) {
3682
- peg$fail(peg$e8);
3731
+ peg$fail(peg$e16);
3683
3732
  }
3684
3733
  }
3685
- if (s8 !== peg$FAILED) {
3686
- s7 = [s7, s8];
3687
- s6 = s7;
3734
+ }
3735
+ s5 = peg$parseBoolean();
3736
+ if (s5 !== peg$FAILED) {
3737
+ s6 = [];
3738
+ if (input.charCodeAt(peg$currPos) === 32) {
3739
+ s7 = peg$c12;
3740
+ peg$currPos++;
3688
3741
  }
3689
3742
  else {
3690
- peg$currPos = s6;
3691
- s6 = peg$FAILED;
3743
+ s7 = peg$FAILED;
3744
+ if (peg$silentFails === 0) {
3745
+ peg$fail(peg$e16);
3746
+ }
3692
3747
  }
3693
- }
3694
- else {
3695
- peg$currPos = s6;
3696
- s6 = peg$FAILED;
3697
- }
3698
- }
3699
- peg$silentFails--;
3700
- if (s6 === peg$FAILED) {
3701
- s5 = undefined;
3702
- }
3703
- else {
3704
- peg$currPos = s5;
3705
- s5 = peg$FAILED;
3706
- }
3707
- if (s5 !== peg$FAILED) {
3708
- s6 = peg$parsechar();
3709
- if (s6 !== peg$FAILED) {
3710
- s5 = [s5, s6];
3711
- s4 = s5;
3712
- }
3713
- else {
3714
- peg$currPos = s4;
3715
- s4 = peg$FAILED;
3716
- }
3717
- }
3718
- else {
3719
- peg$currPos = s4;
3720
- s4 = peg$FAILED;
3721
- }
3722
- }
3723
- s2 = input.substring(s2, peg$currPos);
3724
- if (input.charCodeAt(peg$currPos) === 58) {
3725
- s3 = peg$c5;
3726
- peg$currPos++;
3727
- }
3728
- else {
3729
- s3 = peg$FAILED;
3730
- if (peg$silentFails === 0) {
3731
- peg$fail(peg$e8);
3732
- }
3733
- }
3734
- if (s3 !== peg$FAILED) {
3735
- if (input.charCodeAt(peg$currPos) === 32) {
3736
- s4 = peg$c12;
3737
- peg$currPos++;
3738
- }
3739
- else {
3740
- s4 = peg$FAILED;
3741
- if (peg$silentFails === 0) {
3742
- peg$fail(peg$e16);
3743
- }
3744
- }
3745
- if (s4 === peg$FAILED) {
3746
- s4 = null;
3747
- }
3748
- s5 = peg$currPos;
3749
- s6 = [];
3750
- s7 = peg$currPos;
3751
- s8 = peg$currPos;
3752
- peg$silentFails++;
3753
- s9 = peg$parseBlockTag();
3754
- peg$silentFails--;
3755
- if (s9 === peg$FAILED) {
3756
- s8 = undefined;
3757
- }
3758
- else {
3759
- peg$currPos = s8;
3760
- s8 = peg$FAILED;
3761
- }
3762
- if (s8 !== peg$FAILED) {
3763
- s9 = peg$parsechar();
3764
- if (s9 !== peg$FAILED) {
3765
- s8 = [s8, s9];
3766
- s7 = s8;
3767
- }
3768
- else {
3769
- peg$currPos = s7;
3770
- s7 = peg$FAILED;
3771
- }
3772
- }
3773
- else {
3774
- peg$currPos = s7;
3775
- s7 = peg$FAILED;
3776
- }
3777
- while (s7 !== peg$FAILED) {
3778
- s6.push(s7);
3779
- s7 = peg$currPos;
3780
- s8 = peg$currPos;
3781
- peg$silentFails++;
3782
- s9 = peg$parseBlockTag();
3783
- peg$silentFails--;
3784
- if (s9 === peg$FAILED) {
3785
- s8 = undefined;
3786
- }
3787
- else {
3788
- peg$currPos = s8;
3789
- s8 = peg$FAILED;
3790
- }
3791
- if (s8 !== peg$FAILED) {
3792
- s9 = peg$parsechar();
3793
- if (s9 !== peg$FAILED) {
3794
- s8 = [s8, s9];
3795
- s7 = s8;
3748
+ while (s7 !== peg$FAILED) {
3749
+ s6.push(s7);
3750
+ if (input.charCodeAt(peg$currPos) === 32) {
3751
+ s7 = peg$c12;
3752
+ peg$currPos++;
3753
+ }
3754
+ else {
3755
+ s7 = peg$FAILED;
3756
+ if (peg$silentFails === 0) {
3757
+ peg$fail(peg$e16);
3758
+ }
3759
+ }
3760
+ }
3761
+ s7 = peg$parseBlockTag();
3762
+ if (s7 !== peg$FAILED) {
3763
+ peg$savedPos = s0;
3764
+ s0 = peg$f47(s2, s5);
3796
3765
  }
3797
3766
  else {
3798
- peg$currPos = s7;
3799
- s7 = peg$FAILED;
3767
+ peg$currPos = s0;
3768
+ s0 = peg$FAILED;
3800
3769
  }
3801
3770
  }
3802
3771
  else {
3803
- peg$currPos = s7;
3804
- s7 = peg$FAILED;
3772
+ peg$currPos = s0;
3773
+ s0 = peg$FAILED;
3805
3774
  }
3806
3775
  }
3807
- s5 = input.substring(s5, peg$currPos);
3808
- s6 = peg$parseBlockTag();
3809
- if (s6 !== peg$FAILED) {
3810
- peg$savedPos = s0;
3811
- s0 = peg$f47(s2, s5);
3812
- }
3813
3776
  else {
3814
3777
  peg$currPos = s0;
3815
3778
  s0 = peg$FAILED;
@@ -3834,130 +3797,155 @@ function peg$parse(input, options) {
3834
3797
  if (s1 === peg$FAILED) {
3835
3798
  s1 = null;
3836
3799
  }
3837
- s2 = peg$currPos;
3838
- s3 = [];
3839
- s4 = peg$currPos;
3840
- s5 = peg$currPos;
3841
- peg$silentFails++;
3842
- s6 = peg$parseBlockTag();
3843
- if (s6 === peg$FAILED) {
3844
- s6 = peg$currPos;
3845
- s7 = peg$parseAlignmentTags();
3846
- if (s7 !== peg$FAILED) {
3847
- if (input.charCodeAt(peg$currPos) === 58) {
3848
- s8 = peg$c5;
3800
+ s2 = peg$parseMediaBooleanTags();
3801
+ if (s2 !== peg$FAILED) {
3802
+ s3 = [];
3803
+ if (input.charCodeAt(peg$currPos) === 32) {
3804
+ s4 = peg$c12;
3805
+ peg$currPos++;
3806
+ }
3807
+ else {
3808
+ s4 = peg$FAILED;
3809
+ if (peg$silentFails === 0) {
3810
+ peg$fail(peg$e16);
3811
+ }
3812
+ }
3813
+ while (s4 !== peg$FAILED) {
3814
+ s3.push(s4);
3815
+ if (input.charCodeAt(peg$currPos) === 32) {
3816
+ s4 = peg$c12;
3849
3817
  peg$currPos++;
3850
3818
  }
3851
3819
  else {
3852
- s8 = peg$FAILED;
3820
+ s4 = peg$FAILED;
3853
3821
  if (peg$silentFails === 0) {
3854
- peg$fail(peg$e8);
3855
- }
3856
- }
3857
- if (s8 !== peg$FAILED) {
3858
- s7 = [s7, s8];
3859
- s6 = s7;
3860
- }
3861
- else {
3862
- peg$currPos = s6;
3863
- s6 = peg$FAILED;
3822
+ peg$fail(peg$e16);
3823
+ }
3864
3824
  }
3865
3825
  }
3826
+ s4 = peg$parseBlockTag();
3827
+ if (s4 !== peg$FAILED) {
3828
+ peg$savedPos = s0;
3829
+ s0 = peg$f48(s2);
3830
+ }
3866
3831
  else {
3867
- peg$currPos = s6;
3868
- s6 = peg$FAILED;
3832
+ peg$currPos = s0;
3833
+ s0 = peg$FAILED;
3869
3834
  }
3870
3835
  }
3871
- peg$silentFails--;
3872
- if (s6 === peg$FAILED) {
3873
- s5 = undefined;
3874
- }
3875
3836
  else {
3876
- peg$currPos = s5;
3877
- s5 = peg$FAILED;
3837
+ peg$currPos = s0;
3838
+ s0 = peg$FAILED;
3878
3839
  }
3879
- if (s5 !== peg$FAILED) {
3880
- s6 = peg$parsechar();
3881
- if (s6 !== peg$FAILED) {
3882
- s5 = [s5, s6];
3883
- s4 = s5;
3840
+ if (s0 === peg$FAILED) {
3841
+ s0 = peg$currPos;
3842
+ if (input.charCodeAt(peg$currPos) === 64) {
3843
+ s1 = peg$c22;
3844
+ peg$currPos++;
3884
3845
  }
3885
3846
  else {
3886
- peg$currPos = s4;
3887
- s4 = peg$FAILED;
3847
+ s1 = peg$FAILED;
3848
+ if (peg$silentFails === 0) {
3849
+ peg$fail(peg$e26);
3850
+ }
3888
3851
  }
3889
- }
3890
- else {
3891
- peg$currPos = s4;
3892
- s4 = peg$FAILED;
3893
- }
3894
- while (s4 !== peg$FAILED) {
3895
- s3.push(s4);
3896
- s4 = peg$currPos;
3897
- s5 = peg$currPos;
3898
- peg$silentFails++;
3899
- s6 = peg$parseBlockTag();
3900
- if (s6 === peg$FAILED) {
3901
- s6 = peg$currPos;
3902
- s7 = peg$parseAlignmentTags();
3903
- if (s7 !== peg$FAILED) {
3904
- if (input.charCodeAt(peg$currPos) === 58) {
3905
- s8 = peg$c5;
3906
- peg$currPos++;
3907
- }
3908
- else {
3909
- s8 = peg$FAILED;
3910
- if (peg$silentFails === 0) {
3911
- peg$fail(peg$e8);
3912
- }
3852
+ if (s1 === peg$FAILED) {
3853
+ s1 = null;
3854
+ }
3855
+ s2 = peg$parseBlockTag();
3856
+ if (s2 !== peg$FAILED) {
3857
+ peg$savedPos = s0;
3858
+ s0 = peg$f49();
3859
+ }
3860
+ else {
3861
+ peg$currPos = s0;
3862
+ s0 = peg$FAILED;
3863
+ }
3864
+ if (s0 === peg$FAILED) {
3865
+ s0 = peg$currPos;
3866
+ if (input.charCodeAt(peg$currPos) === 64) {
3867
+ s1 = peg$c22;
3868
+ peg$currPos++;
3869
+ }
3870
+ else {
3871
+ s1 = peg$FAILED;
3872
+ if (peg$silentFails === 0) {
3873
+ peg$fail(peg$e26);
3913
3874
  }
3914
- if (s8 !== peg$FAILED) {
3915
- s7 = [s7, s8];
3916
- s6 = s7;
3875
+ }
3876
+ if (s1 === peg$FAILED) {
3877
+ s1 = null;
3878
+ }
3879
+ s2 = peg$currPos;
3880
+ s3 = [];
3881
+ s4 = peg$currPos;
3882
+ s5 = peg$currPos;
3883
+ peg$silentFails++;
3884
+ s6 = peg$parseBlockTag();
3885
+ peg$silentFails--;
3886
+ if (s6 === peg$FAILED) {
3887
+ s5 = undefined;
3888
+ }
3889
+ else {
3890
+ peg$currPos = s5;
3891
+ s5 = peg$FAILED;
3892
+ }
3893
+ if (s5 !== peg$FAILED) {
3894
+ s6 = peg$parsechar();
3895
+ if (s6 !== peg$FAILED) {
3896
+ s5 = [s5, s6];
3897
+ s4 = s5;
3917
3898
  }
3918
3899
  else {
3919
- peg$currPos = s6;
3920
- s6 = peg$FAILED;
3900
+ peg$currPos = s4;
3901
+ s4 = peg$FAILED;
3921
3902
  }
3922
3903
  }
3923
3904
  else {
3924
- peg$currPos = s6;
3925
- s6 = peg$FAILED;
3905
+ peg$currPos = s4;
3906
+ s4 = peg$FAILED;
3926
3907
  }
3927
- }
3928
- peg$silentFails--;
3929
- if (s6 === peg$FAILED) {
3930
- s5 = undefined;
3931
- }
3932
- else {
3933
- peg$currPos = s5;
3934
- s5 = peg$FAILED;
3935
- }
3936
- if (s5 !== peg$FAILED) {
3937
- s6 = peg$parsechar();
3938
- if (s6 !== peg$FAILED) {
3939
- s5 = [s5, s6];
3940
- s4 = s5;
3908
+ while (s4 !== peg$FAILED) {
3909
+ s3.push(s4);
3910
+ s4 = peg$currPos;
3911
+ s5 = peg$currPos;
3912
+ peg$silentFails++;
3913
+ s6 = peg$parseBlockTag();
3914
+ peg$silentFails--;
3915
+ if (s6 === peg$FAILED) {
3916
+ s5 = undefined;
3917
+ }
3918
+ else {
3919
+ peg$currPos = s5;
3920
+ s5 = peg$FAILED;
3921
+ }
3922
+ if (s5 !== peg$FAILED) {
3923
+ s6 = peg$parsechar();
3924
+ if (s6 !== peg$FAILED) {
3925
+ s5 = [s5, s6];
3926
+ s4 = s5;
3927
+ }
3928
+ else {
3929
+ peg$currPos = s4;
3930
+ s4 = peg$FAILED;
3931
+ }
3932
+ }
3933
+ else {
3934
+ peg$currPos = s4;
3935
+ s4 = peg$FAILED;
3936
+ }
3937
+ }
3938
+ s2 = input.substring(s2, peg$currPos);
3939
+ s3 = peg$parseBlockTag();
3940
+ if (s3 !== peg$FAILED) {
3941
+ peg$savedPos = s0;
3942
+ s0 = peg$f50(s2);
3941
3943
  }
3942
3944
  else {
3943
- peg$currPos = s4;
3944
- s4 = peg$FAILED;
3945
+ peg$currPos = s0;
3946
+ s0 = peg$FAILED;
3945
3947
  }
3946
3948
  }
3947
- else {
3948
- peg$currPos = s4;
3949
- s4 = peg$FAILED;
3950
- }
3951
- }
3952
- s2 = input.substring(s2, peg$currPos);
3953
- s3 = peg$parseBlockTag();
3954
- if (s3 !== peg$FAILED) {
3955
- peg$savedPos = s0;
3956
- s0 = peg$f48(s2);
3957
- }
3958
- else {
3959
- peg$currPos = s0;
3960
- s0 = peg$FAILED;
3961
3949
  }
3962
3950
  }
3963
3951
  }
@@ -3975,7 +3963,7 @@ function peg$parse(input, options) {
3975
3963
  else {
3976
3964
  s0 = peg$FAILED;
3977
3965
  if (peg$silentFails === 0) {
3978
- peg$fail(peg$e28);
3966
+ peg$fail(peg$e27);
3979
3967
  }
3980
3968
  }
3981
3969
  if (s0 === peg$FAILED) {
@@ -3986,13 +3974,13 @@ function peg$parse(input, options) {
3986
3974
  else {
3987
3975
  s0 = peg$FAILED;
3988
3976
  if (peg$silentFails === 0) {
3989
- peg$fail(peg$e29);
3977
+ peg$fail(peg$e28);
3990
3978
  }
3991
3979
  }
3992
3980
  }
3993
3981
  return s0;
3994
3982
  }
3995
- function peg$parseAlignmentTags() {
3983
+ function peg$parseMediaAlignmentTags() {
3996
3984
  var s0;
3997
3985
  if (input.substr(peg$currPos, 9) === peg$c25) {
3998
3986
  s0 = peg$c25;
@@ -4001,7 +3989,7 @@ function peg$parse(input, options) {
4001
3989
  else {
4002
3990
  s0 = peg$FAILED;
4003
3991
  if (peg$silentFails === 0) {
4004
- peg$fail(peg$e30);
3992
+ peg$fail(peg$e29);
4005
3993
  }
4006
3994
  }
4007
3995
  if (s0 === peg$FAILED) {
@@ -4012,13 +4000,13 @@ function peg$parse(input, options) {
4012
4000
  else {
4013
4001
  s0 = peg$FAILED;
4014
4002
  if (peg$silentFails === 0) {
4015
- peg$fail(peg$e31);
4003
+ peg$fail(peg$e30);
4016
4004
  }
4017
4005
  }
4018
4006
  }
4019
4007
  return s0;
4020
4008
  }
4021
- function peg$parseAlignment() {
4009
+ function peg$parseMediaAlignment() {
4022
4010
  var s0;
4023
4011
  if (input.substr(peg$currPos, 4) === peg$c27) {
4024
4012
  s0 = peg$c27;
@@ -4027,7 +4015,7 @@ function peg$parse(input, options) {
4027
4015
  else {
4028
4016
  s0 = peg$FAILED;
4029
4017
  if (peg$silentFails === 0) {
4030
- peg$fail(peg$e32);
4018
+ peg$fail(peg$e31);
4031
4019
  }
4032
4020
  }
4033
4021
  if (s0 === peg$FAILED) {
@@ -4038,7 +4026,7 @@ function peg$parse(input, options) {
4038
4026
  else {
4039
4027
  s0 = peg$FAILED;
4040
4028
  if (peg$silentFails === 0) {
4041
- peg$fail(peg$e33);
4029
+ peg$fail(peg$e32);
4042
4030
  }
4043
4031
  }
4044
4032
  if (s0 === peg$FAILED) {
@@ -4049,20 +4037,86 @@ function peg$parse(input, options) {
4049
4037
  else {
4050
4038
  s0 = peg$FAILED;
4051
4039
  if (peg$silentFails === 0) {
4052
- peg$fail(peg$e34);
4040
+ peg$fail(peg$e33);
4053
4041
  }
4054
4042
  }
4055
4043
  }
4056
4044
  }
4057
4045
  return s0;
4058
4046
  }
4047
+ function peg$parseMediaTextTags() {
4048
+ var s0;
4049
+ if (input.substr(peg$currPos, 3) === peg$c30) {
4050
+ s0 = peg$c30;
4051
+ peg$currPos += 3;
4052
+ }
4053
+ else {
4054
+ s0 = peg$FAILED;
4055
+ if (peg$silentFails === 0) {
4056
+ peg$fail(peg$e34);
4057
+ }
4058
+ }
4059
+ if (s0 === peg$FAILED) {
4060
+ if (input.substr(peg$currPos, 7) === peg$c31) {
4061
+ s0 = peg$c31;
4062
+ peg$currPos += 7;
4063
+ }
4064
+ else {
4065
+ s0 = peg$FAILED;
4066
+ if (peg$silentFails === 0) {
4067
+ peg$fail(peg$e35);
4068
+ }
4069
+ }
4070
+ }
4071
+ return s0;
4072
+ }
4073
+ function peg$parseMediaBooleanTags() {
4074
+ var s0;
4075
+ if (input.substr(peg$currPos, 12) === peg$c32) {
4076
+ s0 = peg$c32;
4077
+ peg$currPos += 12;
4078
+ }
4079
+ else {
4080
+ s0 = peg$FAILED;
4081
+ if (peg$silentFails === 0) {
4082
+ peg$fail(peg$e36);
4083
+ }
4084
+ }
4085
+ return s0;
4086
+ }
4087
+ function peg$parseBoolean() {
4088
+ var s0;
4089
+ if (input.substr(peg$currPos, 4) === peg$c33) {
4090
+ s0 = peg$c33;
4091
+ peg$currPos += 4;
4092
+ }
4093
+ else {
4094
+ s0 = peg$FAILED;
4095
+ if (peg$silentFails === 0) {
4096
+ peg$fail(peg$e37);
4097
+ }
4098
+ }
4099
+ if (s0 === peg$FAILED) {
4100
+ if (input.substr(peg$currPos, 5) === peg$c34) {
4101
+ s0 = peg$c34;
4102
+ peg$currPos += 5;
4103
+ }
4104
+ else {
4105
+ s0 = peg$FAILED;
4106
+ if (peg$silentFails === 0) {
4107
+ peg$fail(peg$e38);
4108
+ }
4109
+ }
4110
+ }
4111
+ return s0;
4112
+ }
4059
4113
  function peg$parsebitmarkPlus() {
4060
4114
  var s0, s1;
4061
4115
  peg$silentFails++;
4062
4116
  s0 = peg$currPos;
4063
4117
  s1 = peg$parseInlineTags();
4064
4118
  peg$savedPos = s0;
4065
- s1 = peg$f49(s1);
4119
+ s1 = peg$f51(s1);
4066
4120
  s0 = s1;
4067
4121
  peg$silentFails--;
4068
4122
  s1 = peg$FAILED;
@@ -4078,7 +4132,7 @@ function peg$parse(input, options) {
4078
4132
  peg$silentFails--;
4079
4133
  s1 = peg$FAILED;
4080
4134
  if (peg$silentFails === 0) {
4081
- peg$fail(peg$e35);
4135
+ peg$fail(peg$e39);
4082
4136
  }
4083
4137
  return s0;
4084
4138
  }
@@ -4102,7 +4156,7 @@ function peg$parse(input, options) {
4102
4156
  }
4103
4157
  }
4104
4158
  peg$savedPos = s0;
4105
- s0 = peg$f50(s1, s2);
4159
+ s0 = peg$f52(s1, s2);
4106
4160
  return s0;
4107
4161
  }
4108
4162
  function peg$parseInlinePlainText() {
@@ -4111,7 +4165,7 @@ function peg$parse(input, options) {
4111
4165
  s1 = peg$parseNL();
4112
4166
  if (s1 !== peg$FAILED) {
4113
4167
  peg$savedPos = s0;
4114
- s1 = peg$f51();
4168
+ s1 = peg$f53();
4115
4169
  }
4116
4170
  s0 = s1;
4117
4171
  if (s0 === peg$FAILED) {
@@ -4254,7 +4308,7 @@ function peg$parse(input, options) {
4254
4308
  }
4255
4309
  if (s1 !== peg$FAILED) {
4256
4310
  peg$savedPos = s0;
4257
- s1 = peg$f52(s1);
4311
+ s1 = peg$f54(s1);
4258
4312
  }
4259
4313
  s0 = s1;
4260
4314
  }
@@ -4263,13 +4317,13 @@ function peg$parse(input, options) {
4263
4317
  function peg$parseInlineHalfTag() {
4264
4318
  var s0;
4265
4319
  if (input.charCodeAt(peg$currPos) === 61) {
4266
- s0 = peg$c30;
4320
+ s0 = peg$c35;
4267
4321
  peg$currPos++;
4268
4322
  }
4269
4323
  else {
4270
4324
  s0 = peg$FAILED;
4271
4325
  if (peg$silentFails === 0) {
4272
- peg$fail(peg$e36);
4326
+ peg$fail(peg$e40);
4273
4327
  }
4274
4328
  }
4275
4329
  return s0;
@@ -4340,7 +4394,7 @@ function peg$parse(input, options) {
4340
4394
  s3 = peg$parseBodyBitCloseTag();
4341
4395
  if (s3 !== peg$FAILED) {
4342
4396
  peg$savedPos = s0;
4343
- s0 = peg$f53(s2);
4397
+ s0 = peg$f55(s2);
4344
4398
  }
4345
4399
  else {
4346
4400
  peg$currPos = s0;
@@ -4440,19 +4494,19 @@ function peg$parse(input, options) {
4440
4494
  s2 = input.substring(s2, peg$currPos);
4441
4495
  s3 = peg$parseInlineTag();
4442
4496
  if (s3 !== peg$FAILED) {
4443
- if (input.substr(peg$currPos, 7) === peg$c31) {
4444
- s4 = peg$c31;
4497
+ if (input.substr(peg$currPos, 7) === peg$c36) {
4498
+ s4 = peg$c36;
4445
4499
  peg$currPos += 7;
4446
4500
  }
4447
4501
  else {
4448
4502
  s4 = peg$FAILED;
4449
4503
  if (peg$silentFails === 0) {
4450
- peg$fail(peg$e37);
4504
+ peg$fail(peg$e41);
4451
4505
  }
4452
4506
  }
4453
4507
  if (s4 !== peg$FAILED) {
4454
4508
  peg$savedPos = s0;
4455
- s0 = peg$f54(s2);
4509
+ s0 = peg$f56(s2);
4456
4510
  }
4457
4511
  else {
4458
4512
  peg$currPos = s0;
@@ -4552,14 +4606,14 @@ function peg$parse(input, options) {
4552
4606
  s2 = input.substring(s2, peg$currPos);
4553
4607
  s3 = peg$parseInlineTag();
4554
4608
  if (s3 !== peg$FAILED) {
4555
- if (input.substr(peg$currPos, 13) === peg$c32) {
4556
- s4 = peg$c32;
4609
+ if (input.substr(peg$currPos, 13) === peg$c37) {
4610
+ s4 = peg$c37;
4557
4611
  peg$currPos += 13;
4558
4612
  }
4559
4613
  else {
4560
4614
  s4 = peg$FAILED;
4561
4615
  if (peg$silentFails === 0) {
4562
- peg$fail(peg$e38);
4616
+ peg$fail(peg$e42);
4563
4617
  }
4564
4618
  }
4565
4619
  if (s4 !== peg$FAILED) {
@@ -4578,7 +4632,7 @@ function peg$parse(input, options) {
4578
4632
  if (s6 !== peg$FAILED) {
4579
4633
  s7 = peg$parseInlineMediaChain();
4580
4634
  peg$savedPos = s0;
4581
- s0 = peg$f55(s2, s5, s7);
4635
+ s0 = peg$f57(s2, s5, s7);
4582
4636
  }
4583
4637
  else {
4584
4638
  peg$currPos = s0;
@@ -4691,7 +4745,7 @@ function peg$parse(input, options) {
4691
4745
  s4 = peg$parseAttrChain();
4692
4746
  if (s4 !== peg$FAILED) {
4693
4747
  peg$savedPos = s0;
4694
- s0 = peg$f56(s2, s4);
4748
+ s0 = peg$f58(s2, s4);
4695
4749
  }
4696
4750
  else {
4697
4751
  peg$currPos = s0;
@@ -4792,7 +4846,7 @@ function peg$parse(input, options) {
4792
4846
  s3 = peg$parseBoldTag();
4793
4847
  if (s3 !== peg$FAILED) {
4794
4848
  peg$savedPos = s0;
4795
- s0 = peg$f57(s2);
4849
+ s0 = peg$f59(s2);
4796
4850
  }
4797
4851
  else {
4798
4852
  peg$currPos = s0;
@@ -4888,7 +4942,7 @@ function peg$parse(input, options) {
4888
4942
  s3 = peg$parseItalicTag();
4889
4943
  if (s3 !== peg$FAILED) {
4890
4944
  peg$savedPos = s0;
4891
- s0 = peg$f58(s2);
4945
+ s0 = peg$f60(s2);
4892
4946
  }
4893
4947
  else {
4894
4948
  peg$currPos = s0;
@@ -4984,7 +5038,7 @@ function peg$parse(input, options) {
4984
5038
  s3 = peg$parseLightTag();
4985
5039
  if (s3 !== peg$FAILED) {
4986
5040
  peg$savedPos = s0;
4987
- s0 = peg$f59(s2);
5041
+ s0 = peg$f61(s2);
4988
5042
  }
4989
5043
  else {
4990
5044
  peg$currPos = s0;
@@ -5080,7 +5134,7 @@ function peg$parse(input, options) {
5080
5134
  s3 = peg$parseHighlightTag();
5081
5135
  if (s3 !== peg$FAILED) {
5082
5136
  peg$savedPos = s0;
5083
- s0 = peg$f60(s2);
5137
+ s0 = peg$f62(s2);
5084
5138
  }
5085
5139
  else {
5086
5140
  peg$currPos = s0;
@@ -5096,7 +5150,7 @@ function peg$parse(input, options) {
5096
5150
  s1 = peg$parseUrl();
5097
5151
  if (s1 !== peg$FAILED) {
5098
5152
  peg$savedPos = s0;
5099
- s1 = peg$f61(s1);
5153
+ s1 = peg$f63(s1);
5100
5154
  }
5101
5155
  s0 = s1;
5102
5156
  }
@@ -5246,7 +5300,7 @@ function peg$parse(input, options) {
5246
5300
  }
5247
5301
  if (s2 !== peg$FAILED) {
5248
5302
  peg$savedPos = s0;
5249
- s0 = peg$f62(s2);
5303
+ s0 = peg$f64(s2);
5250
5304
  }
5251
5305
  else {
5252
5306
  peg$currPos = s0;
@@ -5269,7 +5323,7 @@ function peg$parse(input, options) {
5269
5323
  s2 = peg$parseInlineMediaChainItem();
5270
5324
  }
5271
5325
  peg$savedPos = s0;
5272
- s1 = peg$f63(s1);
5326
+ s1 = peg$f65(s1);
5273
5327
  s0 = s1;
5274
5328
  return s0;
5275
5329
  }
@@ -5350,7 +5404,7 @@ function peg$parse(input, options) {
5350
5404
  s3 = peg$parseBlockTag();
5351
5405
  if (s3 !== peg$FAILED) {
5352
5406
  peg$savedPos = s0;
5353
- s0 = peg$f64(s2);
5407
+ s0 = peg$f66(s2);
5354
5408
  }
5355
5409
  else {
5356
5410
  peg$currPos = s0;
@@ -5505,7 +5559,7 @@ function peg$parse(input, options) {
5505
5559
  s6 = peg$parseBlockTag();
5506
5560
  if (s6 !== peg$FAILED) {
5507
5561
  peg$savedPos = s0;
5508
- s0 = peg$f65(s2, s5);
5562
+ s0 = peg$f67(s2, s5);
5509
5563
  }
5510
5564
  else {
5511
5565
  peg$currPos = s0;
@@ -5641,7 +5695,7 @@ function peg$parse(input, options) {
5641
5695
  s6 = peg$parseBlockTag();
5642
5696
  if (s6 !== peg$FAILED) {
5643
5697
  peg$savedPos = s0;
5644
- s0 = peg$f66(s2, s5);
5698
+ s0 = peg$f68(s2, s5);
5645
5699
  }
5646
5700
  else {
5647
5701
  peg$currPos = s0;
@@ -5672,14 +5726,14 @@ function peg$parse(input, options) {
5672
5726
  if (s1 === peg$FAILED) {
5673
5727
  s1 = null;
5674
5728
  }
5675
- if (input.substr(peg$currPos, 17) === peg$c33) {
5676
- s2 = peg$c33;
5729
+ if (input.substr(peg$currPos, 17) === peg$c38) {
5730
+ s2 = peg$c38;
5677
5731
  peg$currPos += 17;
5678
5732
  }
5679
5733
  else {
5680
5734
  s2 = peg$FAILED;
5681
5735
  if (peg$silentFails === 0) {
5682
- peg$fail(peg$e39);
5736
+ peg$fail(peg$e43);
5683
5737
  }
5684
5738
  }
5685
5739
  if (s2 !== peg$FAILED) {
@@ -5723,7 +5777,7 @@ function peg$parse(input, options) {
5723
5777
  s6 = peg$parseBlockTag();
5724
5778
  if (s6 !== peg$FAILED) {
5725
5779
  peg$savedPos = s0;
5726
- s0 = peg$f67(s2, s5);
5780
+ s0 = peg$f69(s2, s5);
5727
5781
  }
5728
5782
  else {
5729
5783
  peg$currPos = s0;
@@ -5759,14 +5813,14 @@ function peg$parse(input, options) {
5759
5813
  if (s1 === peg$FAILED) {
5760
5814
  s1 = null;
5761
5815
  }
5762
- if (input.substr(peg$currPos, 4) === peg$c34) {
5763
- s2 = peg$c34;
5816
+ if (input.substr(peg$currPos, 4) === peg$c39) {
5817
+ s2 = peg$c39;
5764
5818
  peg$currPos += 4;
5765
5819
  }
5766
5820
  else {
5767
5821
  s2 = peg$FAILED;
5768
5822
  if (peg$silentFails === 0) {
5769
- peg$fail(peg$e40);
5823
+ peg$fail(peg$e44);
5770
5824
  }
5771
5825
  }
5772
5826
  if (s2 !== peg$FAILED) {
@@ -5810,7 +5864,7 @@ function peg$parse(input, options) {
5810
5864
  s6 = peg$parseBlockTag();
5811
5865
  if (s6 !== peg$FAILED) {
5812
5866
  peg$savedPos = s0;
5813
- s0 = peg$f68(s2, s5);
5867
+ s0 = peg$f70(s2, s5);
5814
5868
  }
5815
5869
  else {
5816
5870
  peg$currPos = s0;
@@ -5839,91 +5893,91 @@ function peg$parse(input, options) {
5839
5893
  }
5840
5894
  function peg$parseInlineMediaAlignment() {
5841
5895
  var s0;
5842
- if (input.substr(peg$currPos, 3) === peg$c35) {
5843
- s0 = peg$c35;
5896
+ if (input.substr(peg$currPos, 3) === peg$c40) {
5897
+ s0 = peg$c40;
5844
5898
  peg$currPos += 3;
5845
5899
  }
5846
5900
  else {
5847
5901
  s0 = peg$FAILED;
5848
5902
  if (peg$silentFails === 0) {
5849
- peg$fail(peg$e41);
5903
+ peg$fail(peg$e45);
5850
5904
  }
5851
5905
  }
5852
5906
  if (s0 === peg$FAILED) {
5853
- if (input.substr(peg$currPos, 6) === peg$c36) {
5854
- s0 = peg$c36;
5907
+ if (input.substr(peg$currPos, 6) === peg$c41) {
5908
+ s0 = peg$c41;
5855
5909
  peg$currPos += 6;
5856
5910
  }
5857
5911
  else {
5858
5912
  s0 = peg$FAILED;
5859
5913
  if (peg$silentFails === 0) {
5860
- peg$fail(peg$e42);
5914
+ peg$fail(peg$e46);
5861
5915
  }
5862
5916
  }
5863
5917
  if (s0 === peg$FAILED) {
5864
- if (input.substr(peg$currPos, 6) === peg$c37) {
5865
- s0 = peg$c37;
5918
+ if (input.substr(peg$currPos, 6) === peg$c42) {
5919
+ s0 = peg$c42;
5866
5920
  peg$currPos += 6;
5867
5921
  }
5868
5922
  else {
5869
5923
  s0 = peg$FAILED;
5870
5924
  if (peg$silentFails === 0) {
5871
- peg$fail(peg$e43);
5925
+ peg$fail(peg$e47);
5872
5926
  }
5873
5927
  }
5874
5928
  if (s0 === peg$FAILED) {
5875
- if (input.substr(peg$currPos, 8) === peg$c38) {
5876
- s0 = peg$c38;
5929
+ if (input.substr(peg$currPos, 8) === peg$c43) {
5930
+ s0 = peg$c43;
5877
5931
  peg$currPos += 8;
5878
5932
  }
5879
5933
  else {
5880
5934
  s0 = peg$FAILED;
5881
5935
  if (peg$silentFails === 0) {
5882
- peg$fail(peg$e44);
5936
+ peg$fail(peg$e48);
5883
5937
  }
5884
5938
  }
5885
5939
  if (s0 === peg$FAILED) {
5886
- if (input.substr(peg$currPos, 3) === peg$c39) {
5887
- s0 = peg$c39;
5940
+ if (input.substr(peg$currPos, 3) === peg$c44) {
5941
+ s0 = peg$c44;
5888
5942
  peg$currPos += 3;
5889
5943
  }
5890
5944
  else {
5891
5945
  s0 = peg$FAILED;
5892
5946
  if (peg$silentFails === 0) {
5893
- peg$fail(peg$e45);
5947
+ peg$fail(peg$e49);
5894
5948
  }
5895
5949
  }
5896
5950
  if (s0 === peg$FAILED) {
5897
- if (input.substr(peg$currPos, 5) === peg$c40) {
5898
- s0 = peg$c40;
5951
+ if (input.substr(peg$currPos, 5) === peg$c45) {
5952
+ s0 = peg$c45;
5899
5953
  peg$currPos += 5;
5900
5954
  }
5901
5955
  else {
5902
5956
  s0 = peg$FAILED;
5903
5957
  if (peg$silentFails === 0) {
5904
- peg$fail(peg$e46);
5958
+ peg$fail(peg$e50);
5905
5959
  }
5906
5960
  }
5907
5961
  if (s0 === peg$FAILED) {
5908
- if (input.substr(peg$currPos, 11) === peg$c41) {
5909
- s0 = peg$c41;
5962
+ if (input.substr(peg$currPos, 11) === peg$c46) {
5963
+ s0 = peg$c46;
5910
5964
  peg$currPos += 11;
5911
5965
  }
5912
5966
  else {
5913
5967
  s0 = peg$FAILED;
5914
5968
  if (peg$silentFails === 0) {
5915
- peg$fail(peg$e47);
5969
+ peg$fail(peg$e51);
5916
5970
  }
5917
5971
  }
5918
5972
  if (s0 === peg$FAILED) {
5919
- if (input.substr(peg$currPos, 8) === peg$c42) {
5920
- s0 = peg$c42;
5973
+ if (input.substr(peg$currPos, 8) === peg$c47) {
5974
+ s0 = peg$c47;
5921
5975
  peg$currPos += 8;
5922
5976
  }
5923
5977
  else {
5924
5978
  s0 = peg$FAILED;
5925
5979
  if (peg$silentFails === 0) {
5926
- peg$fail(peg$e48);
5980
+ peg$fail(peg$e52);
5927
5981
  }
5928
5982
  }
5929
5983
  }
@@ -5937,58 +5991,58 @@ function peg$parse(input, options) {
5937
5991
  }
5938
5992
  function peg$parseInlineMediaSize() {
5939
5993
  var s0;
5940
- if (input.substr(peg$currPos, 11) === peg$c43) {
5941
- s0 = peg$c43;
5994
+ if (input.substr(peg$currPos, 11) === peg$c48) {
5995
+ s0 = peg$c48;
5942
5996
  peg$currPos += 11;
5943
5997
  }
5944
5998
  else {
5945
5999
  s0 = peg$FAILED;
5946
6000
  if (peg$silentFails === 0) {
5947
- peg$fail(peg$e49);
6001
+ peg$fail(peg$e53);
5948
6002
  }
5949
6003
  }
5950
6004
  if (s0 === peg$FAILED) {
5951
- if (input.substr(peg$currPos, 11) === peg$c44) {
5952
- s0 = peg$c44;
6005
+ if (input.substr(peg$currPos, 11) === peg$c49) {
6006
+ s0 = peg$c49;
5953
6007
  peg$currPos += 11;
5954
6008
  }
5955
6009
  else {
5956
6010
  s0 = peg$FAILED;
5957
6011
  if (peg$silentFails === 0) {
5958
- peg$fail(peg$e50);
6012
+ peg$fail(peg$e54);
5959
6013
  }
5960
6014
  }
5961
6015
  if (s0 === peg$FAILED) {
5962
- if (input.substr(peg$currPos, 5) === peg$c40) {
5963
- s0 = peg$c40;
6016
+ if (input.substr(peg$currPos, 5) === peg$c45) {
6017
+ s0 = peg$c45;
5964
6018
  peg$currPos += 5;
5965
6019
  }
5966
6020
  else {
5967
6021
  s0 = peg$FAILED;
5968
6022
  if (peg$silentFails === 0) {
5969
- peg$fail(peg$e46);
6023
+ peg$fail(peg$e50);
5970
6024
  }
5971
6025
  }
5972
6026
  if (s0 === peg$FAILED) {
5973
- if (input.substr(peg$currPos, 3) === peg$c39) {
5974
- s0 = peg$c39;
6027
+ if (input.substr(peg$currPos, 3) === peg$c44) {
6028
+ s0 = peg$c44;
5975
6029
  peg$currPos += 3;
5976
6030
  }
5977
6031
  else {
5978
6032
  s0 = peg$FAILED;
5979
6033
  if (peg$silentFails === 0) {
5980
- peg$fail(peg$e45);
6034
+ peg$fail(peg$e49);
5981
6035
  }
5982
6036
  }
5983
6037
  if (s0 === peg$FAILED) {
5984
- if (input.substr(peg$currPos, 8) === peg$c45) {
5985
- s0 = peg$c45;
6038
+ if (input.substr(peg$currPos, 8) === peg$c50) {
6039
+ s0 = peg$c50;
5986
6040
  peg$currPos += 8;
5987
6041
  }
5988
6042
  else {
5989
6043
  s0 = peg$FAILED;
5990
6044
  if (peg$silentFails === 0) {
5991
- peg$fail(peg$e51);
6045
+ peg$fail(peg$e55);
5992
6046
  }
5993
6047
  }
5994
6048
  }
@@ -6000,14 +6054,14 @@ function peg$parse(input, options) {
6000
6054
  function peg$parseAttrChainItem() {
6001
6055
  var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
6002
6056
  s0 = peg$currPos;
6003
- if (input.substr(peg$currPos, 5) === peg$c46) {
6004
- s1 = peg$c46;
6057
+ if (input.substr(peg$currPos, 5) === peg$c51) {
6058
+ s1 = peg$c51;
6005
6059
  peg$currPos += 5;
6006
6060
  }
6007
6061
  else {
6008
6062
  s1 = peg$FAILED;
6009
6063
  if (peg$silentFails === 0) {
6010
- peg$fail(peg$e52);
6064
+ peg$fail(peg$e56);
6011
6065
  }
6012
6066
  }
6013
6067
  if (s1 !== peg$FAILED) {
@@ -6074,7 +6128,7 @@ function peg$parse(input, options) {
6074
6128
  s3 = peg$parseBlockTag();
6075
6129
  if (s3 !== peg$FAILED) {
6076
6130
  peg$savedPos = s0;
6077
- s0 = peg$f69(s2);
6131
+ s0 = peg$f71(s2);
6078
6132
  }
6079
6133
  else {
6080
6134
  peg$currPos = s0;
@@ -6087,14 +6141,14 @@ function peg$parse(input, options) {
6087
6141
  }
6088
6142
  if (s0 === peg$FAILED) {
6089
6143
  s0 = peg$currPos;
6090
- if (input.substr(peg$currPos, 7) === peg$c47) {
6091
- s1 = peg$c47;
6144
+ if (input.substr(peg$currPos, 7) === peg$c52) {
6145
+ s1 = peg$c52;
6092
6146
  peg$currPos += 7;
6093
6147
  }
6094
6148
  else {
6095
6149
  s1 = peg$FAILED;
6096
6150
  if (peg$silentFails === 0) {
6097
- peg$fail(peg$e53);
6151
+ peg$fail(peg$e57);
6098
6152
  }
6099
6153
  }
6100
6154
  if (s1 !== peg$FAILED) {
@@ -6161,14 +6215,14 @@ function peg$parse(input, options) {
6161
6215
  s3 = peg$parseRefsChain();
6162
6216
  s4 = peg$parseBlockTag();
6163
6217
  if (s4 !== peg$FAILED) {
6164
- if (input.substr(peg$currPos, 9) === peg$c48) {
6165
- s5 = peg$c48;
6218
+ if (input.substr(peg$currPos, 9) === peg$c53) {
6219
+ s5 = peg$c53;
6166
6220
  peg$currPos += 9;
6167
6221
  }
6168
6222
  else {
6169
6223
  s5 = peg$FAILED;
6170
6224
  if (peg$silentFails === 0) {
6171
- peg$fail(peg$e54);
6225
+ peg$fail(peg$e58);
6172
6226
  }
6173
6227
  }
6174
6228
  if (s5 !== peg$FAILED) {
@@ -6235,7 +6289,7 @@ function peg$parse(input, options) {
6235
6289
  s7 = peg$parseBlockTag();
6236
6290
  if (s7 !== peg$FAILED) {
6237
6291
  peg$savedPos = s0;
6238
- s0 = peg$f70(s2, s3, s6);
6292
+ s0 = peg$f72(s2, s3, s6);
6239
6293
  }
6240
6294
  else {
6241
6295
  peg$currPos = s0;
@@ -6258,14 +6312,14 @@ function peg$parse(input, options) {
6258
6312
  }
6259
6313
  if (s0 === peg$FAILED) {
6260
6314
  s0 = peg$currPos;
6261
- if (input.substr(peg$currPos, 5) === peg$c49) {
6262
- s1 = peg$c49;
6315
+ if (input.substr(peg$currPos, 5) === peg$c54) {
6316
+ s1 = peg$c54;
6263
6317
  peg$currPos += 5;
6264
6318
  }
6265
6319
  else {
6266
6320
  s1 = peg$FAILED;
6267
6321
  if (peg$silentFails === 0) {
6268
- peg$fail(peg$e55);
6322
+ peg$fail(peg$e59);
6269
6323
  }
6270
6324
  }
6271
6325
  if (s1 !== peg$FAILED) {
@@ -6332,13 +6386,13 @@ function peg$parse(input, options) {
6332
6386
  s3 = peg$parseBlockTag();
6333
6387
  if (s3 !== peg$FAILED) {
6334
6388
  if (input.charCodeAt(peg$currPos) === 9658) {
6335
- s4 = peg$c50;
6389
+ s4 = peg$c55;
6336
6390
  peg$currPos++;
6337
6391
  }
6338
6392
  else {
6339
6393
  s4 = peg$FAILED;
6340
6394
  if (peg$silentFails === 0) {
6341
- peg$fail(peg$e56);
6395
+ peg$fail(peg$e60);
6342
6396
  }
6343
6397
  }
6344
6398
  if (s4 !== peg$FAILED) {
@@ -6405,7 +6459,7 @@ function peg$parse(input, options) {
6405
6459
  s6 = peg$parseBlockTag();
6406
6460
  if (s6 !== peg$FAILED) {
6407
6461
  peg$savedPos = s0;
6408
- s0 = peg$f71(s2, s5);
6462
+ s0 = peg$f73(s2, s5);
6409
6463
  }
6410
6464
  else {
6411
6465
  peg$currPos = s0;
@@ -6428,14 +6482,14 @@ function peg$parse(input, options) {
6428
6482
  }
6429
6483
  if (s0 === peg$FAILED) {
6430
6484
  s0 = peg$currPos;
6431
- if (input.substr(peg$currPos, 5) === peg$c49) {
6432
- s1 = peg$c49;
6485
+ if (input.substr(peg$currPos, 5) === peg$c54) {
6486
+ s1 = peg$c54;
6433
6487
  peg$currPos += 5;
6434
6488
  }
6435
6489
  else {
6436
6490
  s1 = peg$FAILED;
6437
6491
  if (peg$silentFails === 0) {
6438
- peg$fail(peg$e55);
6492
+ peg$fail(peg$e59);
6439
6493
  }
6440
6494
  }
6441
6495
  if (s1 !== peg$FAILED) {
@@ -6502,7 +6556,7 @@ function peg$parse(input, options) {
6502
6556
  s3 = peg$parseBlockTag();
6503
6557
  if (s3 !== peg$FAILED) {
6504
6558
  peg$savedPos = s0;
6505
- s0 = peg$f72(s2);
6559
+ s0 = peg$f74(s2);
6506
6560
  }
6507
6561
  else {
6508
6562
  peg$currPos = s0;
@@ -6516,13 +6570,13 @@ function peg$parse(input, options) {
6516
6570
  if (s0 === peg$FAILED) {
6517
6571
  s0 = peg$currPos;
6518
6572
  if (input.charCodeAt(peg$currPos) === 9658) {
6519
- s1 = peg$c50;
6573
+ s1 = peg$c55;
6520
6574
  peg$currPos++;
6521
6575
  }
6522
6576
  else {
6523
6577
  s1 = peg$FAILED;
6524
6578
  if (peg$silentFails === 0) {
6525
- peg$fail(peg$e56);
6579
+ peg$fail(peg$e60);
6526
6580
  }
6527
6581
  }
6528
6582
  if (s1 !== peg$FAILED) {
@@ -6589,7 +6643,7 @@ function peg$parse(input, options) {
6589
6643
  s3 = peg$parseBlockTag();
6590
6644
  if (s3 !== peg$FAILED) {
6591
6645
  peg$savedPos = s0;
6592
- s0 = peg$f73(s2);
6646
+ s0 = peg$f75(s2);
6593
6647
  }
6594
6648
  else {
6595
6649
  peg$currPos = s0;
@@ -6602,14 +6656,14 @@ function peg$parse(input, options) {
6602
6656
  }
6603
6657
  if (s0 === peg$FAILED) {
6604
6658
  s0 = peg$currPos;
6605
- if (input.substr(peg$currPos, 7) === peg$c51) {
6606
- s1 = peg$c51;
6659
+ if (input.substr(peg$currPos, 7) === peg$c56) {
6660
+ s1 = peg$c56;
6607
6661
  peg$currPos += 7;
6608
6662
  }
6609
6663
  else {
6610
6664
  s1 = peg$FAILED;
6611
6665
  if (peg$silentFails === 0) {
6612
- peg$fail(peg$e57);
6666
+ peg$fail(peg$e61);
6613
6667
  }
6614
6668
  }
6615
6669
  if (s1 !== peg$FAILED) {
@@ -6677,7 +6731,7 @@ function peg$parse(input, options) {
6677
6731
  if (s3 !== peg$FAILED) {
6678
6732
  s4 = peg$parseMediaChain();
6679
6733
  peg$savedPos = s0;
6680
- s0 = peg$f74(s2, s4);
6734
+ s0 = peg$f76(s2, s4);
6681
6735
  }
6682
6736
  else {
6683
6737
  peg$currPos = s0;
@@ -6690,14 +6744,14 @@ function peg$parse(input, options) {
6690
6744
  }
6691
6745
  if (s0 === peg$FAILED) {
6692
6746
  s0 = peg$currPos;
6693
- if (input.substr(peg$currPos, 9) === peg$c52) {
6694
- s1 = peg$c52;
6747
+ if (input.substr(peg$currPos, 9) === peg$c57) {
6748
+ s1 = peg$c57;
6695
6749
  peg$currPos += 9;
6696
6750
  }
6697
6751
  else {
6698
6752
  s1 = peg$FAILED;
6699
6753
  if (peg$silentFails === 0) {
6700
- peg$fail(peg$e58);
6754
+ peg$fail(peg$e62);
6701
6755
  }
6702
6756
  }
6703
6757
  if (s1 !== peg$FAILED) {
@@ -6764,7 +6818,7 @@ function peg$parse(input, options) {
6764
6818
  s3 = peg$parseBlockTag();
6765
6819
  if (s3 !== peg$FAILED) {
6766
6820
  peg$savedPos = s0;
6767
- s0 = peg$f75(s2);
6821
+ s0 = peg$f77(s2);
6768
6822
  }
6769
6823
  else {
6770
6824
  peg$currPos = s0;
@@ -6777,14 +6831,14 @@ function peg$parse(input, options) {
6777
6831
  }
6778
6832
  if (s0 === peg$FAILED) {
6779
6833
  s0 = peg$currPos;
6780
- if (input.substr(peg$currPos, 10) === peg$c53) {
6781
- s1 = peg$c53;
6834
+ if (input.substr(peg$currPos, 10) === peg$c58) {
6835
+ s1 = peg$c58;
6782
6836
  peg$currPos += 10;
6783
6837
  }
6784
6838
  else {
6785
6839
  s1 = peg$FAILED;
6786
6840
  if (peg$silentFails === 0) {
6787
- peg$fail(peg$e59);
6841
+ peg$fail(peg$e63);
6788
6842
  }
6789
6843
  }
6790
6844
  if (s1 !== peg$FAILED) {
@@ -6851,7 +6905,7 @@ function peg$parse(input, options) {
6851
6905
  s3 = peg$parseBlockTag();
6852
6906
  if (s3 !== peg$FAILED) {
6853
6907
  peg$savedPos = s0;
6854
- s0 = peg$f76(s2);
6908
+ s0 = peg$f78(s2);
6855
6909
  }
6856
6910
  else {
6857
6911
  peg$currPos = s0;
@@ -6864,14 +6918,14 @@ function peg$parse(input, options) {
6864
6918
  }
6865
6919
  if (s0 === peg$FAILED) {
6866
6920
  s0 = peg$currPos;
6867
- if (input.substr(peg$currPos, 4) === peg$c54) {
6868
- s1 = peg$c54;
6921
+ if (input.substr(peg$currPos, 4) === peg$c59) {
6922
+ s1 = peg$c59;
6869
6923
  peg$currPos += 4;
6870
6924
  }
6871
6925
  else {
6872
6926
  s1 = peg$FAILED;
6873
6927
  if (peg$silentFails === 0) {
6874
- peg$fail(peg$e60);
6928
+ peg$fail(peg$e64);
6875
6929
  }
6876
6930
  }
6877
6931
  if (s1 !== peg$FAILED) {
@@ -6938,7 +6992,7 @@ function peg$parse(input, options) {
6938
6992
  s3 = peg$parseBlockTag();
6939
6993
  if (s3 !== peg$FAILED) {
6940
6994
  peg$savedPos = s0;
6941
- s0 = peg$f77(s2);
6995
+ s0 = peg$f79(s2);
6942
6996
  }
6943
6997
  else {
6944
6998
  peg$currPos = s0;
@@ -6965,7 +7019,7 @@ function peg$parse(input, options) {
6965
7019
  s2 = peg$parseBlockTag();
6966
7020
  if (s2 !== peg$FAILED) {
6967
7021
  peg$savedPos = s0;
6968
- s0 = peg$f78();
7022
+ s0 = peg$f80();
6969
7023
  }
6970
7024
  else {
6971
7025
  peg$currPos = s0;
@@ -6978,14 +7032,14 @@ function peg$parse(input, options) {
6978
7032
  }
6979
7033
  if (s0 === peg$FAILED) {
6980
7034
  s0 = peg$currPos;
6981
- if (input.substr(peg$currPos, 5) === peg$c55) {
6982
- s1 = peg$c55;
7035
+ if (input.substr(peg$currPos, 5) === peg$c60) {
7036
+ s1 = peg$c60;
6983
7037
  peg$currPos += 5;
6984
7038
  }
6985
7039
  else {
6986
7040
  s1 = peg$FAILED;
6987
7041
  if (peg$silentFails === 0) {
6988
- peg$fail(peg$e61);
7042
+ peg$fail(peg$e65);
6989
7043
  }
6990
7044
  }
6991
7045
  if (s1 !== peg$FAILED) {
@@ -7052,7 +7106,7 @@ function peg$parse(input, options) {
7052
7106
  s3 = peg$parseBlockTag();
7053
7107
  if (s3 !== peg$FAILED) {
7054
7108
  peg$savedPos = s0;
7055
- s0 = peg$f79(s2);
7109
+ s0 = peg$f81(s2);
7056
7110
  }
7057
7111
  else {
7058
7112
  peg$currPos = s0;
@@ -7065,21 +7119,21 @@ function peg$parse(input, options) {
7065
7119
  }
7066
7120
  if (s0 === peg$FAILED) {
7067
7121
  s0 = peg$currPos;
7068
- if (input.substr(peg$currPos, 5) === peg$c56) {
7069
- s1 = peg$c56;
7122
+ if (input.substr(peg$currPos, 5) === peg$c61) {
7123
+ s1 = peg$c61;
7070
7124
  peg$currPos += 5;
7071
7125
  }
7072
7126
  else {
7073
7127
  s1 = peg$FAILED;
7074
7128
  if (peg$silentFails === 0) {
7075
- peg$fail(peg$e62);
7129
+ peg$fail(peg$e66);
7076
7130
  }
7077
7131
  }
7078
7132
  if (s1 !== peg$FAILED) {
7079
7133
  s2 = peg$parseBlockTag();
7080
7134
  if (s2 !== peg$FAILED) {
7081
7135
  peg$savedPos = s0;
7082
- s0 = peg$f80();
7136
+ s0 = peg$f82();
7083
7137
  }
7084
7138
  else {
7085
7139
  peg$currPos = s0;
@@ -7092,14 +7146,14 @@ function peg$parse(input, options) {
7092
7146
  }
7093
7147
  if (s0 === peg$FAILED) {
7094
7148
  s0 = peg$currPos;
7095
- if (input.substr(peg$currPos, 6) === peg$c57) {
7096
- s1 = peg$c57;
7149
+ if (input.substr(peg$currPos, 6) === peg$c62) {
7150
+ s1 = peg$c62;
7097
7151
  peg$currPos += 6;
7098
7152
  }
7099
7153
  else {
7100
7154
  s1 = peg$FAILED;
7101
7155
  if (peg$silentFails === 0) {
7102
- peg$fail(peg$e63);
7156
+ peg$fail(peg$e67);
7103
7157
  }
7104
7158
  }
7105
7159
  if (s1 !== peg$FAILED) {
@@ -7166,7 +7220,7 @@ function peg$parse(input, options) {
7166
7220
  s3 = peg$parseBlockTag();
7167
7221
  if (s3 !== peg$FAILED) {
7168
7222
  peg$savedPos = s0;
7169
- s0 = peg$f81(s2);
7223
+ s0 = peg$f83(s2);
7170
7224
  }
7171
7225
  else {
7172
7226
  peg$currPos = s0;
@@ -7179,27 +7233,27 @@ function peg$parse(input, options) {
7179
7233
  }
7180
7234
  if (s0 === peg$FAILED) {
7181
7235
  s0 = peg$currPos;
7182
- if (input.substr(peg$currPos, 9) === peg$c58) {
7183
- s1 = peg$c58;
7236
+ if (input.substr(peg$currPos, 9) === peg$c63) {
7237
+ s1 = peg$c63;
7184
7238
  peg$currPos += 9;
7185
7239
  }
7186
7240
  else {
7187
7241
  s1 = peg$FAILED;
7188
7242
  if (peg$silentFails === 0) {
7189
- peg$fail(peg$e64);
7243
+ peg$fail(peg$e68);
7190
7244
  }
7191
7245
  }
7192
7246
  if (s1 !== peg$FAILED) {
7193
7247
  s2 = peg$currPos;
7194
7248
  s3 = peg$currPos;
7195
7249
  if (input.charCodeAt(peg$currPos) === 80) {
7196
- s4 = peg$c59;
7250
+ s4 = peg$c64;
7197
7251
  peg$currPos++;
7198
7252
  }
7199
7253
  else {
7200
7254
  s4 = peg$FAILED;
7201
7255
  if (peg$silentFails === 0) {
7202
- peg$fail(peg$e65);
7256
+ peg$fail(peg$e69);
7203
7257
  }
7204
7258
  }
7205
7259
  if (s4 !== peg$FAILED) {
@@ -7280,7 +7334,7 @@ function peg$parse(input, options) {
7280
7334
  s3 = peg$parseBlockTag();
7281
7335
  if (s3 !== peg$FAILED) {
7282
7336
  peg$savedPos = s0;
7283
- s0 = peg$f82(s2);
7337
+ s0 = peg$f84(s2);
7284
7338
  }
7285
7339
  else {
7286
7340
  peg$currPos = s0;
@@ -7298,14 +7352,14 @@ function peg$parse(input, options) {
7298
7352
  }
7299
7353
  if (s0 === peg$FAILED) {
7300
7354
  s0 = peg$currPos;
7301
- if (input.substr(peg$currPos, 6) === peg$c60) {
7302
- s1 = peg$c60;
7355
+ if (input.substr(peg$currPos, 6) === peg$c65) {
7356
+ s1 = peg$c65;
7303
7357
  peg$currPos += 6;
7304
7358
  }
7305
7359
  else {
7306
7360
  s1 = peg$FAILED;
7307
7361
  if (peg$silentFails === 0) {
7308
- peg$fail(peg$e66);
7362
+ peg$fail(peg$e70);
7309
7363
  }
7310
7364
  }
7311
7365
  if (s1 !== peg$FAILED) {
@@ -7314,7 +7368,7 @@ function peg$parse(input, options) {
7314
7368
  s3 = peg$parseBlockTag();
7315
7369
  if (s3 !== peg$FAILED) {
7316
7370
  peg$savedPos = s0;
7317
- s0 = peg$f83(s2);
7371
+ s0 = peg$f85(s2);
7318
7372
  }
7319
7373
  else {
7320
7374
  peg$currPos = s0;
@@ -7337,7 +7391,7 @@ function peg$parse(input, options) {
7337
7391
  s2 = peg$parseBlockTag();
7338
7392
  if (s2 !== peg$FAILED) {
7339
7393
  peg$savedPos = s0;
7340
- s0 = peg$f84(s1);
7394
+ s0 = peg$f86(s1);
7341
7395
  }
7342
7396
  else {
7343
7397
  peg$currPos = s0;
@@ -7424,7 +7478,7 @@ function peg$parse(input, options) {
7424
7478
  s3 = peg$parseBlockTag();
7425
7479
  if (s3 !== peg$FAILED) {
7426
7480
  peg$savedPos = s0;
7427
- s0 = peg$f85(s2);
7481
+ s0 = peg$f87(s2);
7428
7482
  }
7429
7483
  else {
7430
7484
  peg$currPos = s0;
@@ -7466,14 +7520,14 @@ function peg$parse(input, options) {
7466
7520
  function peg$parseRef() {
7467
7521
  var s0, s1, s2, s3, s4, s5, s6;
7468
7522
  s0 = peg$currPos;
7469
- if (input.substr(peg$currPos, 2) === peg$c61) {
7470
- s1 = peg$c61;
7523
+ if (input.substr(peg$currPos, 2) === peg$c66) {
7524
+ s1 = peg$c66;
7471
7525
  peg$currPos += 2;
7472
7526
  }
7473
7527
  else {
7474
7528
  s1 = peg$FAILED;
7475
7529
  if (peg$silentFails === 0) {
7476
- peg$fail(peg$e67);
7530
+ peg$fail(peg$e71);
7477
7531
  }
7478
7532
  }
7479
7533
  if (s1 !== peg$FAILED) {
@@ -7538,7 +7592,7 @@ function peg$parse(input, options) {
7538
7592
  }
7539
7593
  s2 = input.substring(s2, peg$currPos);
7540
7594
  peg$savedPos = s0;
7541
- s0 = peg$f86(s2);
7595
+ s0 = peg$f88(s2);
7542
7596
  }
7543
7597
  else {
7544
7598
  peg$currPos = s0;
@@ -7548,212 +7602,344 @@ function peg$parse(input, options) {
7548
7602
  }
7549
7603
  function peg$parseAlternativeStyleTags() {
7550
7604
  var s0;
7551
- if (input.substr(peg$currPos, 4) === peg$c62) {
7552
- s0 = peg$c62;
7605
+ if (input.substr(peg$currPos, 4) === peg$c67) {
7606
+ s0 = peg$c67;
7553
7607
  peg$currPos += 4;
7554
7608
  }
7555
7609
  else {
7556
7610
  s0 = peg$FAILED;
7557
7611
  if (peg$silentFails === 0) {
7558
- peg$fail(peg$e68);
7612
+ peg$fail(peg$e72);
7559
7613
  }
7560
7614
  }
7561
7615
  if (s0 === peg$FAILED) {
7562
- if (input.substr(peg$currPos, 6) === peg$c63) {
7563
- s0 = peg$c63;
7616
+ if (input.substr(peg$currPos, 6) === peg$c68) {
7617
+ s0 = peg$c68;
7564
7618
  peg$currPos += 6;
7565
7619
  }
7566
7620
  else {
7567
7621
  s0 = peg$FAILED;
7568
7622
  if (peg$silentFails === 0) {
7569
- peg$fail(peg$e69);
7623
+ peg$fail(peg$e73);
7570
7624
  }
7571
7625
  }
7572
7626
  if (s0 === peg$FAILED) {
7573
- if (input.substr(peg$currPos, 5) === peg$c64) {
7574
- s0 = peg$c64;
7627
+ if (input.substr(peg$currPos, 5) === peg$c69) {
7628
+ s0 = peg$c69;
7575
7629
  peg$currPos += 5;
7576
7630
  }
7577
7631
  else {
7578
7632
  s0 = peg$FAILED;
7579
7633
  if (peg$silentFails === 0) {
7580
- peg$fail(peg$e70);
7634
+ peg$fail(peg$e74);
7581
7635
  }
7582
7636
  }
7583
7637
  if (s0 === peg$FAILED) {
7584
- if (input.substr(peg$currPos, 9) === peg$c65) {
7585
- s0 = peg$c65;
7638
+ if (input.substr(peg$currPos, 9) === peg$c70) {
7639
+ s0 = peg$c70;
7586
7640
  peg$currPos += 9;
7587
7641
  }
7588
7642
  else {
7589
7643
  s0 = peg$FAILED;
7590
7644
  if (peg$silentFails === 0) {
7591
- peg$fail(peg$e71);
7645
+ peg$fail(peg$e75);
7592
7646
  }
7593
7647
  }
7594
7648
  if (s0 === peg$FAILED) {
7595
- if (input.substr(peg$currPos, 6) === peg$c66) {
7596
- s0 = peg$c66;
7649
+ if (input.substr(peg$currPos, 6) === peg$c71) {
7650
+ s0 = peg$c71;
7597
7651
  peg$currPos += 6;
7598
7652
  }
7599
7653
  else {
7600
7654
  s0 = peg$FAILED;
7601
7655
  if (peg$silentFails === 0) {
7602
- peg$fail(peg$e72);
7656
+ peg$fail(peg$e76);
7603
7657
  }
7604
7658
  }
7605
7659
  if (s0 === peg$FAILED) {
7606
- if (input.substr(peg$currPos, 9) === peg$c67) {
7607
- s0 = peg$c67;
7660
+ if (input.substr(peg$currPos, 9) === peg$c72) {
7661
+ s0 = peg$c72;
7608
7662
  peg$currPos += 9;
7609
7663
  }
7610
7664
  else {
7611
7665
  s0 = peg$FAILED;
7612
7666
  if (peg$silentFails === 0) {
7613
- peg$fail(peg$e73);
7667
+ peg$fail(peg$e77);
7614
7668
  }
7615
7669
  }
7616
7670
  if (s0 === peg$FAILED) {
7617
- if (input.substr(peg$currPos, 11) === peg$c68) {
7618
- s0 = peg$c68;
7671
+ if (input.substr(peg$currPos, 11) === peg$c73) {
7672
+ s0 = peg$c73;
7619
7673
  peg$currPos += 11;
7620
7674
  }
7621
7675
  else {
7622
7676
  s0 = peg$FAILED;
7623
7677
  if (peg$silentFails === 0) {
7624
- peg$fail(peg$e74);
7678
+ peg$fail(peg$e78);
7625
7679
  }
7626
7680
  }
7627
7681
  if (s0 === peg$FAILED) {
7628
- if (input.substr(peg$currPos, 3) === peg$c69) {
7629
- s0 = peg$c69;
7682
+ if (input.substr(peg$currPos, 3) === peg$c74) {
7683
+ s0 = peg$c74;
7630
7684
  peg$currPos += 3;
7631
7685
  }
7632
7686
  else {
7633
7687
  s0 = peg$FAILED;
7634
7688
  if (peg$silentFails === 0) {
7635
- peg$fail(peg$e75);
7689
+ peg$fail(peg$e79);
7636
7690
  }
7637
7691
  }
7638
7692
  if (s0 === peg$FAILED) {
7639
- if (input.substr(peg$currPos, 3) === peg$c70) {
7640
- s0 = peg$c70;
7693
+ if (input.substr(peg$currPos, 3) === peg$c75) {
7694
+ s0 = peg$c75;
7641
7695
  peg$currPos += 3;
7642
7696
  }
7643
7697
  else {
7644
7698
  s0 = peg$FAILED;
7645
7699
  if (peg$silentFails === 0) {
7646
- peg$fail(peg$e76);
7700
+ peg$fail(peg$e80);
7647
7701
  }
7648
7702
  }
7649
7703
  if (s0 === peg$FAILED) {
7650
- if (input.substr(peg$currPos, 9) === peg$c71) {
7651
- s0 = peg$c71;
7704
+ if (input.substr(peg$currPos, 9) === peg$c76) {
7705
+ s0 = peg$c76;
7652
7706
  peg$currPos += 9;
7653
7707
  }
7654
7708
  else {
7655
7709
  s0 = peg$FAILED;
7656
7710
  if (peg$silentFails === 0) {
7657
- peg$fail(peg$e77);
7711
+ peg$fail(peg$e81);
7658
7712
  }
7659
7713
  }
7660
7714
  if (s0 === peg$FAILED) {
7661
- if (input.substr(peg$currPos, 15) === peg$c72) {
7662
- s0 = peg$c72;
7715
+ if (input.substr(peg$currPos, 15) === peg$c77) {
7716
+ s0 = peg$c77;
7663
7717
  peg$currPos += 15;
7664
7718
  }
7665
7719
  else {
7666
7720
  s0 = peg$FAILED;
7667
7721
  if (peg$silentFails === 0) {
7668
- peg$fail(peg$e78);
7722
+ peg$fail(peg$e82);
7669
7723
  }
7670
7724
  }
7671
7725
  if (s0 === peg$FAILED) {
7672
- if (input.substr(peg$currPos, 6) === peg$c73) {
7673
- s0 = peg$c73;
7726
+ if (input.substr(peg$currPos, 6) === peg$c78) {
7727
+ s0 = peg$c78;
7674
7728
  peg$currPos += 6;
7675
7729
  }
7676
7730
  else {
7677
7731
  s0 = peg$FAILED;
7678
7732
  if (peg$silentFails === 0) {
7679
- peg$fail(peg$e79);
7733
+ peg$fail(peg$e83);
7680
7734
  }
7681
7735
  }
7682
7736
  if (s0 === peg$FAILED) {
7683
- if (input.substr(peg$currPos, 10) === peg$c74) {
7684
- s0 = peg$c74;
7685
- peg$currPos += 10;
7737
+ if (input.substr(peg$currPos, 13) === peg$c79) {
7738
+ s0 = peg$c79;
7739
+ peg$currPos += 13;
7686
7740
  }
7687
7741
  else {
7688
7742
  s0 = peg$FAILED;
7689
7743
  if (peg$silentFails === 0) {
7690
- peg$fail(peg$e80);
7744
+ peg$fail(peg$e84);
7691
7745
  }
7692
7746
  }
7693
7747
  if (s0 === peg$FAILED) {
7694
- if (input.substr(peg$currPos, 13) === peg$c75) {
7695
- s0 = peg$c75;
7696
- peg$currPos += 13;
7748
+ if (input.substr(peg$currPos, 16) === peg$c80) {
7749
+ s0 = peg$c80;
7750
+ peg$currPos += 16;
7697
7751
  }
7698
7752
  else {
7699
7753
  s0 = peg$FAILED;
7700
7754
  if (peg$silentFails === 0) {
7701
- peg$fail(peg$e81);
7755
+ peg$fail(peg$e85);
7702
7756
  }
7703
7757
  }
7704
7758
  if (s0 === peg$FAILED) {
7705
- if (input.substr(peg$currPos, 19) === peg$c76) {
7706
- s0 = peg$c76;
7707
- peg$currPos += 19;
7759
+ if (input.substr(peg$currPos, 16) === peg$c81) {
7760
+ s0 = peg$c81;
7761
+ peg$currPos += 16;
7708
7762
  }
7709
7763
  else {
7710
7764
  s0 = peg$FAILED;
7711
7765
  if (peg$silentFails === 0) {
7712
- peg$fail(peg$e82);
7766
+ peg$fail(peg$e86);
7713
7767
  }
7714
7768
  }
7715
7769
  if (s0 === peg$FAILED) {
7716
- if (input.substr(peg$currPos, 10) === peg$c77) {
7717
- s0 = peg$c77;
7718
- peg$currPos += 10;
7770
+ if (input.substr(peg$currPos, 15) === peg$c82) {
7771
+ s0 = peg$c82;
7772
+ peg$currPos += 15;
7719
7773
  }
7720
7774
  else {
7721
7775
  s0 = peg$FAILED;
7722
7776
  if (peg$silentFails === 0) {
7723
- peg$fail(peg$e83);
7777
+ peg$fail(peg$e87);
7724
7778
  }
7725
7779
  }
7726
7780
  if (s0 === peg$FAILED) {
7727
- if (input.substr(peg$currPos, 10) === peg$c78) {
7728
- s0 = peg$c78;
7729
- peg$currPos += 10;
7781
+ if (input.substr(peg$currPos, 14) === peg$c83) {
7782
+ s0 = peg$c83;
7783
+ peg$currPos += 14;
7730
7784
  }
7731
7785
  else {
7732
7786
  s0 = peg$FAILED;
7733
7787
  if (peg$silentFails === 0) {
7734
- peg$fail(peg$e84);
7788
+ peg$fail(peg$e88);
7735
7789
  }
7736
7790
  }
7737
7791
  if (s0 === peg$FAILED) {
7738
- if (input.substr(peg$currPos, 13) === peg$c79) {
7739
- s0 = peg$c79;
7740
- peg$currPos += 13;
7792
+ if (input.substr(peg$currPos, 16) === peg$c84) {
7793
+ s0 = peg$c84;
7794
+ peg$currPos += 16;
7741
7795
  }
7742
7796
  else {
7743
7797
  s0 = peg$FAILED;
7744
7798
  if (peg$silentFails === 0) {
7745
- peg$fail(peg$e85);
7799
+ peg$fail(peg$e89);
7746
7800
  }
7747
7801
  }
7748
7802
  if (s0 === peg$FAILED) {
7749
- if (input.substr(peg$currPos, 11) === peg$c80) {
7750
- s0 = peg$c80;
7751
- peg$currPos += 11;
7803
+ if (input.substr(peg$currPos, 14) === peg$c85) {
7804
+ s0 = peg$c85;
7805
+ peg$currPos += 14;
7752
7806
  }
7753
7807
  else {
7754
7808
  s0 = peg$FAILED;
7755
7809
  if (peg$silentFails === 0) {
7756
- peg$fail(peg$e86);
7810
+ peg$fail(peg$e90);
7811
+ }
7812
+ }
7813
+ if (s0 === peg$FAILED) {
7814
+ if (input.substr(peg$currPos, 15) === peg$c86) {
7815
+ s0 = peg$c86;
7816
+ peg$currPos += 15;
7817
+ }
7818
+ else {
7819
+ s0 = peg$FAILED;
7820
+ if (peg$silentFails === 0) {
7821
+ peg$fail(peg$e91);
7822
+ }
7823
+ }
7824
+ if (s0 === peg$FAILED) {
7825
+ if (input.substr(peg$currPos, 15) === peg$c87) {
7826
+ s0 = peg$c87;
7827
+ peg$currPos += 15;
7828
+ }
7829
+ else {
7830
+ s0 = peg$FAILED;
7831
+ if (peg$silentFails === 0) {
7832
+ peg$fail(peg$e92);
7833
+ }
7834
+ }
7835
+ if (s0 === peg$FAILED) {
7836
+ if (input.substr(peg$currPos, 15) === peg$c88) {
7837
+ s0 = peg$c88;
7838
+ peg$currPos += 15;
7839
+ }
7840
+ else {
7841
+ s0 = peg$FAILED;
7842
+ if (peg$silentFails === 0) {
7843
+ peg$fail(peg$e93);
7844
+ }
7845
+ }
7846
+ if (s0 === peg$FAILED) {
7847
+ if (input.substr(peg$currPos, 14) === peg$c89) {
7848
+ s0 = peg$c89;
7849
+ peg$currPos += 14;
7850
+ }
7851
+ else {
7852
+ s0 = peg$FAILED;
7853
+ if (peg$silentFails === 0) {
7854
+ peg$fail(peg$e94);
7855
+ }
7856
+ }
7857
+ if (s0 === peg$FAILED) {
7858
+ if (input.substr(peg$currPos, 10) === peg$c90) {
7859
+ s0 = peg$c90;
7860
+ peg$currPos += 10;
7861
+ }
7862
+ else {
7863
+ s0 = peg$FAILED;
7864
+ if (peg$silentFails === 0) {
7865
+ peg$fail(peg$e95);
7866
+ }
7867
+ }
7868
+ if (s0 === peg$FAILED) {
7869
+ if (input.substr(peg$currPos, 13) === peg$c91) {
7870
+ s0 = peg$c91;
7871
+ peg$currPos += 13;
7872
+ }
7873
+ else {
7874
+ s0 = peg$FAILED;
7875
+ if (peg$silentFails === 0) {
7876
+ peg$fail(peg$e96);
7877
+ }
7878
+ }
7879
+ if (s0 === peg$FAILED) {
7880
+ if (input.substr(peg$currPos, 19) === peg$c92) {
7881
+ s0 = peg$c92;
7882
+ peg$currPos += 19;
7883
+ }
7884
+ else {
7885
+ s0 = peg$FAILED;
7886
+ if (peg$silentFails === 0) {
7887
+ peg$fail(peg$e97);
7888
+ }
7889
+ }
7890
+ if (s0 === peg$FAILED) {
7891
+ if (input.substr(peg$currPos, 10) === peg$c93) {
7892
+ s0 = peg$c93;
7893
+ peg$currPos += 10;
7894
+ }
7895
+ else {
7896
+ s0 = peg$FAILED;
7897
+ if (peg$silentFails === 0) {
7898
+ peg$fail(peg$e98);
7899
+ }
7900
+ }
7901
+ if (s0 === peg$FAILED) {
7902
+ if (input.substr(peg$currPos, 10) === peg$c94) {
7903
+ s0 = peg$c94;
7904
+ peg$currPos += 10;
7905
+ }
7906
+ else {
7907
+ s0 = peg$FAILED;
7908
+ if (peg$silentFails === 0) {
7909
+ peg$fail(peg$e99);
7910
+ }
7911
+ }
7912
+ if (s0 === peg$FAILED) {
7913
+ if (input.substr(peg$currPos, 13) === peg$c95) {
7914
+ s0 = peg$c95;
7915
+ peg$currPos += 13;
7916
+ }
7917
+ else {
7918
+ s0 = peg$FAILED;
7919
+ if (peg$silentFails === 0) {
7920
+ peg$fail(peg$e100);
7921
+ }
7922
+ }
7923
+ if (s0 === peg$FAILED) {
7924
+ if (input.substr(peg$currPos, 11) === peg$c96) {
7925
+ s0 = peg$c96;
7926
+ peg$currPos += 11;
7927
+ }
7928
+ else {
7929
+ s0 = peg$FAILED;
7930
+ if (peg$silentFails === 0) {
7931
+ peg$fail(peg$e101);
7932
+ }
7933
+ }
7934
+ }
7935
+ }
7936
+ }
7937
+ }
7938
+ }
7939
+ }
7940
+ }
7941
+ }
7942
+ }
7757
7943
  }
7758
7944
  }
7759
7945
  }
@@ -7778,245 +7964,257 @@ function peg$parse(input, options) {
7778
7964
  }
7779
7965
  function peg$parseColor() {
7780
7966
  var s0;
7781
- if (input.substr(peg$currPos, 4) === peg$c81) {
7782
- s0 = peg$c81;
7967
+ if (input.substr(peg$currPos, 4) === peg$c97) {
7968
+ s0 = peg$c97;
7783
7969
  peg$currPos += 4;
7784
7970
  }
7785
7971
  else {
7786
7972
  s0 = peg$FAILED;
7787
7973
  if (peg$silentFails === 0) {
7788
- peg$fail(peg$e87);
7974
+ peg$fail(peg$e102);
7789
7975
  }
7790
7976
  }
7791
7977
  if (s0 === peg$FAILED) {
7792
- if (input.substr(peg$currPos, 5) === peg$c82) {
7793
- s0 = peg$c82;
7978
+ if (input.substr(peg$currPos, 5) === peg$c98) {
7979
+ s0 = peg$c98;
7794
7980
  peg$currPos += 5;
7795
7981
  }
7796
7982
  else {
7797
7983
  s0 = peg$FAILED;
7798
7984
  if (peg$silentFails === 0) {
7799
- peg$fail(peg$e88);
7985
+ peg$fail(peg$e103);
7800
7986
  }
7801
7987
  }
7802
7988
  if (s0 === peg$FAILED) {
7803
- if (input.substr(peg$currPos, 4) === peg$c83) {
7804
- s0 = peg$c83;
7989
+ if (input.substr(peg$currPos, 4) === peg$c99) {
7990
+ s0 = peg$c99;
7805
7991
  peg$currPos += 4;
7806
7992
  }
7807
7993
  else {
7808
7994
  s0 = peg$FAILED;
7809
7995
  if (peg$silentFails === 0) {
7810
- peg$fail(peg$e89);
7996
+ peg$fail(peg$e104);
7811
7997
  }
7812
7998
  }
7813
7999
  if (s0 === peg$FAILED) {
7814
- if (input.substr(peg$currPos, 4) === peg$c84) {
7815
- s0 = peg$c84;
7816
- peg$currPos += 4;
8000
+ if (input.substr(peg$currPos, 5) === peg$c100) {
8001
+ s0 = peg$c100;
8002
+ peg$currPos += 5;
7817
8003
  }
7818
8004
  else {
7819
8005
  s0 = peg$FAILED;
7820
8006
  if (peg$silentFails === 0) {
7821
- peg$fail(peg$e90);
8007
+ peg$fail(peg$e105);
7822
8008
  }
7823
8009
  }
7824
8010
  if (s0 === peg$FAILED) {
7825
- if (input.substr(peg$currPos, 7) === peg$c85) {
7826
- s0 = peg$c85;
8011
+ if (input.substr(peg$currPos, 7) === peg$c101) {
8012
+ s0 = peg$c101;
7827
8013
  peg$currPos += 7;
7828
8014
  }
7829
8015
  else {
7830
8016
  s0 = peg$FAILED;
7831
8017
  if (peg$silentFails === 0) {
7832
- peg$fail(peg$e91);
8018
+ peg$fail(peg$e106);
7833
8019
  }
7834
8020
  }
7835
8021
  if (s0 === peg$FAILED) {
7836
- if (input.substr(peg$currPos, 9) === peg$c86) {
7837
- s0 = peg$c86;
8022
+ if (input.substr(peg$currPos, 9) === peg$c102) {
8023
+ s0 = peg$c102;
7838
8024
  peg$currPos += 9;
7839
8025
  }
7840
8026
  else {
7841
8027
  s0 = peg$FAILED;
7842
8028
  if (peg$silentFails === 0) {
7843
- peg$fail(peg$e92);
8029
+ peg$fail(peg$e107);
7844
8030
  }
7845
8031
  }
7846
8032
  if (s0 === peg$FAILED) {
7847
- if (input.substr(peg$currPos, 4) === peg$c87) {
7848
- s0 = peg$c87;
8033
+ if (input.substr(peg$currPos, 4) === peg$c103) {
8034
+ s0 = peg$c103;
7849
8035
  peg$currPos += 4;
7850
8036
  }
7851
8037
  else {
7852
8038
  s0 = peg$FAILED;
7853
8039
  if (peg$silentFails === 0) {
7854
- peg$fail(peg$e93);
8040
+ peg$fail(peg$e108);
7855
8041
  }
7856
8042
  }
7857
8043
  if (s0 === peg$FAILED) {
7858
- if (input.substr(peg$currPos, 8) === peg$c88) {
7859
- s0 = peg$c88;
8044
+ if (input.substr(peg$currPos, 8) === peg$c104) {
8045
+ s0 = peg$c104;
7860
8046
  peg$currPos += 8;
7861
8047
  }
7862
8048
  else {
7863
8049
  s0 = peg$FAILED;
7864
8050
  if (peg$silentFails === 0) {
7865
- peg$fail(peg$e94);
8051
+ peg$fail(peg$e109);
7866
8052
  }
7867
8053
  }
7868
8054
  if (s0 === peg$FAILED) {
7869
- if (input.substr(peg$currPos, 5) === peg$c89) {
7870
- s0 = peg$c89;
8055
+ if (input.substr(peg$currPos, 5) === peg$c105) {
8056
+ s0 = peg$c105;
7871
8057
  peg$currPos += 5;
7872
8058
  }
7873
8059
  else {
7874
8060
  s0 = peg$FAILED;
7875
8061
  if (peg$silentFails === 0) {
7876
- peg$fail(peg$e95);
8062
+ peg$fail(peg$e110);
7877
8063
  }
7878
8064
  }
7879
8065
  if (s0 === peg$FAILED) {
7880
- if (input.substr(peg$currPos, 4) === peg$c90) {
7881
- s0 = peg$c90;
8066
+ if (input.substr(peg$currPos, 4) === peg$c106) {
8067
+ s0 = peg$c106;
7882
8068
  peg$currPos += 4;
7883
8069
  }
7884
8070
  else {
7885
8071
  s0 = peg$FAILED;
7886
8072
  if (peg$silentFails === 0) {
7887
- peg$fail(peg$e96);
8073
+ peg$fail(peg$e111);
7888
8074
  }
7889
8075
  }
7890
8076
  if (s0 === peg$FAILED) {
7891
- if (input.substr(peg$currPos, 7) === peg$c91) {
7892
- s0 = peg$c91;
8077
+ if (input.substr(peg$currPos, 7) === peg$c107) {
8078
+ s0 = peg$c107;
7893
8079
  peg$currPos += 7;
7894
8080
  }
7895
8081
  else {
7896
8082
  s0 = peg$FAILED;
7897
8083
  if (peg$silentFails === 0) {
7898
- peg$fail(peg$e97);
8084
+ peg$fail(peg$e112);
7899
8085
  }
7900
8086
  }
7901
8087
  if (s0 === peg$FAILED) {
7902
- if (input.substr(peg$currPos, 6) === peg$c92) {
7903
- s0 = peg$c92;
8088
+ if (input.substr(peg$currPos, 6) === peg$c108) {
8089
+ s0 = peg$c108;
7904
8090
  peg$currPos += 6;
7905
8091
  }
7906
8092
  else {
7907
8093
  s0 = peg$FAILED;
7908
8094
  if (peg$silentFails === 0) {
7909
- peg$fail(peg$e98);
8095
+ peg$fail(peg$e113);
7910
8096
  }
7911
8097
  }
7912
8098
  if (s0 === peg$FAILED) {
7913
- if (input.substr(peg$currPos, 4) === peg$c93) {
7914
- s0 = peg$c93;
8099
+ if (input.substr(peg$currPos, 4) === peg$c109) {
8100
+ s0 = peg$c109;
7915
8101
  peg$currPos += 4;
7916
8102
  }
7917
8103
  else {
7918
8104
  s0 = peg$FAILED;
7919
8105
  if (peg$silentFails === 0) {
7920
- peg$fail(peg$e99);
8106
+ peg$fail(peg$e114);
7921
8107
  }
7922
8108
  }
7923
8109
  if (s0 === peg$FAILED) {
7924
- if (input.substr(peg$currPos, 5) === peg$c94) {
7925
- s0 = peg$c94;
8110
+ if (input.substr(peg$currPos, 5) === peg$c110) {
8111
+ s0 = peg$c110;
7926
8112
  peg$currPos += 5;
7927
8113
  }
7928
8114
  else {
7929
8115
  s0 = peg$FAILED;
7930
8116
  if (peg$silentFails === 0) {
7931
- peg$fail(peg$e100);
8117
+ peg$fail(peg$e115);
7932
8118
  }
7933
8119
  }
7934
8120
  if (s0 === peg$FAILED) {
7935
- if (input.substr(peg$currPos, 6) === peg$c95) {
7936
- s0 = peg$c95;
8121
+ if (input.substr(peg$currPos, 6) === peg$c111) {
8122
+ s0 = peg$c111;
7937
8123
  peg$currPos += 6;
7938
8124
  }
7939
8125
  else {
7940
8126
  s0 = peg$FAILED;
7941
8127
  if (peg$silentFails === 0) {
7942
- peg$fail(peg$e101);
8128
+ peg$fail(peg$e116);
7943
8129
  }
7944
8130
  }
7945
8131
  if (s0 === peg$FAILED) {
7946
- if (input.substr(peg$currPos, 6) === peg$c96) {
7947
- s0 = peg$c96;
7948
- peg$currPos += 6;
8132
+ if (input.substr(peg$currPos, 4) === peg$c112) {
8133
+ s0 = peg$c112;
8134
+ peg$currPos += 4;
7949
8135
  }
7950
8136
  else {
7951
8137
  s0 = peg$FAILED;
7952
8138
  if (peg$silentFails === 0) {
7953
- peg$fail(peg$e102);
8139
+ peg$fail(peg$e117);
7954
8140
  }
7955
8141
  }
7956
8142
  if (s0 === peg$FAILED) {
7957
- if (input.substr(peg$currPos, 3) === peg$c97) {
7958
- s0 = peg$c97;
7959
- peg$currPos += 3;
8143
+ if (input.substr(peg$currPos, 6) === peg$c113) {
8144
+ s0 = peg$c113;
8145
+ peg$currPos += 6;
7960
8146
  }
7961
8147
  else {
7962
8148
  s0 = peg$FAILED;
7963
8149
  if (peg$silentFails === 0) {
7964
- peg$fail(peg$e103);
8150
+ peg$fail(peg$e118);
7965
8151
  }
7966
8152
  }
7967
8153
  if (s0 === peg$FAILED) {
7968
- if (input.substr(peg$currPos, 6) === peg$c98) {
7969
- s0 = peg$c98;
7970
- peg$currPos += 6;
8154
+ if (input.substr(peg$currPos, 3) === peg$c114) {
8155
+ s0 = peg$c114;
8156
+ peg$currPos += 3;
7971
8157
  }
7972
8158
  else {
7973
8159
  s0 = peg$FAILED;
7974
8160
  if (peg$silentFails === 0) {
7975
- peg$fail(peg$e104);
8161
+ peg$fail(peg$e119);
7976
8162
  }
7977
8163
  }
7978
8164
  if (s0 === peg$FAILED) {
7979
- if (input.substr(peg$currPos, 4) === peg$c99) {
7980
- s0 = peg$c99;
7981
- peg$currPos += 4;
8165
+ if (input.substr(peg$currPos, 6) === peg$c115) {
8166
+ s0 = peg$c115;
8167
+ peg$currPos += 6;
7982
8168
  }
7983
8169
  else {
7984
8170
  s0 = peg$FAILED;
7985
8171
  if (peg$silentFails === 0) {
7986
- peg$fail(peg$e105);
8172
+ peg$fail(peg$e120);
7987
8173
  }
7988
8174
  }
7989
8175
  if (s0 === peg$FAILED) {
7990
- if (input.substr(peg$currPos, 6) === peg$c100) {
7991
- s0 = peg$c100;
7992
- peg$currPos += 6;
8176
+ if (input.substr(peg$currPos, 4) === peg$c116) {
8177
+ s0 = peg$c116;
8178
+ peg$currPos += 4;
7993
8179
  }
7994
8180
  else {
7995
8181
  s0 = peg$FAILED;
7996
8182
  if (peg$silentFails === 0) {
7997
- peg$fail(peg$e106);
8183
+ peg$fail(peg$e121);
7998
8184
  }
7999
8185
  }
8000
8186
  if (s0 === peg$FAILED) {
8001
- if (input.substr(peg$currPos, 5) === peg$c101) {
8002
- s0 = peg$c101;
8003
- peg$currPos += 5;
8187
+ if (input.substr(peg$currPos, 6) === peg$c117) {
8188
+ s0 = peg$c117;
8189
+ peg$currPos += 6;
8004
8190
  }
8005
8191
  else {
8006
8192
  s0 = peg$FAILED;
8007
8193
  if (peg$silentFails === 0) {
8008
- peg$fail(peg$e107);
8194
+ peg$fail(peg$e122);
8009
8195
  }
8010
8196
  }
8011
8197
  if (s0 === peg$FAILED) {
8012
- if (input.substr(peg$currPos, 6) === peg$c102) {
8013
- s0 = peg$c102;
8014
- peg$currPos += 6;
8198
+ if (input.substr(peg$currPos, 5) === peg$c118) {
8199
+ s0 = peg$c118;
8200
+ peg$currPos += 5;
8015
8201
  }
8016
8202
  else {
8017
8203
  s0 = peg$FAILED;
8018
8204
  if (peg$silentFails === 0) {
8019
- peg$fail(peg$e108);
8205
+ peg$fail(peg$e123);
8206
+ }
8207
+ }
8208
+ if (s0 === peg$FAILED) {
8209
+ if (input.substr(peg$currPos, 6) === peg$c119) {
8210
+ s0 = peg$c119;
8211
+ peg$currPos += 6;
8212
+ }
8213
+ else {
8214
+ s0 = peg$FAILED;
8215
+ if (peg$silentFails === 0) {
8216
+ peg$fail(peg$e124);
8217
+ }
8020
8218
  }
8021
8219
  }
8022
8220
  }
@@ -8048,12 +8246,12 @@ function peg$parse(input, options) {
8048
8246
  s0 = peg$currPos;
8049
8247
  s1 = peg$parsebitmarkMinusMinusString();
8050
8248
  peg$savedPos = s0;
8051
- s1 = peg$f87(s1);
8249
+ s1 = peg$f89(s1);
8052
8250
  s0 = s1;
8053
8251
  peg$silentFails--;
8054
8252
  s1 = peg$FAILED;
8055
8253
  if (peg$silentFails === 0) {
8056
- peg$fail(peg$e109);
8254
+ peg$fail(peg$e125);
8057
8255
  }
8058
8256
  return s0;
8059
8257
  }
@@ -8078,11 +8276,11 @@ function peg$parse(input, options) {
8078
8276
  }
8079
8277
  }
8080
8278
  peg$savedPos = s0;
8081
- s0 = peg$f88(s1, s2);
8279
+ s0 = peg$f90(s1, s2);
8082
8280
  peg$silentFails--;
8083
8281
  s1 = peg$FAILED;
8084
8282
  if (peg$silentFails === 0) {
8085
- peg$fail(peg$e110);
8283
+ peg$fail(peg$e126);
8086
8284
  }
8087
8285
  return s0;
8088
8286
  }
@@ -8092,7 +8290,7 @@ function peg$parse(input, options) {
8092
8290
  s1 = peg$parseNL();
8093
8291
  if (s1 !== peg$FAILED) {
8094
8292
  peg$savedPos = s0;
8095
- s1 = peg$f89();
8293
+ s1 = peg$f91();
8096
8294
  }
8097
8295
  s0 = s1;
8098
8296
  if (s0 === peg$FAILED) {
@@ -8235,7 +8433,7 @@ function peg$parse(input, options) {
8235
8433
  }
8236
8434
  if (s1 !== peg$FAILED) {
8237
8435
  peg$savedPos = s0;
8238
- s1 = peg$f90(s1);
8436
+ s1 = peg$f92(s1);
8239
8437
  }
8240
8438
  s0 = s1;
8241
8439
  }
@@ -8244,13 +8442,13 @@ function peg$parse(input, options) {
8244
8442
  function peg$parseBoldHalfTag() {
8245
8443
  var s0;
8246
8444
  if (input.charCodeAt(peg$currPos) === 42) {
8247
- s0 = peg$c103;
8445
+ s0 = peg$c120;
8248
8446
  peg$currPos++;
8249
8447
  }
8250
8448
  else {
8251
8449
  s0 = peg$FAILED;
8252
8450
  if (peg$silentFails === 0) {
8253
- peg$fail(peg$e111);
8451
+ peg$fail(peg$e127);
8254
8452
  }
8255
8453
  }
8256
8454
  return s0;
@@ -8258,13 +8456,13 @@ function peg$parse(input, options) {
8258
8456
  function peg$parseItalicHalfTag() {
8259
8457
  var s0;
8260
8458
  if (input.charCodeAt(peg$currPos) === 95) {
8261
- s0 = peg$c104;
8459
+ s0 = peg$c121;
8262
8460
  peg$currPos++;
8263
8461
  }
8264
8462
  else {
8265
8463
  s0 = peg$FAILED;
8266
8464
  if (peg$silentFails === 0) {
8267
- peg$fail(peg$e112);
8465
+ peg$fail(peg$e128);
8268
8466
  }
8269
8467
  }
8270
8468
  return s0;
@@ -8272,13 +8470,13 @@ function peg$parse(input, options) {
8272
8470
  function peg$parseLightHalfTag() {
8273
8471
  var s0;
8274
8472
  if (input.charCodeAt(peg$currPos) === 96) {
8275
- s0 = peg$c105;
8473
+ s0 = peg$c122;
8276
8474
  peg$currPos++;
8277
8475
  }
8278
8476
  else {
8279
8477
  s0 = peg$FAILED;
8280
8478
  if (peg$silentFails === 0) {
8281
- peg$fail(peg$e113);
8479
+ peg$fail(peg$e129);
8282
8480
  }
8283
8481
  }
8284
8482
  return s0;
@@ -8286,13 +8484,13 @@ function peg$parse(input, options) {
8286
8484
  function peg$parseHighlightHalfTag() {
8287
8485
  var s0;
8288
8486
  if (input.charCodeAt(peg$currPos) === 33) {
8289
- s0 = peg$c106;
8487
+ s0 = peg$c123;
8290
8488
  peg$currPos++;
8291
8489
  }
8292
8490
  else {
8293
8491
  s0 = peg$FAILED;
8294
8492
  if (peg$silentFails === 0) {
8295
- peg$fail(peg$e114);
8493
+ peg$fail(peg$e130);
8296
8494
  }
8297
8495
  }
8298
8496
  return s0;
@@ -8383,14 +8581,14 @@ function peg$parse(input, options) {
8383
8581
  }
8384
8582
  function peg$parseBodyBitOpenTag() {
8385
8583
  var s0;
8386
- if (input.substr(peg$currPos, 2) === peg$c107) {
8387
- s0 = peg$c107;
8584
+ if (input.substr(peg$currPos, 2) === peg$c124) {
8585
+ s0 = peg$c124;
8388
8586
  peg$currPos += 2;
8389
8587
  }
8390
8588
  else {
8391
8589
  s0 = peg$FAILED;
8392
8590
  if (peg$silentFails === 0) {
8393
- peg$fail(peg$e115);
8591
+ peg$fail(peg$e131);
8394
8592
  }
8395
8593
  }
8396
8594
  return s0;
@@ -8398,13 +8596,13 @@ function peg$parse(input, options) {
8398
8596
  function peg$parseBodyBitCloseTag() {
8399
8597
  var s0;
8400
8598
  if (input.charCodeAt(peg$currPos) === 93) {
8401
- s0 = peg$c108;
8599
+ s0 = peg$c125;
8402
8600
  peg$currPos++;
8403
8601
  }
8404
8602
  else {
8405
8603
  s0 = peg$FAILED;
8406
8604
  if (peg$silentFails === 0) {
8407
- peg$fail(peg$e116);
8605
+ peg$fail(peg$e132);
8408
8606
  }
8409
8607
  }
8410
8608
  return s0;
@@ -8454,7 +8652,7 @@ function peg$parse(input, options) {
8454
8652
  s3 = peg$parseBodyBitCloseTag();
8455
8653
  if (s3 !== peg$FAILED) {
8456
8654
  peg$savedPos = s0;
8457
- s0 = peg$f91(s2);
8655
+ s0 = peg$f93(s2);
8458
8656
  }
8459
8657
  else {
8460
8658
  peg$currPos = s0;
@@ -8555,7 +8753,7 @@ function peg$parse(input, options) {
8555
8753
  s3 = peg$parseBoldTag();
8556
8754
  if (s3 !== peg$FAILED) {
8557
8755
  peg$savedPos = s0;
8558
- s0 = peg$f92(s2);
8756
+ s0 = peg$f94(s2);
8559
8757
  }
8560
8758
  else {
8561
8759
  peg$currPos = s0;
@@ -8651,7 +8849,7 @@ function peg$parse(input, options) {
8651
8849
  s3 = peg$parseItalicTag();
8652
8850
  if (s3 !== peg$FAILED) {
8653
8851
  peg$savedPos = s0;
8654
- s0 = peg$f93(s2);
8852
+ s0 = peg$f95(s2);
8655
8853
  }
8656
8854
  else {
8657
8855
  peg$currPos = s0;
@@ -8747,7 +8945,7 @@ function peg$parse(input, options) {
8747
8945
  s3 = peg$parseLightTag();
8748
8946
  if (s3 !== peg$FAILED) {
8749
8947
  peg$savedPos = s0;
8750
- s0 = peg$f94(s2);
8948
+ s0 = peg$f96(s2);
8751
8949
  }
8752
8950
  else {
8753
8951
  peg$currPos = s0;
@@ -8843,7 +9041,7 @@ function peg$parse(input, options) {
8843
9041
  s3 = peg$parseHighlightTag();
8844
9042
  if (s3 !== peg$FAILED) {
8845
9043
  peg$savedPos = s0;
8846
- s0 = peg$f95(s2);
9044
+ s0 = peg$f97(s2);
8847
9045
  }
8848
9046
  else {
8849
9047
  peg$currPos = s0;
@@ -8938,35 +9136,35 @@ function peg$parse(input, options) {
8938
9136
  var s0, s1;
8939
9137
  peg$silentFails++;
8940
9138
  if (input.charCodeAt(peg$currPos) === 10) {
8941
- s0 = peg$c109;
9139
+ s0 = peg$c126;
8942
9140
  peg$currPos++;
8943
9141
  }
8944
9142
  else {
8945
9143
  s0 = peg$FAILED;
8946
9144
  if (peg$silentFails === 0) {
8947
- peg$fail(peg$e118);
9145
+ peg$fail(peg$e134);
8948
9146
  }
8949
9147
  }
8950
9148
  if (s0 === peg$FAILED) {
8951
- if (input.substr(peg$currPos, 2) === peg$c110) {
8952
- s0 = peg$c110;
9149
+ if (input.substr(peg$currPos, 2) === peg$c127) {
9150
+ s0 = peg$c127;
8953
9151
  peg$currPos += 2;
8954
9152
  }
8955
9153
  else {
8956
9154
  s0 = peg$FAILED;
8957
9155
  if (peg$silentFails === 0) {
8958
- peg$fail(peg$e119);
9156
+ peg$fail(peg$e135);
8959
9157
  }
8960
9158
  }
8961
9159
  if (s0 === peg$FAILED) {
8962
9160
  s0 = input.charAt(peg$currPos);
8963
- if (peg$r3.test(s0)) {
9161
+ if (peg$r2.test(s0)) {
8964
9162
  peg$currPos++;
8965
9163
  }
8966
9164
  else {
8967
9165
  s0 = peg$FAILED;
8968
9166
  if (peg$silentFails === 0) {
8969
- peg$fail(peg$e120);
9167
+ peg$fail(peg$e136);
8970
9168
  }
8971
9169
  }
8972
9170
  }
@@ -8975,7 +9173,7 @@ function peg$parse(input, options) {
8975
9173
  if (s0 === peg$FAILED) {
8976
9174
  s1 = peg$FAILED;
8977
9175
  if (peg$silentFails === 0) {
8978
- peg$fail(peg$e117);
9176
+ peg$fail(peg$e133);
8979
9177
  }
8980
9178
  }
8981
9179
  return s0;
@@ -9010,7 +9208,7 @@ function peg$parse(input, options) {
9010
9208
  peg$silentFails--;
9011
9209
  s1 = peg$FAILED;
9012
9210
  if (peg$silentFails === 0) {
9013
- peg$fail(peg$e121);
9211
+ peg$fail(peg$e137);
9014
9212
  }
9015
9213
  return s0;
9016
9214
  }
@@ -9034,7 +9232,7 @@ function peg$parse(input, options) {
9034
9232
  peg$silentFails--;
9035
9233
  s1 = peg$FAILED;
9036
9234
  if (peg$silentFails === 0) {
9037
- peg$fail(peg$e122);
9235
+ peg$fail(peg$e138);
9038
9236
  }
9039
9237
  return s0;
9040
9238
  }
@@ -9058,7 +9256,7 @@ function peg$parse(input, options) {
9058
9256
  if (s0 === peg$FAILED) {
9059
9257
  s1 = peg$FAILED;
9060
9258
  if (peg$silentFails === 0) {
9061
- peg$fail(peg$e123);
9259
+ peg$fail(peg$e139);
9062
9260
  }
9063
9261
  }
9064
9262
  return s0;
@@ -9067,20 +9265,20 @@ function peg$parse(input, options) {
9067
9265
  var s0, s1;
9068
9266
  peg$silentFails++;
9069
9267
  s0 = input.charAt(peg$currPos);
9070
- if (peg$r4.test(s0)) {
9268
+ if (peg$r3.test(s0)) {
9071
9269
  peg$currPos++;
9072
9270
  }
9073
9271
  else {
9074
9272
  s0 = peg$FAILED;
9075
9273
  if (peg$silentFails === 0) {
9076
- peg$fail(peg$e125);
9274
+ peg$fail(peg$e141);
9077
9275
  }
9078
9276
  }
9079
9277
  peg$silentFails--;
9080
9278
  if (s0 === peg$FAILED) {
9081
9279
  s1 = peg$FAILED;
9082
9280
  if (peg$silentFails === 0) {
9083
- peg$fail(peg$e124);
9281
+ peg$fail(peg$e140);
9084
9282
  }
9085
9283
  }
9086
9284
  return s0;
@@ -9088,13 +9286,13 @@ function peg$parse(input, options) {
9088
9286
  function peg$parseLineTerminator() {
9089
9287
  var s0;
9090
9288
  s0 = input.charAt(peg$currPos);
9091
- if (peg$r5.test(s0)) {
9289
+ if (peg$r4.test(s0)) {
9092
9290
  peg$currPos++;
9093
9291
  }
9094
9292
  else {
9095
9293
  s0 = peg$FAILED;
9096
9294
  if (peg$silentFails === 0) {
9097
- peg$fail(peg$e126);
9295
+ peg$fail(peg$e142);
9098
9296
  }
9099
9297
  }
9100
9298
  return s0;
@@ -9102,13 +9300,13 @@ function peg$parse(input, options) {
9102
9300
  function peg$parsechar() {
9103
9301
  var s0;
9104
9302
  s0 = input.charAt(peg$currPos);
9105
- if (peg$r6.test(s0)) {
9303
+ if (peg$r5.test(s0)) {
9106
9304
  peg$currPos++;
9107
9305
  }
9108
9306
  else {
9109
9307
  s0 = peg$FAILED;
9110
9308
  if (peg$silentFails === 0) {
9111
- peg$fail(peg$e127);
9309
+ peg$fail(peg$e143);
9112
9310
  }
9113
9311
  }
9114
9312
  return s0;
@@ -9116,13 +9314,13 @@ function peg$parse(input, options) {
9116
9314
  function peg$parseword() {
9117
9315
  var s0;
9118
9316
  s0 = input.charAt(peg$currPos);
9119
- if (peg$r7.test(s0)) {
9317
+ if (peg$r6.test(s0)) {
9120
9318
  peg$currPos++;
9121
9319
  }
9122
9320
  else {
9123
9321
  s0 = peg$FAILED;
9124
9322
  if (peg$silentFails === 0) {
9125
- peg$fail(peg$e128);
9323
+ peg$fail(peg$e144);
9126
9324
  }
9127
9325
  }
9128
9326
  return s0;
@@ -9158,38 +9356,38 @@ function peg$parse(input, options) {
9158
9356
  var s0, s1, s2, s3, s4, s5, s6, s7, s8;
9159
9357
  s0 = peg$currPos;
9160
9358
  s1 = peg$currPos;
9161
- if (input.substr(peg$currPos, 4) === peg$c111) {
9162
- s2 = peg$c111;
9359
+ if (input.substr(peg$currPos, 4) === peg$c128) {
9360
+ s2 = peg$c128;
9163
9361
  peg$currPos += 4;
9164
9362
  }
9165
9363
  else {
9166
9364
  s2 = peg$FAILED;
9167
9365
  if (peg$silentFails === 0) {
9168
- peg$fail(peg$e129);
9366
+ peg$fail(peg$e145);
9169
9367
  }
9170
9368
  }
9171
9369
  if (s2 !== peg$FAILED) {
9172
9370
  if (input.charCodeAt(peg$currPos) === 115) {
9173
- s3 = peg$c112;
9371
+ s3 = peg$c129;
9174
9372
  peg$currPos++;
9175
9373
  }
9176
9374
  else {
9177
9375
  s3 = peg$FAILED;
9178
9376
  if (peg$silentFails === 0) {
9179
- peg$fail(peg$e130);
9377
+ peg$fail(peg$e146);
9180
9378
  }
9181
9379
  }
9182
9380
  if (s3 === peg$FAILED) {
9183
9381
  s3 = null;
9184
9382
  }
9185
- if (input.substr(peg$currPos, 3) === peg$c113) {
9186
- s4 = peg$c113;
9383
+ if (input.substr(peg$currPos, 3) === peg$c130) {
9384
+ s4 = peg$c130;
9187
9385
  peg$currPos += 3;
9188
9386
  }
9189
9387
  else {
9190
9388
  s4 = peg$FAILED;
9191
9389
  if (peg$silentFails === 0) {
9192
- peg$fail(peg$e131);
9390
+ peg$fail(peg$e147);
9193
9391
  }
9194
9392
  }
9195
9393
  if (s4 !== peg$FAILED) {
@@ -9276,38 +9474,38 @@ function peg$parse(input, options) {
9276
9474
  s0 = peg$currPos;
9277
9475
  s1 = peg$currPos;
9278
9476
  s2 = peg$currPos;
9279
- if (input.substr(peg$currPos, 4) === peg$c111) {
9280
- s3 = peg$c111;
9477
+ if (input.substr(peg$currPos, 4) === peg$c128) {
9478
+ s3 = peg$c128;
9281
9479
  peg$currPos += 4;
9282
9480
  }
9283
9481
  else {
9284
9482
  s3 = peg$FAILED;
9285
9483
  if (peg$silentFails === 0) {
9286
- peg$fail(peg$e129);
9484
+ peg$fail(peg$e145);
9287
9485
  }
9288
9486
  }
9289
9487
  if (s3 !== peg$FAILED) {
9290
9488
  if (input.charCodeAt(peg$currPos) === 115) {
9291
- s4 = peg$c112;
9489
+ s4 = peg$c129;
9292
9490
  peg$currPos++;
9293
9491
  }
9294
9492
  else {
9295
9493
  s4 = peg$FAILED;
9296
9494
  if (peg$silentFails === 0) {
9297
- peg$fail(peg$e130);
9495
+ peg$fail(peg$e146);
9298
9496
  }
9299
9497
  }
9300
9498
  if (s4 === peg$FAILED) {
9301
9499
  s4 = null;
9302
9500
  }
9303
- if (input.substr(peg$currPos, 3) === peg$c113) {
9304
- s5 = peg$c113;
9501
+ if (input.substr(peg$currPos, 3) === peg$c130) {
9502
+ s5 = peg$c130;
9305
9503
  peg$currPos += 3;
9306
9504
  }
9307
9505
  else {
9308
9506
  s5 = peg$FAILED;
9309
9507
  if (peg$silentFails === 0) {
9310
- peg$fail(peg$e131);
9508
+ peg$fail(peg$e147);
9311
9509
  }
9312
9510
  }
9313
9511
  if (s5 !== peg$FAILED) {
@@ -9324,14 +9522,14 @@ function peg$parse(input, options) {
9324
9522
  s2 = peg$FAILED;
9325
9523
  }
9326
9524
  if (s2 === peg$FAILED) {
9327
- if (input.substr(peg$currPos, 7) === peg$c114) {
9328
- s2 = peg$c114;
9525
+ if (input.substr(peg$currPos, 7) === peg$c131) {
9526
+ s2 = peg$c131;
9329
9527
  peg$currPos += 7;
9330
9528
  }
9331
9529
  else {
9332
9530
  s2 = peg$FAILED;
9333
9531
  if (peg$silentFails === 0) {
9334
- peg$fail(peg$e132);
9532
+ peg$fail(peg$e148);
9335
9533
  }
9336
9534
  }
9337
9535
  }
@@ -9403,7 +9601,7 @@ function peg$parse(input, options) {
9403
9601
  }
9404
9602
  s2 = input.substring(s2, peg$currPos);
9405
9603
  peg$savedPos = s0;
9406
- s0 = peg$f96(s1, s2);
9604
+ s0 = peg$f98(s1, s2);
9407
9605
  }
9408
9606
  else {
9409
9607
  peg$currPos = s0;
@@ -9414,13 +9612,13 @@ function peg$parse(input, options) {
9414
9612
  function peg$parseUrlChars() {
9415
9613
  var s0;
9416
9614
  s0 = input.charAt(peg$currPos);
9417
- if (peg$r8.test(s0)) {
9615
+ if (peg$r7.test(s0)) {
9418
9616
  peg$currPos++;
9419
9617
  }
9420
9618
  else {
9421
9619
  s0 = peg$FAILED;
9422
9620
  if (peg$silentFails === 0) {
9423
- peg$fail(peg$e133);
9621
+ peg$fail(peg$e149);
9424
9622
  }
9425
9623
  }
9426
9624
  return s0;