@gmb/bitmark-parser-generator 3.0.0 → 3.1.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 (122) 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 +37 -6
  4. package/dist/cjs/ast/Builder.js.map +1 -1
  5. package/dist/cjs/config/Config.js +18 -2
  6. package/dist/cjs/config/Config.js.map +1 -1
  7. package/dist/cjs/config/raw/bits.js +136 -31
  8. package/dist/cjs/config/raw/bits.js.map +1 -1
  9. package/dist/cjs/config/raw/cardSets.js +25 -0
  10. package/dist/cjs/config/raw/cardSets.js.map +1 -1
  11. package/dist/cjs/config/raw/groups.js +17 -0
  12. package/dist/cjs/config/raw/groups.js.map +1 -1
  13. package/dist/cjs/config/raw/properties.js +17 -0
  14. package/dist/cjs/config/raw/properties.js.map +1 -1
  15. package/dist/cjs/generated/build-info.js +1 -1
  16. package/dist/cjs/generated/parser/text/text-peggy-parser.js +315 -272
  17. package/dist/cjs/generated/parser/text/text-peggy-parser.js.map +1 -1
  18. package/dist/cjs/generator/bitmark/BitmarkGenerator.js +46 -4
  19. package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
  20. package/dist/cjs/generator/json/JsonGenerator.js +30 -3
  21. package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
  22. package/dist/cjs/generator/text/TextGenerator.js +11 -0
  23. package/dist/cjs/generator/text/TextGenerator.js.map +1 -1
  24. package/dist/cjs/model/ast/NodeType.js +6 -0
  25. package/dist/cjs/model/ast/NodeType.js.map +1 -1
  26. package/dist/cjs/model/config/BitConfig.js +3 -1
  27. package/dist/cjs/model/config/BitConfig.js.map +1 -1
  28. package/dist/cjs/model/config/enum/CardSetConfigKey.js +1 -0
  29. package/dist/cjs/model/config/enum/CardSetConfigKey.js.map +1 -1
  30. package/dist/cjs/model/config/enum/GroupConfigKey.js +1 -0
  31. package/dist/cjs/model/config/enum/GroupConfigKey.js.map +1 -1
  32. package/dist/cjs/model/config/enum/PropertyConfigKey.js +3 -0
  33. package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
  34. package/dist/cjs/model/enum/BitType.js +1 -0
  35. package/dist/cjs/model/enum/BitType.js.map +1 -1
  36. package/dist/cjs/model/enum/TextNodeType.js +2 -0
  37. package/dist/cjs/model/enum/TextNodeType.js.map +1 -1
  38. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
  39. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +32 -0
  40. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  41. package/dist/esm/ast/Builder.js +37 -6
  42. package/dist/esm/ast/Builder.js.map +1 -1
  43. package/dist/esm/config/Config.js +18 -2
  44. package/dist/esm/config/Config.js.map +1 -1
  45. package/dist/esm/config/raw/bits.js +136 -31
  46. package/dist/esm/config/raw/bits.js.map +1 -1
  47. package/dist/esm/config/raw/cardSets.js +25 -0
  48. package/dist/esm/config/raw/cardSets.js.map +1 -1
  49. package/dist/esm/config/raw/groups.js +17 -0
  50. package/dist/esm/config/raw/groups.js.map +1 -1
  51. package/dist/esm/config/raw/properties.js +17 -0
  52. package/dist/esm/config/raw/properties.js.map +1 -1
  53. package/dist/esm/generated/build-info.js +1 -1
  54. package/dist/esm/generated/parser/text/text-peggy-parser.js +315 -272
  55. package/dist/esm/generated/parser/text/text-peggy-parser.js.map +1 -1
  56. package/dist/esm/generator/bitmark/BitmarkGenerator.js +46 -4
  57. package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
  58. package/dist/esm/generator/json/JsonGenerator.js +30 -3
  59. package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
  60. package/dist/esm/generator/text/TextGenerator.js +11 -0
  61. package/dist/esm/generator/text/TextGenerator.js.map +1 -1
  62. package/dist/esm/model/ast/NodeType.js +6 -0
  63. package/dist/esm/model/ast/NodeType.js.map +1 -1
  64. package/dist/esm/model/config/BitConfig.js +3 -1
  65. package/dist/esm/model/config/BitConfig.js.map +1 -1
  66. package/dist/esm/model/config/enum/CardSetConfigKey.js +1 -0
  67. package/dist/esm/model/config/enum/CardSetConfigKey.js.map +1 -1
  68. package/dist/esm/model/config/enum/GroupConfigKey.js +1 -0
  69. package/dist/esm/model/config/enum/GroupConfigKey.js.map +1 -1
  70. package/dist/esm/model/config/enum/PropertyConfigKey.js +3 -0
  71. package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
  72. package/dist/esm/model/enum/BitType.js +1 -0
  73. package/dist/esm/model/enum/BitType.js.map +1 -1
  74. package/dist/esm/model/enum/TextNodeType.js +2 -0
  75. package/dist/esm/model/enum/TextNodeType.js.map +1 -1
  76. package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
  77. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +32 -0
  78. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  79. package/dist/types/ast/Builder.d.ts +12 -1
  80. package/dist/types/ast/Builder.d.ts.map +1 -1
  81. package/dist/types/config/Config.d.ts.map +1 -1
  82. package/dist/types/config/raw/bits.d.ts.map +1 -1
  83. package/dist/types/config/raw/cardSets.d.ts.map +1 -1
  84. package/dist/types/config/raw/groups.d.ts.map +1 -1
  85. package/dist/types/config/raw/properties.d.ts.map +1 -1
  86. package/dist/types/generated/parser/text/text-peggy-parser.d.ts.map +1 -1
  87. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +2 -1
  88. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
  89. package/dist/types/generator/json/JsonGenerator.d.ts +1 -0
  90. package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
  91. package/dist/types/generator/text/TextGenerator.d.ts +2 -1
  92. package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
  93. package/dist/types/model/ast/NodeType.d.ts +12 -0
  94. package/dist/types/model/ast/NodeType.d.ts.map +1 -1
  95. package/dist/types/model/ast/Nodes.d.ts +5 -1
  96. package/dist/types/model/ast/Nodes.d.ts.map +1 -1
  97. package/dist/types/model/ast/TextNodes.d.ts +7 -0
  98. package/dist/types/model/ast/TextNodes.d.ts.map +1 -1
  99. package/dist/types/model/config/BitConfig.d.ts +18 -1
  100. package/dist/types/model/config/BitConfig.d.ts.map +1 -1
  101. package/dist/types/model/config/_Config.d.ts +1 -0
  102. package/dist/types/model/config/_Config.d.ts.map +1 -1
  103. package/dist/types/model/config/enum/CardSetConfigKey.d.ts +2 -0
  104. package/dist/types/model/config/enum/CardSetConfigKey.d.ts.map +1 -1
  105. package/dist/types/model/config/enum/ConfigKey.d.ts +8 -0
  106. package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
  107. package/dist/types/model/config/enum/GroupConfigKey.d.ts +3 -0
  108. package/dist/types/model/config/enum/GroupConfigKey.d.ts.map +1 -1
  109. package/dist/types/model/config/enum/PropertyConfigKey.d.ts +9 -0
  110. package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
  111. package/dist/types/model/enum/BitType.d.ts +2 -0
  112. package/dist/types/model/enum/BitType.d.ts.map +1 -1
  113. package/dist/types/model/enum/PropertyTag.d.ts +6 -0
  114. package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
  115. package/dist/types/model/enum/TextNodeType.d.ts +2 -0
  116. package/dist/types/model/enum/TextNodeType.d.ts.map +1 -1
  117. package/dist/types/model/json/BitJson.d.ts +11 -0
  118. package/dist/types/model/json/BitJson.d.ts.map +1 -1
  119. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +2 -1
  120. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
  121. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
  122. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  //
3
3
  // https://peggyjs.org/
4
4
  import { Breakscape } from "../../../breakscaping/Breakscape";
5
- const VERSION = "8.17.1";
5
+ const VERSION = "8.18.2";
6
6
  //Parser peggy.js
7
7
  // parser options (parameter when running parser):
8
8
  // allowedStartRules: ["bitmarkPlusPlus", "bitmarkPlus", "bitmarkMinusMinus", "bitmarkPlusString", "bitmarkMinusMinusString"]
@@ -11,7 +11,7 @@ const VERSION = "8.17.1";
11
11
  // Todos
12
12
  // - JSON for color
13
13
  // - LaTeX embed
14
- // The formula == $$ p \\left( x | y \\right) $$ ==|math:LaTeX| is inline.
14
+ // The formula == \\left( x | y \\right) ==|latex| is inline.
15
15
  /*
16
16
 
17
17
  Empty StyledString
@@ -312,7 +312,7 @@ function peg$parse(input, options) {
312
312
  var peg$c28 = "center";
313
313
  var peg$c29 = "right";
314
314
  var peg$c30 = "=";
315
- var peg$c31 = "\uD835\uDC53";
315
+ var peg$c31 = "|latex|";
316
316
  var peg$c32 = "link:";
317
317
  var peg$c33 = "xref:";
318
318
  var peg$c34 = "\u25BA";
@@ -423,7 +423,7 @@ function peg$parse(input, options) {
423
423
  var peg$e34 = peg$literalExpectation("right", false);
424
424
  var peg$e35 = peg$otherExpectation("StyledString");
425
425
  var peg$e36 = peg$literalExpectation("=", false);
426
- var peg$e37 = peg$literalExpectation("\uD835\uDC53", false);
426
+ var peg$e37 = peg$literalExpectation("|latex|", false);
427
427
  var peg$e38 = peg$literalExpectation("link:", false);
428
428
  var peg$e39 = peg$literalExpectation("xref:", false);
429
429
  var peg$e40 = peg$literalExpectation("\u25BA", false);
@@ -646,39 +646,40 @@ function peg$parse(input, options) {
646
646
  var peg$f53 = function () { return { "type": "hardBreak" }; };
647
647
  var peg$f54 = function (t) { return { text: unbreakscape(t), type: "text" }; };
648
648
  var peg$f55 = function (t) { return { index: +t, type: "bit" }; };
649
- var peg$f56 = function (t, marks) { if (!marks)
649
+ var peg$f56 = function (t) { return { attrs: { formula: t }, type: "latex" }; };
650
+ var peg$f57 = function (t, marks) { if (!marks)
650
651
  marks = []; return { marks, text: unbreakscape(t), type: "text" }; };
651
- var peg$f57 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
652
- var peg$f58 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
653
- var peg$f59 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
654
- var peg$f60 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
655
- var peg$f61 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
656
- var peg$f62 = function (ch) { return ch; };
657
- var peg$f63 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
658
- var peg$f64 = function (str, str2) { return { type: 'xref', attrs: { xref: str.trim(), reference: str2.trim() } }; };
659
- var peg$f65 = function (str) { return { type: 'xref', attrs: { xref: str.trim(), reference: '' } }; };
660
- var peg$f66 = function (str) { return { type: 'ref', attrs: { reference: str.trim() } }; };
661
- var peg$f67 = function (str) { return { type: 'footnote', attrs: { content: bitmarkPlusString(str.trim()) } }; };
662
- var peg$f68 = function (str) { return { type: 'footnote*', attrs: { content: bitmarkPlusString(str.trim()) } }; };
663
- var peg$f69 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
664
- var peg$f70 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
665
- var peg$f71 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
666
- var peg$f72 = function () { return { type: 'timer', attrs: { name: "" } }; };
667
- var peg$f73 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
668
- var peg$f74 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
669
- var peg$f75 = function (color) { return { type: 'color', attrs: { color } }; };
670
- var peg$f76 = function (style) { return { type: style }; };
671
- var peg$f77 = function (str) { return { type: "comment", comment: str }; };
672
- var peg$f78 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
673
- var peg$f79 = function (first, more) { return first ? [first, ...more.flat()] : more.flat(); };
674
- var peg$f80 = function (t) { return { "type": "hardBreak" }; };
675
- var peg$f81 = function (t) { return { text: unbreakscape(t), type: "text" }; };
676
- var peg$f82 = function (t) { return { index: +t, type: "bit" }; };
677
- var peg$f83 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
678
- var peg$f84 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
679
- var peg$f85 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
680
- var peg$f86 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
681
- var peg$f87 = function (pr, t) { return { pr, t }; };
652
+ var peg$f58 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
653
+ var peg$f59 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
654
+ var peg$f60 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
655
+ var peg$f61 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
656
+ var peg$f62 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
657
+ var peg$f63 = function (ch) { return ch; };
658
+ var peg$f64 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
659
+ var peg$f65 = function (str, str2) { return { type: 'xref', attrs: { xref: str.trim(), reference: str2.trim() } }; };
660
+ var peg$f66 = function (str) { return { type: 'xref', attrs: { xref: str.trim(), reference: '' } }; };
661
+ var peg$f67 = function (str) { return { type: 'ref', attrs: { reference: str.trim() } }; };
662
+ var peg$f68 = function (str) { return { type: 'footnote', attrs: { content: bitmarkPlusString(str.trim()) } }; };
663
+ var peg$f69 = function (str) { return { type: 'footnote*', attrs: { content: bitmarkPlusString(str.trim()) } }; };
664
+ var peg$f70 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
665
+ var peg$f71 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
666
+ var peg$f72 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
667
+ var peg$f73 = function () { return { type: 'timer', attrs: { name: "" } }; };
668
+ var peg$f74 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
669
+ var peg$f75 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
670
+ var peg$f76 = function (color) { return { type: 'color', attrs: { color } }; };
671
+ var peg$f77 = function (style) { return { type: style }; };
672
+ var peg$f78 = function (str) { return { type: "comment", comment: str }; };
673
+ var peg$f79 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
674
+ var peg$f80 = function (first, more) { return first ? [first, ...more.flat()] : more.flat(); };
675
+ var peg$f81 = function () { return { "type": "hardBreak" }; };
676
+ var peg$f82 = function (t) { return { text: unbreakscape(t), type: "text" }; };
677
+ var peg$f83 = function (t) { return { index: +t, type: "bit" }; };
678
+ var peg$f84 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
679
+ var peg$f85 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
680
+ var peg$f86 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
681
+ var peg$f87 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
682
+ var peg$f88 = function (pr, t) { return { pr, t }; };
682
683
  var peg$currPos = options.peg$currPos | 0;
683
684
  var peg$savedPos = peg$currPos;
684
685
  var peg$posDetailsCache = [{ line: 1, column: 1 }];
@@ -4195,20 +4196,6 @@ function peg$parse(input, options) {
4195
4196
  }
4196
4197
  return s0;
4197
4198
  }
4198
- function peg$parseInlineLaTexHalfTag() {
4199
- var s0;
4200
- if (input.substr(peg$currPos, 2) === peg$c31) {
4201
- s0 = peg$c31;
4202
- peg$currPos += 2;
4203
- }
4204
- else {
4205
- s0 = peg$FAILED;
4206
- if (peg$silentFails === 0) {
4207
- peg$fail(peg$e37);
4208
- }
4209
- }
4210
- return s0;
4211
- }
4212
4199
  function peg$parseInlineTag() {
4213
4200
  var s0, s1, s2;
4214
4201
  s0 = peg$currPos;
@@ -4230,27 +4217,6 @@ function peg$parse(input, options) {
4230
4217
  }
4231
4218
  return s0;
4232
4219
  }
4233
- function peg$parseInlineLaTexTag() {
4234
- var s0, s1, s2;
4235
- s0 = peg$currPos;
4236
- s1 = peg$parseInlineLaTexHalfTag();
4237
- if (s1 !== peg$FAILED) {
4238
- s2 = peg$parseInlineLaTexHalfTag();
4239
- if (s2 !== peg$FAILED) {
4240
- s1 = [s1, s2];
4241
- s0 = s1;
4242
- }
4243
- else {
4244
- peg$currPos = s0;
4245
- s0 = peg$FAILED;
4246
- }
4247
- }
4248
- else {
4249
- peg$currPos = s0;
4250
- s0 = peg$FAILED;
4251
- }
4252
- return s0;
4253
- }
4254
4220
  function peg$parseInlineStyledText() {
4255
4221
  var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
4256
4222
  s0 = peg$currPos;
@@ -4316,160 +4282,99 @@ function peg$parse(input, options) {
4316
4282
  s0 = peg$currPos;
4317
4283
  s1 = peg$parseInlineTag();
4318
4284
  if (s1 !== peg$FAILED) {
4319
- if (input.charCodeAt(peg$currPos) === 32) {
4320
- s2 = peg$c12;
4321
- peg$currPos++;
4322
- }
4323
- else {
4324
- s2 = peg$FAILED;
4325
- if (peg$silentFails === 0) {
4326
- peg$fail(peg$e16);
4327
- }
4328
- }
4329
- if (s2 === peg$FAILED) {
4330
- s2 = null;
4331
- }
4332
- s3 = peg$currPos;
4333
- s4 = [];
4285
+ s2 = peg$currPos;
4286
+ s3 = [];
4287
+ s4 = peg$currPos;
4334
4288
  s5 = peg$currPos;
4335
- s6 = peg$currPos;
4336
4289
  peg$silentFails++;
4337
- s7 = peg$currPos;
4338
- if (input.charCodeAt(peg$currPos) === 32) {
4339
- s8 = peg$c12;
4340
- peg$currPos++;
4341
- }
4342
- else {
4343
- s8 = peg$FAILED;
4344
- if (peg$silentFails === 0) {
4345
- peg$fail(peg$e16);
4346
- }
4347
- }
4348
- if (s8 === peg$FAILED) {
4349
- s8 = null;
4350
- }
4351
- s9 = peg$parseInlineTag();
4352
- if (s9 !== peg$FAILED) {
4353
- s8 = [s8, s9];
4354
- s7 = s8;
4355
- }
4356
- else {
4357
- peg$currPos = s7;
4358
- s7 = peg$FAILED;
4359
- }
4290
+ s6 = peg$parseInlineTag();
4360
4291
  peg$silentFails--;
4361
- if (s7 === peg$FAILED) {
4362
- s6 = undefined;
4292
+ if (s6 === peg$FAILED) {
4293
+ s5 = undefined;
4363
4294
  }
4364
4295
  else {
4365
- peg$currPos = s6;
4366
- s6 = peg$FAILED;
4296
+ peg$currPos = s5;
4297
+ s5 = peg$FAILED;
4367
4298
  }
4368
- if (s6 !== peg$FAILED) {
4299
+ if (s5 !== peg$FAILED) {
4369
4300
  if (input.length > peg$currPos) {
4370
- s7 = input.charAt(peg$currPos);
4301
+ s6 = input.charAt(peg$currPos);
4371
4302
  peg$currPos++;
4372
4303
  }
4373
4304
  else {
4374
- s7 = peg$FAILED;
4305
+ s6 = peg$FAILED;
4375
4306
  if (peg$silentFails === 0) {
4376
4307
  peg$fail(peg$e0);
4377
4308
  }
4378
4309
  }
4379
- if (s7 !== peg$FAILED) {
4380
- s6 = [s6, s7];
4381
- s5 = s6;
4310
+ if (s6 !== peg$FAILED) {
4311
+ s5 = [s5, s6];
4312
+ s4 = s5;
4382
4313
  }
4383
4314
  else {
4384
- peg$currPos = s5;
4385
- s5 = peg$FAILED;
4315
+ peg$currPos = s4;
4316
+ s4 = peg$FAILED;
4386
4317
  }
4387
4318
  }
4388
4319
  else {
4389
- peg$currPos = s5;
4390
- s5 = peg$FAILED;
4320
+ peg$currPos = s4;
4321
+ s4 = peg$FAILED;
4391
4322
  }
4392
- while (s5 !== peg$FAILED) {
4393
- s4.push(s5);
4323
+ while (s4 !== peg$FAILED) {
4324
+ s3.push(s4);
4325
+ s4 = peg$currPos;
4394
4326
  s5 = peg$currPos;
4395
- s6 = peg$currPos;
4396
4327
  peg$silentFails++;
4397
- s7 = peg$currPos;
4398
- if (input.charCodeAt(peg$currPos) === 32) {
4399
- s8 = peg$c12;
4400
- peg$currPos++;
4401
- }
4402
- else {
4403
- s8 = peg$FAILED;
4404
- if (peg$silentFails === 0) {
4405
- peg$fail(peg$e16);
4406
- }
4407
- }
4408
- if (s8 === peg$FAILED) {
4409
- s8 = null;
4410
- }
4411
- s9 = peg$parseInlineTag();
4412
- if (s9 !== peg$FAILED) {
4413
- s8 = [s8, s9];
4414
- s7 = s8;
4415
- }
4416
- else {
4417
- peg$currPos = s7;
4418
- s7 = peg$FAILED;
4419
- }
4328
+ s6 = peg$parseInlineTag();
4420
4329
  peg$silentFails--;
4421
- if (s7 === peg$FAILED) {
4422
- s6 = undefined;
4330
+ if (s6 === peg$FAILED) {
4331
+ s5 = undefined;
4423
4332
  }
4424
4333
  else {
4425
- peg$currPos = s6;
4426
- s6 = peg$FAILED;
4334
+ peg$currPos = s5;
4335
+ s5 = peg$FAILED;
4427
4336
  }
4428
- if (s6 !== peg$FAILED) {
4337
+ if (s5 !== peg$FAILED) {
4429
4338
  if (input.length > peg$currPos) {
4430
- s7 = input.charAt(peg$currPos);
4339
+ s6 = input.charAt(peg$currPos);
4431
4340
  peg$currPos++;
4432
4341
  }
4433
4342
  else {
4434
- s7 = peg$FAILED;
4343
+ s6 = peg$FAILED;
4435
4344
  if (peg$silentFails === 0) {
4436
4345
  peg$fail(peg$e0);
4437
4346
  }
4438
4347
  }
4439
- if (s7 !== peg$FAILED) {
4440
- s6 = [s6, s7];
4441
- s5 = s6;
4348
+ if (s6 !== peg$FAILED) {
4349
+ s5 = [s5, s6];
4350
+ s4 = s5;
4442
4351
  }
4443
4352
  else {
4444
- peg$currPos = s5;
4445
- s5 = peg$FAILED;
4353
+ peg$currPos = s4;
4354
+ s4 = peg$FAILED;
4446
4355
  }
4447
4356
  }
4448
4357
  else {
4449
- peg$currPos = s5;
4450
- s5 = peg$FAILED;
4358
+ peg$currPos = s4;
4359
+ s4 = peg$FAILED;
4451
4360
  }
4452
4361
  }
4453
- s3 = input.substring(s3, peg$currPos);
4454
- if (input.charCodeAt(peg$currPos) === 32) {
4455
- s4 = peg$c12;
4456
- peg$currPos++;
4457
- }
4458
- else {
4459
- s4 = peg$FAILED;
4460
- if (peg$silentFails === 0) {
4461
- peg$fail(peg$e16);
4362
+ s2 = input.substring(s2, peg$currPos);
4363
+ s3 = peg$parseInlineTag();
4364
+ if (s3 !== peg$FAILED) {
4365
+ if (input.substr(peg$currPos, 7) === peg$c31) {
4366
+ s4 = peg$c31;
4367
+ peg$currPos += 7;
4462
4368
  }
4463
- }
4464
- if (s4 === peg$FAILED) {
4465
- s4 = null;
4466
- }
4467
- s5 = peg$parseInlineTag();
4468
- if (s5 !== peg$FAILED) {
4469
- s6 = peg$parseAttrChain();
4470
- if (s6 !== peg$FAILED) {
4369
+ else {
4370
+ s4 = peg$FAILED;
4371
+ if (peg$silentFails === 0) {
4372
+ peg$fail(peg$e37);
4373
+ }
4374
+ }
4375
+ if (s4 !== peg$FAILED) {
4471
4376
  peg$savedPos = s0;
4472
- s0 = peg$f56(s3, s6);
4377
+ s0 = peg$f56(s2);
4473
4378
  }
4474
4379
  else {
4475
4380
  peg$currPos = s0;
@@ -4487,7 +4392,7 @@ function peg$parse(input, options) {
4487
4392
  }
4488
4393
  if (s0 === peg$FAILED) {
4489
4394
  s0 = peg$currPos;
4490
- s1 = peg$parseBoldTag();
4395
+ s1 = peg$parseInlineTag();
4491
4396
  if (s1 !== peg$FAILED) {
4492
4397
  if (input.charCodeAt(peg$currPos) === 32) {
4493
4398
  s2 = peg$c12;
@@ -4521,7 +4426,7 @@ function peg$parse(input, options) {
4521
4426
  if (s8 === peg$FAILED) {
4522
4427
  s8 = null;
4523
4428
  }
4524
- s9 = peg$parseBoldTag();
4429
+ s9 = peg$parseInlineTag();
4525
4430
  if (s9 !== peg$FAILED) {
4526
4431
  s8 = [s8, s9];
4527
4432
  s7 = s8;
@@ -4581,7 +4486,7 @@ function peg$parse(input, options) {
4581
4486
  if (s8 === peg$FAILED) {
4582
4487
  s8 = null;
4583
4488
  }
4584
- s9 = peg$parseBoldTag();
4489
+ s9 = peg$parseInlineTag();
4585
4490
  if (s9 !== peg$FAILED) {
4586
4491
  s8 = [s8, s9];
4587
4492
  s7 = s8;
@@ -4637,10 +4542,17 @@ function peg$parse(input, options) {
4637
4542
  if (s4 === peg$FAILED) {
4638
4543
  s4 = null;
4639
4544
  }
4640
- s5 = peg$parseBoldTag();
4545
+ s5 = peg$parseInlineTag();
4641
4546
  if (s5 !== peg$FAILED) {
4642
- peg$savedPos = s0;
4643
- s0 = peg$f57(s3);
4547
+ s6 = peg$parseAttrChain();
4548
+ if (s6 !== peg$FAILED) {
4549
+ peg$savedPos = s0;
4550
+ s0 = peg$f57(s3, s6);
4551
+ }
4552
+ else {
4553
+ peg$currPos = s0;
4554
+ s0 = peg$FAILED;
4555
+ }
4644
4556
  }
4645
4557
  else {
4646
4558
  peg$currPos = s0;
@@ -4653,7 +4565,7 @@ function peg$parse(input, options) {
4653
4565
  }
4654
4566
  if (s0 === peg$FAILED) {
4655
4567
  s0 = peg$currPos;
4656
- s1 = peg$parseItalicTag();
4568
+ s1 = peg$parseBoldTag();
4657
4569
  if (s1 !== peg$FAILED) {
4658
4570
  if (input.charCodeAt(peg$currPos) === 32) {
4659
4571
  s2 = peg$c12;
@@ -4687,7 +4599,7 @@ function peg$parse(input, options) {
4687
4599
  if (s8 === peg$FAILED) {
4688
4600
  s8 = null;
4689
4601
  }
4690
- s9 = peg$parseItalicTag();
4602
+ s9 = peg$parseBoldTag();
4691
4603
  if (s9 !== peg$FAILED) {
4692
4604
  s8 = [s8, s9];
4693
4605
  s7 = s8;
@@ -4747,7 +4659,7 @@ function peg$parse(input, options) {
4747
4659
  if (s8 === peg$FAILED) {
4748
4660
  s8 = null;
4749
4661
  }
4750
- s9 = peg$parseItalicTag();
4662
+ s9 = peg$parseBoldTag();
4751
4663
  if (s9 !== peg$FAILED) {
4752
4664
  s8 = [s8, s9];
4753
4665
  s7 = s8;
@@ -4803,7 +4715,7 @@ function peg$parse(input, options) {
4803
4715
  if (s4 === peg$FAILED) {
4804
4716
  s4 = null;
4805
4717
  }
4806
- s5 = peg$parseItalicTag();
4718
+ s5 = peg$parseBoldTag();
4807
4719
  if (s5 !== peg$FAILED) {
4808
4720
  peg$savedPos = s0;
4809
4721
  s0 = peg$f58(s3);
@@ -4819,7 +4731,7 @@ function peg$parse(input, options) {
4819
4731
  }
4820
4732
  if (s0 === peg$FAILED) {
4821
4733
  s0 = peg$currPos;
4822
- s1 = peg$parseLightTag();
4734
+ s1 = peg$parseItalicTag();
4823
4735
  if (s1 !== peg$FAILED) {
4824
4736
  if (input.charCodeAt(peg$currPos) === 32) {
4825
4737
  s2 = peg$c12;
@@ -4853,7 +4765,7 @@ function peg$parse(input, options) {
4853
4765
  if (s8 === peg$FAILED) {
4854
4766
  s8 = null;
4855
4767
  }
4856
- s9 = peg$parseLightTag();
4768
+ s9 = peg$parseItalicTag();
4857
4769
  if (s9 !== peg$FAILED) {
4858
4770
  s8 = [s8, s9];
4859
4771
  s7 = s8;
@@ -4913,7 +4825,7 @@ function peg$parse(input, options) {
4913
4825
  if (s8 === peg$FAILED) {
4914
4826
  s8 = null;
4915
4827
  }
4916
- s9 = peg$parseLightTag();
4828
+ s9 = peg$parseItalicTag();
4917
4829
  if (s9 !== peg$FAILED) {
4918
4830
  s8 = [s8, s9];
4919
4831
  s7 = s8;
@@ -4969,7 +4881,7 @@ function peg$parse(input, options) {
4969
4881
  if (s4 === peg$FAILED) {
4970
4882
  s4 = null;
4971
4883
  }
4972
- s5 = peg$parseLightTag();
4884
+ s5 = peg$parseItalicTag();
4973
4885
  if (s5 !== peg$FAILED) {
4974
4886
  peg$savedPos = s0;
4975
4887
  s0 = peg$f59(s3);
@@ -4985,7 +4897,7 @@ function peg$parse(input, options) {
4985
4897
  }
4986
4898
  if (s0 === peg$FAILED) {
4987
4899
  s0 = peg$currPos;
4988
- s1 = peg$parseHighlightTag();
4900
+ s1 = peg$parseLightTag();
4989
4901
  if (s1 !== peg$FAILED) {
4990
4902
  if (input.charCodeAt(peg$currPos) === 32) {
4991
4903
  s2 = peg$c12;
@@ -5019,7 +4931,7 @@ function peg$parse(input, options) {
5019
4931
  if (s8 === peg$FAILED) {
5020
4932
  s8 = null;
5021
4933
  }
5022
- s9 = peg$parseHighlightTag();
4934
+ s9 = peg$parseLightTag();
5023
4935
  if (s9 !== peg$FAILED) {
5024
4936
  s8 = [s8, s9];
5025
4937
  s7 = s8;
@@ -5079,7 +4991,7 @@ function peg$parse(input, options) {
5079
4991
  if (s8 === peg$FAILED) {
5080
4992
  s8 = null;
5081
4993
  }
5082
- s9 = peg$parseHighlightTag();
4994
+ s9 = peg$parseLightTag();
5083
4995
  if (s9 !== peg$FAILED) {
5084
4996
  s8 = [s8, s9];
5085
4997
  s7 = s8;
@@ -5135,7 +5047,7 @@ function peg$parse(input, options) {
5135
5047
  if (s4 === peg$FAILED) {
5136
5048
  s4 = null;
5137
5049
  }
5138
- s5 = peg$parseHighlightTag();
5050
+ s5 = peg$parseLightTag();
5139
5051
  if (s5 !== peg$FAILED) {
5140
5052
  peg$savedPos = s0;
5141
5053
  s0 = peg$f60(s3);
@@ -5151,12 +5063,179 @@ function peg$parse(input, options) {
5151
5063
  }
5152
5064
  if (s0 === peg$FAILED) {
5153
5065
  s0 = peg$currPos;
5154
- s1 = peg$parseUrl();
5066
+ s1 = peg$parseHighlightTag();
5155
5067
  if (s1 !== peg$FAILED) {
5156
- peg$savedPos = s0;
5157
- s1 = peg$f61(s1);
5068
+ if (input.charCodeAt(peg$currPos) === 32) {
5069
+ s2 = peg$c12;
5070
+ peg$currPos++;
5071
+ }
5072
+ else {
5073
+ s2 = peg$FAILED;
5074
+ if (peg$silentFails === 0) {
5075
+ peg$fail(peg$e16);
5076
+ }
5077
+ }
5078
+ if (s2 === peg$FAILED) {
5079
+ s2 = null;
5080
+ }
5081
+ s3 = peg$currPos;
5082
+ s4 = [];
5083
+ s5 = peg$currPos;
5084
+ s6 = peg$currPos;
5085
+ peg$silentFails++;
5086
+ s7 = peg$currPos;
5087
+ if (input.charCodeAt(peg$currPos) === 32) {
5088
+ s8 = peg$c12;
5089
+ peg$currPos++;
5090
+ }
5091
+ else {
5092
+ s8 = peg$FAILED;
5093
+ if (peg$silentFails === 0) {
5094
+ peg$fail(peg$e16);
5095
+ }
5096
+ }
5097
+ if (s8 === peg$FAILED) {
5098
+ s8 = null;
5099
+ }
5100
+ s9 = peg$parseHighlightTag();
5101
+ if (s9 !== peg$FAILED) {
5102
+ s8 = [s8, s9];
5103
+ s7 = s8;
5104
+ }
5105
+ else {
5106
+ peg$currPos = s7;
5107
+ s7 = peg$FAILED;
5108
+ }
5109
+ peg$silentFails--;
5110
+ if (s7 === peg$FAILED) {
5111
+ s6 = undefined;
5112
+ }
5113
+ else {
5114
+ peg$currPos = s6;
5115
+ s6 = peg$FAILED;
5116
+ }
5117
+ if (s6 !== peg$FAILED) {
5118
+ if (input.length > peg$currPos) {
5119
+ s7 = input.charAt(peg$currPos);
5120
+ peg$currPos++;
5121
+ }
5122
+ else {
5123
+ s7 = peg$FAILED;
5124
+ if (peg$silentFails === 0) {
5125
+ peg$fail(peg$e0);
5126
+ }
5127
+ }
5128
+ if (s7 !== peg$FAILED) {
5129
+ s6 = [s6, s7];
5130
+ s5 = s6;
5131
+ }
5132
+ else {
5133
+ peg$currPos = s5;
5134
+ s5 = peg$FAILED;
5135
+ }
5136
+ }
5137
+ else {
5138
+ peg$currPos = s5;
5139
+ s5 = peg$FAILED;
5140
+ }
5141
+ while (s5 !== peg$FAILED) {
5142
+ s4.push(s5);
5143
+ s5 = peg$currPos;
5144
+ s6 = peg$currPos;
5145
+ peg$silentFails++;
5146
+ s7 = peg$currPos;
5147
+ if (input.charCodeAt(peg$currPos) === 32) {
5148
+ s8 = peg$c12;
5149
+ peg$currPos++;
5150
+ }
5151
+ else {
5152
+ s8 = peg$FAILED;
5153
+ if (peg$silentFails === 0) {
5154
+ peg$fail(peg$e16);
5155
+ }
5156
+ }
5157
+ if (s8 === peg$FAILED) {
5158
+ s8 = null;
5159
+ }
5160
+ s9 = peg$parseHighlightTag();
5161
+ if (s9 !== peg$FAILED) {
5162
+ s8 = [s8, s9];
5163
+ s7 = s8;
5164
+ }
5165
+ else {
5166
+ peg$currPos = s7;
5167
+ s7 = peg$FAILED;
5168
+ }
5169
+ peg$silentFails--;
5170
+ if (s7 === peg$FAILED) {
5171
+ s6 = undefined;
5172
+ }
5173
+ else {
5174
+ peg$currPos = s6;
5175
+ s6 = peg$FAILED;
5176
+ }
5177
+ if (s6 !== peg$FAILED) {
5178
+ if (input.length > peg$currPos) {
5179
+ s7 = input.charAt(peg$currPos);
5180
+ peg$currPos++;
5181
+ }
5182
+ else {
5183
+ s7 = peg$FAILED;
5184
+ if (peg$silentFails === 0) {
5185
+ peg$fail(peg$e0);
5186
+ }
5187
+ }
5188
+ if (s7 !== peg$FAILED) {
5189
+ s6 = [s6, s7];
5190
+ s5 = s6;
5191
+ }
5192
+ else {
5193
+ peg$currPos = s5;
5194
+ s5 = peg$FAILED;
5195
+ }
5196
+ }
5197
+ else {
5198
+ peg$currPos = s5;
5199
+ s5 = peg$FAILED;
5200
+ }
5201
+ }
5202
+ s3 = input.substring(s3, peg$currPos);
5203
+ if (input.charCodeAt(peg$currPos) === 32) {
5204
+ s4 = peg$c12;
5205
+ peg$currPos++;
5206
+ }
5207
+ else {
5208
+ s4 = peg$FAILED;
5209
+ if (peg$silentFails === 0) {
5210
+ peg$fail(peg$e16);
5211
+ }
5212
+ }
5213
+ if (s4 === peg$FAILED) {
5214
+ s4 = null;
5215
+ }
5216
+ s5 = peg$parseHighlightTag();
5217
+ if (s5 !== peg$FAILED) {
5218
+ peg$savedPos = s0;
5219
+ s0 = peg$f61(s3);
5220
+ }
5221
+ else {
5222
+ peg$currPos = s0;
5223
+ s0 = peg$FAILED;
5224
+ }
5225
+ }
5226
+ else {
5227
+ peg$currPos = s0;
5228
+ s0 = peg$FAILED;
5229
+ }
5230
+ if (s0 === peg$FAILED) {
5231
+ s0 = peg$currPos;
5232
+ s1 = peg$parseUrl();
5233
+ if (s1 !== peg$FAILED) {
5234
+ peg$savedPos = s0;
5235
+ s1 = peg$f62(s1);
5236
+ }
5237
+ s0 = s1;
5158
5238
  }
5159
- s0 = s1;
5160
5239
  }
5161
5240
  }
5162
5241
  }
@@ -5204,14 +5283,14 @@ function peg$parse(input, options) {
5204
5283
  if (s0 === peg$FAILED) {
5205
5284
  s0 = peg$currPos;
5206
5285
  s1 = peg$currPos;
5207
- s2 = peg$parseInlineLaTexTag();
5286
+ s2 = peg$parseLightTag();
5208
5287
  if (s2 !== peg$FAILED) {
5209
5288
  s3 = [];
5210
- s4 = peg$parseInlineLaTexHalfTag();
5289
+ s4 = peg$parseLightHalfTag();
5211
5290
  if (s4 !== peg$FAILED) {
5212
5291
  while (s4 !== peg$FAILED) {
5213
5292
  s3.push(s4);
5214
- s4 = peg$parseInlineLaTexHalfTag();
5293
+ s4 = peg$parseLightHalfTag();
5215
5294
  }
5216
5295
  }
5217
5296
  else {
@@ -5239,14 +5318,14 @@ function peg$parse(input, options) {
5239
5318
  if (s0 === peg$FAILED) {
5240
5319
  s0 = peg$currPos;
5241
5320
  s1 = peg$currPos;
5242
- s2 = peg$parseLightTag();
5321
+ s2 = peg$parseHighlightTag();
5243
5322
  if (s2 !== peg$FAILED) {
5244
5323
  s3 = [];
5245
- s4 = peg$parseLightHalfTag();
5324
+ s4 = peg$parseHighlightHalfTag();
5246
5325
  if (s4 !== peg$FAILED) {
5247
5326
  while (s4 !== peg$FAILED) {
5248
5327
  s3.push(s4);
5249
- s4 = peg$parseLightHalfTag();
5328
+ s4 = peg$parseHighlightHalfTag();
5250
5329
  }
5251
5330
  }
5252
5331
  else {
@@ -5271,42 +5350,6 @@ function peg$parse(input, options) {
5271
5350
  else {
5272
5351
  s0 = s1;
5273
5352
  }
5274
- if (s0 === peg$FAILED) {
5275
- s0 = peg$currPos;
5276
- s1 = peg$currPos;
5277
- s2 = peg$parseHighlightTag();
5278
- if (s2 !== peg$FAILED) {
5279
- s3 = [];
5280
- s4 = peg$parseHighlightHalfTag();
5281
- if (s4 !== peg$FAILED) {
5282
- while (s4 !== peg$FAILED) {
5283
- s3.push(s4);
5284
- s4 = peg$parseHighlightHalfTag();
5285
- }
5286
- }
5287
- else {
5288
- s3 = peg$FAILED;
5289
- }
5290
- if (s3 !== peg$FAILED) {
5291
- s2 = [s2, s3];
5292
- s1 = s2;
5293
- }
5294
- else {
5295
- peg$currPos = s1;
5296
- s1 = peg$FAILED;
5297
- }
5298
- }
5299
- else {
5300
- peg$currPos = s1;
5301
- s1 = peg$FAILED;
5302
- }
5303
- if (s1 !== peg$FAILED) {
5304
- s0 = input.substring(s0, peg$currPos);
5305
- }
5306
- else {
5307
- s0 = s1;
5308
- }
5309
- }
5310
5353
  }
5311
5354
  }
5312
5355
  return s0;
@@ -5338,7 +5381,7 @@ function peg$parse(input, options) {
5338
5381
  }
5339
5382
  if (s2 !== peg$FAILED) {
5340
5383
  peg$savedPos = s0;
5341
- s0 = peg$f62(s2);
5384
+ s0 = peg$f63(s2);
5342
5385
  }
5343
5386
  else {
5344
5387
  peg$currPos = s0;
@@ -5428,7 +5471,7 @@ function peg$parse(input, options) {
5428
5471
  s3 = peg$parseBlockTag();
5429
5472
  if (s3 !== peg$FAILED) {
5430
5473
  peg$savedPos = s0;
5431
- s0 = peg$f63(s2);
5474
+ s0 = peg$f64(s2);
5432
5475
  }
5433
5476
  else {
5434
5477
  peg$currPos = s0;
@@ -5588,7 +5631,7 @@ function peg$parse(input, options) {
5588
5631
  s6 = peg$parseBlockTag();
5589
5632
  if (s6 !== peg$FAILED) {
5590
5633
  peg$savedPos = s0;
5591
- s0 = peg$f64(s2, s5);
5634
+ s0 = peg$f65(s2, s5);
5592
5635
  }
5593
5636
  else {
5594
5637
  peg$currPos = s0;
@@ -5685,7 +5728,7 @@ function peg$parse(input, options) {
5685
5728
  s3 = peg$parseBlockTag();
5686
5729
  if (s3 !== peg$FAILED) {
5687
5730
  peg$savedPos = s0;
5688
- s0 = peg$f65(s2);
5731
+ s0 = peg$f66(s2);
5689
5732
  }
5690
5733
  else {
5691
5734
  peg$currPos = s0;
@@ -5772,7 +5815,7 @@ function peg$parse(input, options) {
5772
5815
  s3 = peg$parseBlockTag();
5773
5816
  if (s3 !== peg$FAILED) {
5774
5817
  peg$savedPos = s0;
5775
- s0 = peg$f66(s2);
5818
+ s0 = peg$f67(s2);
5776
5819
  }
5777
5820
  else {
5778
5821
  peg$currPos = s0;
@@ -5859,7 +5902,7 @@ function peg$parse(input, options) {
5859
5902
  s3 = peg$parseBlockTag();
5860
5903
  if (s3 !== peg$FAILED) {
5861
5904
  peg$savedPos = s0;
5862
- s0 = peg$f67(s2);
5905
+ s0 = peg$f68(s2);
5863
5906
  }
5864
5907
  else {
5865
5908
  peg$currPos = s0;
@@ -5946,7 +5989,7 @@ function peg$parse(input, options) {
5946
5989
  s3 = peg$parseBlockTag();
5947
5990
  if (s3 !== peg$FAILED) {
5948
5991
  peg$savedPos = s0;
5949
- s0 = peg$f68(s2);
5992
+ s0 = peg$f69(s2);
5950
5993
  }
5951
5994
  else {
5952
5995
  peg$currPos = s0;
@@ -6033,7 +6076,7 @@ function peg$parse(input, options) {
6033
6076
  s3 = peg$parseBlockTag();
6034
6077
  if (s3 !== peg$FAILED) {
6035
6078
  peg$savedPos = s0;
6036
- s0 = peg$f69(s2);
6079
+ s0 = peg$f70(s2);
6037
6080
  }
6038
6081
  else {
6039
6082
  peg$currPos = s0;
@@ -6060,7 +6103,7 @@ function peg$parse(input, options) {
6060
6103
  s2 = peg$parseBlockTag();
6061
6104
  if (s2 !== peg$FAILED) {
6062
6105
  peg$savedPos = s0;
6063
- s0 = peg$f70();
6106
+ s0 = peg$f71();
6064
6107
  }
6065
6108
  else {
6066
6109
  peg$currPos = s0;
@@ -6147,7 +6190,7 @@ function peg$parse(input, options) {
6147
6190
  s3 = peg$parseBlockTag();
6148
6191
  if (s3 !== peg$FAILED) {
6149
6192
  peg$savedPos = s0;
6150
- s0 = peg$f71(s2);
6193
+ s0 = peg$f72(s2);
6151
6194
  }
6152
6195
  else {
6153
6196
  peg$currPos = s0;
@@ -6174,7 +6217,7 @@ function peg$parse(input, options) {
6174
6217
  s2 = peg$parseBlockTag();
6175
6218
  if (s2 !== peg$FAILED) {
6176
6219
  peg$savedPos = s0;
6177
- s0 = peg$f72();
6220
+ s0 = peg$f73();
6178
6221
  }
6179
6222
  else {
6180
6223
  peg$currPos = s0;
@@ -6261,7 +6304,7 @@ function peg$parse(input, options) {
6261
6304
  s3 = peg$parseBlockTag();
6262
6305
  if (s3 !== peg$FAILED) {
6263
6306
  peg$savedPos = s0;
6264
- s0 = peg$f73(s2);
6307
+ s0 = peg$f74(s2);
6265
6308
  }
6266
6309
  else {
6267
6310
  peg$currPos = s0;
@@ -6375,7 +6418,7 @@ function peg$parse(input, options) {
6375
6418
  s3 = peg$parseBlockTag();
6376
6419
  if (s3 !== peg$FAILED) {
6377
6420
  peg$savedPos = s0;
6378
- s0 = peg$f74(s2);
6421
+ s0 = peg$f75(s2);
6379
6422
  }
6380
6423
  else {
6381
6424
  peg$currPos = s0;
@@ -6409,7 +6452,7 @@ function peg$parse(input, options) {
6409
6452
  s3 = peg$parseBlockTag();
6410
6453
  if (s3 !== peg$FAILED) {
6411
6454
  peg$savedPos = s0;
6412
- s0 = peg$f75(s2);
6455
+ s0 = peg$f76(s2);
6413
6456
  }
6414
6457
  else {
6415
6458
  peg$currPos = s0;
@@ -6432,7 +6475,7 @@ function peg$parse(input, options) {
6432
6475
  s2 = peg$parseBlockTag();
6433
6476
  if (s2 !== peg$FAILED) {
6434
6477
  peg$savedPos = s0;
6435
- s0 = peg$f76(s1);
6478
+ s0 = peg$f77(s1);
6436
6479
  }
6437
6480
  else {
6438
6481
  peg$currPos = s0;
@@ -6519,7 +6562,7 @@ function peg$parse(input, options) {
6519
6562
  s3 = peg$parseBlockTag();
6520
6563
  if (s3 !== peg$FAILED) {
6521
6564
  peg$savedPos = s0;
6522
- s0 = peg$f77(s2);
6565
+ s0 = peg$f78(s2);
6523
6566
  }
6524
6567
  else {
6525
6568
  peg$currPos = s0;
@@ -7036,7 +7079,7 @@ function peg$parse(input, options) {
7036
7079
  s0 = peg$currPos;
7037
7080
  s1 = peg$parsebitmarkMinusMinusString();
7038
7081
  peg$savedPos = s0;
7039
- s1 = peg$f78(s1);
7082
+ s1 = peg$f79(s1);
7040
7083
  s0 = s1;
7041
7084
  peg$silentFails--;
7042
7085
  s1 = peg$FAILED;
@@ -7066,7 +7109,7 @@ function peg$parse(input, options) {
7066
7109
  }
7067
7110
  }
7068
7111
  peg$savedPos = s0;
7069
- s0 = peg$f79(s1, s2);
7112
+ s0 = peg$f80(s1, s2);
7070
7113
  peg$silentFails--;
7071
7114
  s1 = peg$FAILED;
7072
7115
  if (peg$silentFails === 0) {
@@ -7080,7 +7123,7 @@ function peg$parse(input, options) {
7080
7123
  s1 = peg$parseNL();
7081
7124
  if (s1 !== peg$FAILED) {
7082
7125
  peg$savedPos = s0;
7083
- s1 = peg$f80(s1);
7126
+ s1 = peg$f81();
7084
7127
  }
7085
7128
  s0 = s1;
7086
7129
  if (s0 === peg$FAILED) {
@@ -7223,7 +7266,7 @@ function peg$parse(input, options) {
7223
7266
  }
7224
7267
  if (s1 !== peg$FAILED) {
7225
7268
  peg$savedPos = s0;
7226
- s1 = peg$f81(s1);
7269
+ s1 = peg$f82(s1);
7227
7270
  }
7228
7271
  s0 = s1;
7229
7272
  }
@@ -7442,7 +7485,7 @@ function peg$parse(input, options) {
7442
7485
  s3 = peg$parseBodyBitCloseTag();
7443
7486
  if (s3 !== peg$FAILED) {
7444
7487
  peg$savedPos = s0;
7445
- s0 = peg$f82(s2);
7488
+ s0 = peg$f83(s2);
7446
7489
  }
7447
7490
  else {
7448
7491
  peg$currPos = s0;
@@ -7613,7 +7656,7 @@ function peg$parse(input, options) {
7613
7656
  s5 = peg$parseBoldTag();
7614
7657
  if (s5 !== peg$FAILED) {
7615
7658
  peg$savedPos = s0;
7616
- s0 = peg$f83(s3);
7659
+ s0 = peg$f84(s3);
7617
7660
  }
7618
7661
  else {
7619
7662
  peg$currPos = s0;
@@ -7779,7 +7822,7 @@ function peg$parse(input, options) {
7779
7822
  s5 = peg$parseItalicTag();
7780
7823
  if (s5 !== peg$FAILED) {
7781
7824
  peg$savedPos = s0;
7782
- s0 = peg$f84(s3);
7825
+ s0 = peg$f85(s3);
7783
7826
  }
7784
7827
  else {
7785
7828
  peg$currPos = s0;
@@ -7945,7 +7988,7 @@ function peg$parse(input, options) {
7945
7988
  s5 = peg$parseLightTag();
7946
7989
  if (s5 !== peg$FAILED) {
7947
7990
  peg$savedPos = s0;
7948
- s0 = peg$f85(s3);
7991
+ s0 = peg$f86(s3);
7949
7992
  }
7950
7993
  else {
7951
7994
  peg$currPos = s0;
@@ -8111,7 +8154,7 @@ function peg$parse(input, options) {
8111
8154
  s5 = peg$parseHighlightTag();
8112
8155
  if (s5 !== peg$FAILED) {
8113
8156
  peg$savedPos = s0;
8114
- s0 = peg$f86(s3);
8157
+ s0 = peg$f87(s3);
8115
8158
  }
8116
8159
  else {
8117
8160
  peg$currPos = s0;
@@ -8671,7 +8714,7 @@ function peg$parse(input, options) {
8671
8714
  }
8672
8715
  s2 = input.substring(s2, peg$currPos);
8673
8716
  peg$savedPos = s0;
8674
- s0 = peg$f87(s1, s2);
8717
+ s0 = peg$f88(s1, s2);
8675
8718
  }
8676
8719
  else {
8677
8720
  peg$currPos = s0;