@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
@@ -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.17.1";
10
+ const VERSION = "8.18.2";
11
11
  //Parser peggy.js
12
12
  // parser options (parameter when running parser):
13
13
  // allowedStartRules: ["bitmarkPlusPlus", "bitmarkPlus", "bitmarkMinusMinus", "bitmarkPlusString", "bitmarkMinusMinusString"]
@@ -16,7 +16,7 @@ const VERSION = "8.17.1";
16
16
  // Todos
17
17
  // - JSON for color
18
18
  // - LaTeX embed
19
- // The formula == $$ p \\left( x | y \\right) $$ ==|math:LaTeX| is inline.
19
+ // The formula == \\left( x | y \\right) ==|latex| is inline.
20
20
  /*
21
21
 
22
22
  Empty StyledString
@@ -317,7 +317,7 @@ function peg$parse(input, options) {
317
317
  var peg$c28 = "center";
318
318
  var peg$c29 = "right";
319
319
  var peg$c30 = "=";
320
- var peg$c31 = "\uD835\uDC53";
320
+ var peg$c31 = "|latex|";
321
321
  var peg$c32 = "link:";
322
322
  var peg$c33 = "xref:";
323
323
  var peg$c34 = "\u25BA";
@@ -428,7 +428,7 @@ function peg$parse(input, options) {
428
428
  var peg$e34 = peg$literalExpectation("right", false);
429
429
  var peg$e35 = peg$otherExpectation("StyledString");
430
430
  var peg$e36 = peg$literalExpectation("=", false);
431
- var peg$e37 = peg$literalExpectation("\uD835\uDC53", false);
431
+ var peg$e37 = peg$literalExpectation("|latex|", false);
432
432
  var peg$e38 = peg$literalExpectation("link:", false);
433
433
  var peg$e39 = peg$literalExpectation("xref:", false);
434
434
  var peg$e40 = peg$literalExpectation("\u25BA", false);
@@ -651,39 +651,40 @@ function peg$parse(input, options) {
651
651
  var peg$f53 = function () { return { "type": "hardBreak" }; };
652
652
  var peg$f54 = function (t) { return { text: unbreakscape(t), type: "text" }; };
653
653
  var peg$f55 = function (t) { return { index: +t, type: "bit" }; };
654
- var peg$f56 = function (t, marks) { if (!marks)
654
+ var peg$f56 = function (t) { return { attrs: { formula: t }, type: "latex" }; };
655
+ var peg$f57 = function (t, marks) { if (!marks)
655
656
  marks = []; return { marks, text: unbreakscape(t), type: "text" }; };
656
- var peg$f57 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
657
- var peg$f58 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
658
- var peg$f59 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
659
- var peg$f60 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
660
- var peg$f61 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
661
- var peg$f62 = function (ch) { return ch; };
662
- var peg$f63 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
663
- var peg$f64 = function (str, str2) { return { type: 'xref', attrs: { xref: str.trim(), reference: str2.trim() } }; };
664
- var peg$f65 = function (str) { return { type: 'xref', attrs: { xref: str.trim(), reference: '' } }; };
665
- var peg$f66 = function (str) { return { type: 'ref', attrs: { reference: str.trim() } }; };
666
- var peg$f67 = function (str) { return { type: 'footnote', attrs: { content: bitmarkPlusString(str.trim()) } }; };
667
- var peg$f68 = function (str) { return { type: 'footnote*', attrs: { content: bitmarkPlusString(str.trim()) } }; };
668
- var peg$f69 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
669
- var peg$f70 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
670
- var peg$f71 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
671
- var peg$f72 = function () { return { type: 'timer', attrs: { name: "" } }; };
672
- var peg$f73 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
673
- var peg$f74 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
674
- var peg$f75 = function (color) { return { type: 'color', attrs: { color } }; };
675
- var peg$f76 = function (style) { return { type: style }; };
676
- var peg$f77 = function (str) { return { type: "comment", comment: str }; };
677
- var peg$f78 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
678
- var peg$f79 = function (first, more) { return first ? [first, ...more.flat()] : more.flat(); };
679
- var peg$f80 = function (t) { return { "type": "hardBreak" }; };
680
- var peg$f81 = function (t) { return { text: unbreakscape(t), type: "text" }; };
681
- var peg$f82 = function (t) { return { index: +t, type: "bit" }; };
682
- var peg$f83 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
683
- var peg$f84 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
684
- var peg$f85 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
685
- var peg$f86 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
686
- var peg$f87 = function (pr, t) { return { pr, t }; };
657
+ var peg$f58 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
658
+ var peg$f59 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
659
+ var peg$f60 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
660
+ var peg$f61 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
661
+ var peg$f62 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
662
+ var peg$f63 = function (ch) { return ch; };
663
+ var peg$f64 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
664
+ var peg$f65 = function (str, str2) { return { type: 'xref', attrs: { xref: str.trim(), reference: str2.trim() } }; };
665
+ var peg$f66 = function (str) { return { type: 'xref', attrs: { xref: str.trim(), reference: '' } }; };
666
+ var peg$f67 = function (str) { return { type: 'ref', attrs: { reference: str.trim() } }; };
667
+ var peg$f68 = function (str) { return { type: 'footnote', attrs: { content: bitmarkPlusString(str.trim()) } }; };
668
+ var peg$f69 = function (str) { return { type: 'footnote*', attrs: { content: bitmarkPlusString(str.trim()) } }; };
669
+ var peg$f70 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
670
+ var peg$f71 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
671
+ var peg$f72 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
672
+ var peg$f73 = function () { return { type: 'timer', attrs: { name: "" } }; };
673
+ var peg$f74 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
674
+ var peg$f75 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
675
+ var peg$f76 = function (color) { return { type: 'color', attrs: { color } }; };
676
+ var peg$f77 = function (style) { return { type: style }; };
677
+ var peg$f78 = function (str) { return { type: "comment", comment: str }; };
678
+ var peg$f79 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
679
+ var peg$f80 = function (first, more) { return first ? [first, ...more.flat()] : more.flat(); };
680
+ var peg$f81 = function () { return { "type": "hardBreak" }; };
681
+ var peg$f82 = function (t) { return { text: unbreakscape(t), type: "text" }; };
682
+ var peg$f83 = function (t) { return { index: +t, type: "bit" }; };
683
+ var peg$f84 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
684
+ var peg$f85 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
685
+ var peg$f86 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
686
+ var peg$f87 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
687
+ var peg$f88 = function (pr, t) { return { pr, t }; };
687
688
  var peg$currPos = options.peg$currPos | 0;
688
689
  var peg$savedPos = peg$currPos;
689
690
  var peg$posDetailsCache = [{ line: 1, column: 1 }];
@@ -4200,20 +4201,6 @@ function peg$parse(input, options) {
4200
4201
  }
4201
4202
  return s0;
4202
4203
  }
4203
- function peg$parseInlineLaTexHalfTag() {
4204
- var s0;
4205
- if (input.substr(peg$currPos, 2) === peg$c31) {
4206
- s0 = peg$c31;
4207
- peg$currPos += 2;
4208
- }
4209
- else {
4210
- s0 = peg$FAILED;
4211
- if (peg$silentFails === 0) {
4212
- peg$fail(peg$e37);
4213
- }
4214
- }
4215
- return s0;
4216
- }
4217
4204
  function peg$parseInlineTag() {
4218
4205
  var s0, s1, s2;
4219
4206
  s0 = peg$currPos;
@@ -4235,27 +4222,6 @@ function peg$parse(input, options) {
4235
4222
  }
4236
4223
  return s0;
4237
4224
  }
4238
- function peg$parseInlineLaTexTag() {
4239
- var s0, s1, s2;
4240
- s0 = peg$currPos;
4241
- s1 = peg$parseInlineLaTexHalfTag();
4242
- if (s1 !== peg$FAILED) {
4243
- s2 = peg$parseInlineLaTexHalfTag();
4244
- if (s2 !== peg$FAILED) {
4245
- s1 = [s1, s2];
4246
- s0 = s1;
4247
- }
4248
- else {
4249
- peg$currPos = s0;
4250
- s0 = peg$FAILED;
4251
- }
4252
- }
4253
- else {
4254
- peg$currPos = s0;
4255
- s0 = peg$FAILED;
4256
- }
4257
- return s0;
4258
- }
4259
4225
  function peg$parseInlineStyledText() {
4260
4226
  var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
4261
4227
  s0 = peg$currPos;
@@ -4321,160 +4287,99 @@ function peg$parse(input, options) {
4321
4287
  s0 = peg$currPos;
4322
4288
  s1 = peg$parseInlineTag();
4323
4289
  if (s1 !== peg$FAILED) {
4324
- if (input.charCodeAt(peg$currPos) === 32) {
4325
- s2 = peg$c12;
4326
- peg$currPos++;
4327
- }
4328
- else {
4329
- s2 = peg$FAILED;
4330
- if (peg$silentFails === 0) {
4331
- peg$fail(peg$e16);
4332
- }
4333
- }
4334
- if (s2 === peg$FAILED) {
4335
- s2 = null;
4336
- }
4337
- s3 = peg$currPos;
4338
- s4 = [];
4290
+ s2 = peg$currPos;
4291
+ s3 = [];
4292
+ s4 = peg$currPos;
4339
4293
  s5 = peg$currPos;
4340
- s6 = peg$currPos;
4341
4294
  peg$silentFails++;
4342
- s7 = peg$currPos;
4343
- if (input.charCodeAt(peg$currPos) === 32) {
4344
- s8 = peg$c12;
4345
- peg$currPos++;
4346
- }
4347
- else {
4348
- s8 = peg$FAILED;
4349
- if (peg$silentFails === 0) {
4350
- peg$fail(peg$e16);
4351
- }
4352
- }
4353
- if (s8 === peg$FAILED) {
4354
- s8 = null;
4355
- }
4356
- s9 = peg$parseInlineTag();
4357
- if (s9 !== peg$FAILED) {
4358
- s8 = [s8, s9];
4359
- s7 = s8;
4360
- }
4361
- else {
4362
- peg$currPos = s7;
4363
- s7 = peg$FAILED;
4364
- }
4295
+ s6 = peg$parseInlineTag();
4365
4296
  peg$silentFails--;
4366
- if (s7 === peg$FAILED) {
4367
- s6 = undefined;
4297
+ if (s6 === peg$FAILED) {
4298
+ s5 = undefined;
4368
4299
  }
4369
4300
  else {
4370
- peg$currPos = s6;
4371
- s6 = peg$FAILED;
4301
+ peg$currPos = s5;
4302
+ s5 = peg$FAILED;
4372
4303
  }
4373
- if (s6 !== peg$FAILED) {
4304
+ if (s5 !== peg$FAILED) {
4374
4305
  if (input.length > peg$currPos) {
4375
- s7 = input.charAt(peg$currPos);
4306
+ s6 = input.charAt(peg$currPos);
4376
4307
  peg$currPos++;
4377
4308
  }
4378
4309
  else {
4379
- s7 = peg$FAILED;
4310
+ s6 = peg$FAILED;
4380
4311
  if (peg$silentFails === 0) {
4381
4312
  peg$fail(peg$e0);
4382
4313
  }
4383
4314
  }
4384
- if (s7 !== peg$FAILED) {
4385
- s6 = [s6, s7];
4386
- s5 = s6;
4315
+ if (s6 !== peg$FAILED) {
4316
+ s5 = [s5, s6];
4317
+ s4 = s5;
4387
4318
  }
4388
4319
  else {
4389
- peg$currPos = s5;
4390
- s5 = peg$FAILED;
4320
+ peg$currPos = s4;
4321
+ s4 = peg$FAILED;
4391
4322
  }
4392
4323
  }
4393
4324
  else {
4394
- peg$currPos = s5;
4395
- s5 = peg$FAILED;
4325
+ peg$currPos = s4;
4326
+ s4 = peg$FAILED;
4396
4327
  }
4397
- while (s5 !== peg$FAILED) {
4398
- s4.push(s5);
4328
+ while (s4 !== peg$FAILED) {
4329
+ s3.push(s4);
4330
+ s4 = peg$currPos;
4399
4331
  s5 = peg$currPos;
4400
- s6 = peg$currPos;
4401
4332
  peg$silentFails++;
4402
- s7 = peg$currPos;
4403
- if (input.charCodeAt(peg$currPos) === 32) {
4404
- s8 = peg$c12;
4405
- peg$currPos++;
4406
- }
4407
- else {
4408
- s8 = peg$FAILED;
4409
- if (peg$silentFails === 0) {
4410
- peg$fail(peg$e16);
4411
- }
4412
- }
4413
- if (s8 === peg$FAILED) {
4414
- s8 = null;
4415
- }
4416
- s9 = peg$parseInlineTag();
4417
- if (s9 !== peg$FAILED) {
4418
- s8 = [s8, s9];
4419
- s7 = s8;
4420
- }
4421
- else {
4422
- peg$currPos = s7;
4423
- s7 = peg$FAILED;
4424
- }
4333
+ s6 = peg$parseInlineTag();
4425
4334
  peg$silentFails--;
4426
- if (s7 === peg$FAILED) {
4427
- s6 = undefined;
4335
+ if (s6 === peg$FAILED) {
4336
+ s5 = undefined;
4428
4337
  }
4429
4338
  else {
4430
- peg$currPos = s6;
4431
- s6 = peg$FAILED;
4339
+ peg$currPos = s5;
4340
+ s5 = peg$FAILED;
4432
4341
  }
4433
- if (s6 !== peg$FAILED) {
4342
+ if (s5 !== peg$FAILED) {
4434
4343
  if (input.length > peg$currPos) {
4435
- s7 = input.charAt(peg$currPos);
4344
+ s6 = input.charAt(peg$currPos);
4436
4345
  peg$currPos++;
4437
4346
  }
4438
4347
  else {
4439
- s7 = peg$FAILED;
4348
+ s6 = peg$FAILED;
4440
4349
  if (peg$silentFails === 0) {
4441
4350
  peg$fail(peg$e0);
4442
4351
  }
4443
4352
  }
4444
- if (s7 !== peg$FAILED) {
4445
- s6 = [s6, s7];
4446
- s5 = s6;
4353
+ if (s6 !== peg$FAILED) {
4354
+ s5 = [s5, s6];
4355
+ s4 = s5;
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
4362
  else {
4454
- peg$currPos = s5;
4455
- s5 = peg$FAILED;
4363
+ peg$currPos = s4;
4364
+ s4 = peg$FAILED;
4456
4365
  }
4457
4366
  }
4458
- s3 = input.substring(s3, peg$currPos);
4459
- if (input.charCodeAt(peg$currPos) === 32) {
4460
- s4 = peg$c12;
4461
- peg$currPos++;
4462
- }
4463
- else {
4464
- s4 = peg$FAILED;
4465
- if (peg$silentFails === 0) {
4466
- peg$fail(peg$e16);
4367
+ s2 = input.substring(s2, peg$currPos);
4368
+ s3 = peg$parseInlineTag();
4369
+ if (s3 !== peg$FAILED) {
4370
+ if (input.substr(peg$currPos, 7) === peg$c31) {
4371
+ s4 = peg$c31;
4372
+ peg$currPos += 7;
4467
4373
  }
4468
- }
4469
- if (s4 === peg$FAILED) {
4470
- s4 = null;
4471
- }
4472
- s5 = peg$parseInlineTag();
4473
- if (s5 !== peg$FAILED) {
4474
- s6 = peg$parseAttrChain();
4475
- if (s6 !== peg$FAILED) {
4374
+ else {
4375
+ s4 = peg$FAILED;
4376
+ if (peg$silentFails === 0) {
4377
+ peg$fail(peg$e37);
4378
+ }
4379
+ }
4380
+ if (s4 !== peg$FAILED) {
4476
4381
  peg$savedPos = s0;
4477
- s0 = peg$f56(s3, s6);
4382
+ s0 = peg$f56(s2);
4478
4383
  }
4479
4384
  else {
4480
4385
  peg$currPos = s0;
@@ -4492,7 +4397,7 @@ function peg$parse(input, options) {
4492
4397
  }
4493
4398
  if (s0 === peg$FAILED) {
4494
4399
  s0 = peg$currPos;
4495
- s1 = peg$parseBoldTag();
4400
+ s1 = peg$parseInlineTag();
4496
4401
  if (s1 !== peg$FAILED) {
4497
4402
  if (input.charCodeAt(peg$currPos) === 32) {
4498
4403
  s2 = peg$c12;
@@ -4526,7 +4431,7 @@ function peg$parse(input, options) {
4526
4431
  if (s8 === peg$FAILED) {
4527
4432
  s8 = null;
4528
4433
  }
4529
- s9 = peg$parseBoldTag();
4434
+ s9 = peg$parseInlineTag();
4530
4435
  if (s9 !== peg$FAILED) {
4531
4436
  s8 = [s8, s9];
4532
4437
  s7 = s8;
@@ -4586,7 +4491,7 @@ function peg$parse(input, options) {
4586
4491
  if (s8 === peg$FAILED) {
4587
4492
  s8 = null;
4588
4493
  }
4589
- s9 = peg$parseBoldTag();
4494
+ s9 = peg$parseInlineTag();
4590
4495
  if (s9 !== peg$FAILED) {
4591
4496
  s8 = [s8, s9];
4592
4497
  s7 = s8;
@@ -4642,10 +4547,17 @@ function peg$parse(input, options) {
4642
4547
  if (s4 === peg$FAILED) {
4643
4548
  s4 = null;
4644
4549
  }
4645
- s5 = peg$parseBoldTag();
4550
+ s5 = peg$parseInlineTag();
4646
4551
  if (s5 !== peg$FAILED) {
4647
- peg$savedPos = s0;
4648
- s0 = peg$f57(s3);
4552
+ s6 = peg$parseAttrChain();
4553
+ if (s6 !== peg$FAILED) {
4554
+ peg$savedPos = s0;
4555
+ s0 = peg$f57(s3, s6);
4556
+ }
4557
+ else {
4558
+ peg$currPos = s0;
4559
+ s0 = peg$FAILED;
4560
+ }
4649
4561
  }
4650
4562
  else {
4651
4563
  peg$currPos = s0;
@@ -4658,7 +4570,7 @@ function peg$parse(input, options) {
4658
4570
  }
4659
4571
  if (s0 === peg$FAILED) {
4660
4572
  s0 = peg$currPos;
4661
- s1 = peg$parseItalicTag();
4573
+ s1 = peg$parseBoldTag();
4662
4574
  if (s1 !== peg$FAILED) {
4663
4575
  if (input.charCodeAt(peg$currPos) === 32) {
4664
4576
  s2 = peg$c12;
@@ -4692,7 +4604,7 @@ function peg$parse(input, options) {
4692
4604
  if (s8 === peg$FAILED) {
4693
4605
  s8 = null;
4694
4606
  }
4695
- s9 = peg$parseItalicTag();
4607
+ s9 = peg$parseBoldTag();
4696
4608
  if (s9 !== peg$FAILED) {
4697
4609
  s8 = [s8, s9];
4698
4610
  s7 = s8;
@@ -4752,7 +4664,7 @@ function peg$parse(input, options) {
4752
4664
  if (s8 === peg$FAILED) {
4753
4665
  s8 = null;
4754
4666
  }
4755
- s9 = peg$parseItalicTag();
4667
+ s9 = peg$parseBoldTag();
4756
4668
  if (s9 !== peg$FAILED) {
4757
4669
  s8 = [s8, s9];
4758
4670
  s7 = s8;
@@ -4808,7 +4720,7 @@ function peg$parse(input, options) {
4808
4720
  if (s4 === peg$FAILED) {
4809
4721
  s4 = null;
4810
4722
  }
4811
- s5 = peg$parseItalicTag();
4723
+ s5 = peg$parseBoldTag();
4812
4724
  if (s5 !== peg$FAILED) {
4813
4725
  peg$savedPos = s0;
4814
4726
  s0 = peg$f58(s3);
@@ -4824,7 +4736,7 @@ function peg$parse(input, options) {
4824
4736
  }
4825
4737
  if (s0 === peg$FAILED) {
4826
4738
  s0 = peg$currPos;
4827
- s1 = peg$parseLightTag();
4739
+ s1 = peg$parseItalicTag();
4828
4740
  if (s1 !== peg$FAILED) {
4829
4741
  if (input.charCodeAt(peg$currPos) === 32) {
4830
4742
  s2 = peg$c12;
@@ -4858,7 +4770,7 @@ function peg$parse(input, options) {
4858
4770
  if (s8 === peg$FAILED) {
4859
4771
  s8 = null;
4860
4772
  }
4861
- s9 = peg$parseLightTag();
4773
+ s9 = peg$parseItalicTag();
4862
4774
  if (s9 !== peg$FAILED) {
4863
4775
  s8 = [s8, s9];
4864
4776
  s7 = s8;
@@ -4918,7 +4830,7 @@ function peg$parse(input, options) {
4918
4830
  if (s8 === peg$FAILED) {
4919
4831
  s8 = null;
4920
4832
  }
4921
- s9 = peg$parseLightTag();
4833
+ s9 = peg$parseItalicTag();
4922
4834
  if (s9 !== peg$FAILED) {
4923
4835
  s8 = [s8, s9];
4924
4836
  s7 = s8;
@@ -4974,7 +4886,7 @@ function peg$parse(input, options) {
4974
4886
  if (s4 === peg$FAILED) {
4975
4887
  s4 = null;
4976
4888
  }
4977
- s5 = peg$parseLightTag();
4889
+ s5 = peg$parseItalicTag();
4978
4890
  if (s5 !== peg$FAILED) {
4979
4891
  peg$savedPos = s0;
4980
4892
  s0 = peg$f59(s3);
@@ -4990,7 +4902,7 @@ function peg$parse(input, options) {
4990
4902
  }
4991
4903
  if (s0 === peg$FAILED) {
4992
4904
  s0 = peg$currPos;
4993
- s1 = peg$parseHighlightTag();
4905
+ s1 = peg$parseLightTag();
4994
4906
  if (s1 !== peg$FAILED) {
4995
4907
  if (input.charCodeAt(peg$currPos) === 32) {
4996
4908
  s2 = peg$c12;
@@ -5024,7 +4936,7 @@ function peg$parse(input, options) {
5024
4936
  if (s8 === peg$FAILED) {
5025
4937
  s8 = null;
5026
4938
  }
5027
- s9 = peg$parseHighlightTag();
4939
+ s9 = peg$parseLightTag();
5028
4940
  if (s9 !== peg$FAILED) {
5029
4941
  s8 = [s8, s9];
5030
4942
  s7 = s8;
@@ -5084,7 +4996,7 @@ function peg$parse(input, options) {
5084
4996
  if (s8 === peg$FAILED) {
5085
4997
  s8 = null;
5086
4998
  }
5087
- s9 = peg$parseHighlightTag();
4999
+ s9 = peg$parseLightTag();
5088
5000
  if (s9 !== peg$FAILED) {
5089
5001
  s8 = [s8, s9];
5090
5002
  s7 = s8;
@@ -5140,7 +5052,7 @@ function peg$parse(input, options) {
5140
5052
  if (s4 === peg$FAILED) {
5141
5053
  s4 = null;
5142
5054
  }
5143
- s5 = peg$parseHighlightTag();
5055
+ s5 = peg$parseLightTag();
5144
5056
  if (s5 !== peg$FAILED) {
5145
5057
  peg$savedPos = s0;
5146
5058
  s0 = peg$f60(s3);
@@ -5156,12 +5068,179 @@ function peg$parse(input, options) {
5156
5068
  }
5157
5069
  if (s0 === peg$FAILED) {
5158
5070
  s0 = peg$currPos;
5159
- s1 = peg$parseUrl();
5071
+ s1 = peg$parseHighlightTag();
5160
5072
  if (s1 !== peg$FAILED) {
5161
- peg$savedPos = s0;
5162
- s1 = peg$f61(s1);
5073
+ if (input.charCodeAt(peg$currPos) === 32) {
5074
+ s2 = peg$c12;
5075
+ peg$currPos++;
5076
+ }
5077
+ else {
5078
+ s2 = peg$FAILED;
5079
+ if (peg$silentFails === 0) {
5080
+ peg$fail(peg$e16);
5081
+ }
5082
+ }
5083
+ if (s2 === peg$FAILED) {
5084
+ s2 = null;
5085
+ }
5086
+ s3 = peg$currPos;
5087
+ s4 = [];
5088
+ s5 = peg$currPos;
5089
+ s6 = peg$currPos;
5090
+ peg$silentFails++;
5091
+ s7 = peg$currPos;
5092
+ if (input.charCodeAt(peg$currPos) === 32) {
5093
+ s8 = peg$c12;
5094
+ peg$currPos++;
5095
+ }
5096
+ else {
5097
+ s8 = peg$FAILED;
5098
+ if (peg$silentFails === 0) {
5099
+ peg$fail(peg$e16);
5100
+ }
5101
+ }
5102
+ if (s8 === peg$FAILED) {
5103
+ s8 = null;
5104
+ }
5105
+ s9 = peg$parseHighlightTag();
5106
+ if (s9 !== peg$FAILED) {
5107
+ s8 = [s8, s9];
5108
+ s7 = s8;
5109
+ }
5110
+ else {
5111
+ peg$currPos = s7;
5112
+ s7 = peg$FAILED;
5113
+ }
5114
+ peg$silentFails--;
5115
+ if (s7 === peg$FAILED) {
5116
+ s6 = undefined;
5117
+ }
5118
+ else {
5119
+ peg$currPos = s6;
5120
+ s6 = peg$FAILED;
5121
+ }
5122
+ if (s6 !== peg$FAILED) {
5123
+ if (input.length > peg$currPos) {
5124
+ s7 = input.charAt(peg$currPos);
5125
+ peg$currPos++;
5126
+ }
5127
+ else {
5128
+ s7 = peg$FAILED;
5129
+ if (peg$silentFails === 0) {
5130
+ peg$fail(peg$e0);
5131
+ }
5132
+ }
5133
+ if (s7 !== peg$FAILED) {
5134
+ s6 = [s6, s7];
5135
+ s5 = s6;
5136
+ }
5137
+ else {
5138
+ peg$currPos = s5;
5139
+ s5 = peg$FAILED;
5140
+ }
5141
+ }
5142
+ else {
5143
+ peg$currPos = s5;
5144
+ s5 = peg$FAILED;
5145
+ }
5146
+ while (s5 !== peg$FAILED) {
5147
+ s4.push(s5);
5148
+ s5 = peg$currPos;
5149
+ s6 = peg$currPos;
5150
+ peg$silentFails++;
5151
+ s7 = peg$currPos;
5152
+ if (input.charCodeAt(peg$currPos) === 32) {
5153
+ s8 = peg$c12;
5154
+ peg$currPos++;
5155
+ }
5156
+ else {
5157
+ s8 = peg$FAILED;
5158
+ if (peg$silentFails === 0) {
5159
+ peg$fail(peg$e16);
5160
+ }
5161
+ }
5162
+ if (s8 === peg$FAILED) {
5163
+ s8 = null;
5164
+ }
5165
+ s9 = peg$parseHighlightTag();
5166
+ if (s9 !== peg$FAILED) {
5167
+ s8 = [s8, s9];
5168
+ s7 = s8;
5169
+ }
5170
+ else {
5171
+ peg$currPos = s7;
5172
+ s7 = peg$FAILED;
5173
+ }
5174
+ peg$silentFails--;
5175
+ if (s7 === peg$FAILED) {
5176
+ s6 = undefined;
5177
+ }
5178
+ else {
5179
+ peg$currPos = s6;
5180
+ s6 = peg$FAILED;
5181
+ }
5182
+ if (s6 !== peg$FAILED) {
5183
+ if (input.length > peg$currPos) {
5184
+ s7 = input.charAt(peg$currPos);
5185
+ peg$currPos++;
5186
+ }
5187
+ else {
5188
+ s7 = peg$FAILED;
5189
+ if (peg$silentFails === 0) {
5190
+ peg$fail(peg$e0);
5191
+ }
5192
+ }
5193
+ if (s7 !== peg$FAILED) {
5194
+ s6 = [s6, s7];
5195
+ s5 = s6;
5196
+ }
5197
+ else {
5198
+ peg$currPos = s5;
5199
+ s5 = peg$FAILED;
5200
+ }
5201
+ }
5202
+ else {
5203
+ peg$currPos = s5;
5204
+ s5 = peg$FAILED;
5205
+ }
5206
+ }
5207
+ s3 = input.substring(s3, peg$currPos);
5208
+ if (input.charCodeAt(peg$currPos) === 32) {
5209
+ s4 = peg$c12;
5210
+ peg$currPos++;
5211
+ }
5212
+ else {
5213
+ s4 = peg$FAILED;
5214
+ if (peg$silentFails === 0) {
5215
+ peg$fail(peg$e16);
5216
+ }
5217
+ }
5218
+ if (s4 === peg$FAILED) {
5219
+ s4 = null;
5220
+ }
5221
+ s5 = peg$parseHighlightTag();
5222
+ if (s5 !== peg$FAILED) {
5223
+ peg$savedPos = s0;
5224
+ s0 = peg$f61(s3);
5225
+ }
5226
+ else {
5227
+ peg$currPos = s0;
5228
+ s0 = peg$FAILED;
5229
+ }
5230
+ }
5231
+ else {
5232
+ peg$currPos = s0;
5233
+ s0 = peg$FAILED;
5234
+ }
5235
+ if (s0 === peg$FAILED) {
5236
+ s0 = peg$currPos;
5237
+ s1 = peg$parseUrl();
5238
+ if (s1 !== peg$FAILED) {
5239
+ peg$savedPos = s0;
5240
+ s1 = peg$f62(s1);
5241
+ }
5242
+ s0 = s1;
5163
5243
  }
5164
- s0 = s1;
5165
5244
  }
5166
5245
  }
5167
5246
  }
@@ -5209,14 +5288,14 @@ function peg$parse(input, options) {
5209
5288
  if (s0 === peg$FAILED) {
5210
5289
  s0 = peg$currPos;
5211
5290
  s1 = peg$currPos;
5212
- s2 = peg$parseInlineLaTexTag();
5291
+ s2 = peg$parseLightTag();
5213
5292
  if (s2 !== peg$FAILED) {
5214
5293
  s3 = [];
5215
- s4 = peg$parseInlineLaTexHalfTag();
5294
+ s4 = peg$parseLightHalfTag();
5216
5295
  if (s4 !== peg$FAILED) {
5217
5296
  while (s4 !== peg$FAILED) {
5218
5297
  s3.push(s4);
5219
- s4 = peg$parseInlineLaTexHalfTag();
5298
+ s4 = peg$parseLightHalfTag();
5220
5299
  }
5221
5300
  }
5222
5301
  else {
@@ -5244,14 +5323,14 @@ function peg$parse(input, options) {
5244
5323
  if (s0 === peg$FAILED) {
5245
5324
  s0 = peg$currPos;
5246
5325
  s1 = peg$currPos;
5247
- s2 = peg$parseLightTag();
5326
+ s2 = peg$parseHighlightTag();
5248
5327
  if (s2 !== peg$FAILED) {
5249
5328
  s3 = [];
5250
- s4 = peg$parseLightHalfTag();
5329
+ s4 = peg$parseHighlightHalfTag();
5251
5330
  if (s4 !== peg$FAILED) {
5252
5331
  while (s4 !== peg$FAILED) {
5253
5332
  s3.push(s4);
5254
- s4 = peg$parseLightHalfTag();
5333
+ s4 = peg$parseHighlightHalfTag();
5255
5334
  }
5256
5335
  }
5257
5336
  else {
@@ -5276,42 +5355,6 @@ function peg$parse(input, options) {
5276
5355
  else {
5277
5356
  s0 = s1;
5278
5357
  }
5279
- if (s0 === peg$FAILED) {
5280
- s0 = peg$currPos;
5281
- s1 = peg$currPos;
5282
- s2 = peg$parseHighlightTag();
5283
- if (s2 !== peg$FAILED) {
5284
- s3 = [];
5285
- s4 = peg$parseHighlightHalfTag();
5286
- if (s4 !== peg$FAILED) {
5287
- while (s4 !== peg$FAILED) {
5288
- s3.push(s4);
5289
- s4 = peg$parseHighlightHalfTag();
5290
- }
5291
- }
5292
- else {
5293
- s3 = peg$FAILED;
5294
- }
5295
- if (s3 !== peg$FAILED) {
5296
- s2 = [s2, s3];
5297
- s1 = s2;
5298
- }
5299
- else {
5300
- peg$currPos = s1;
5301
- s1 = peg$FAILED;
5302
- }
5303
- }
5304
- else {
5305
- peg$currPos = s1;
5306
- s1 = peg$FAILED;
5307
- }
5308
- if (s1 !== peg$FAILED) {
5309
- s0 = input.substring(s0, peg$currPos);
5310
- }
5311
- else {
5312
- s0 = s1;
5313
- }
5314
- }
5315
5358
  }
5316
5359
  }
5317
5360
  return s0;
@@ -5343,7 +5386,7 @@ function peg$parse(input, options) {
5343
5386
  }
5344
5387
  if (s2 !== peg$FAILED) {
5345
5388
  peg$savedPos = s0;
5346
- s0 = peg$f62(s2);
5389
+ s0 = peg$f63(s2);
5347
5390
  }
5348
5391
  else {
5349
5392
  peg$currPos = s0;
@@ -5433,7 +5476,7 @@ function peg$parse(input, options) {
5433
5476
  s3 = peg$parseBlockTag();
5434
5477
  if (s3 !== peg$FAILED) {
5435
5478
  peg$savedPos = s0;
5436
- s0 = peg$f63(s2);
5479
+ s0 = peg$f64(s2);
5437
5480
  }
5438
5481
  else {
5439
5482
  peg$currPos = s0;
@@ -5593,7 +5636,7 @@ function peg$parse(input, options) {
5593
5636
  s6 = peg$parseBlockTag();
5594
5637
  if (s6 !== peg$FAILED) {
5595
5638
  peg$savedPos = s0;
5596
- s0 = peg$f64(s2, s5);
5639
+ s0 = peg$f65(s2, s5);
5597
5640
  }
5598
5641
  else {
5599
5642
  peg$currPos = s0;
@@ -5690,7 +5733,7 @@ function peg$parse(input, options) {
5690
5733
  s3 = peg$parseBlockTag();
5691
5734
  if (s3 !== peg$FAILED) {
5692
5735
  peg$savedPos = s0;
5693
- s0 = peg$f65(s2);
5736
+ s0 = peg$f66(s2);
5694
5737
  }
5695
5738
  else {
5696
5739
  peg$currPos = s0;
@@ -5777,7 +5820,7 @@ function peg$parse(input, options) {
5777
5820
  s3 = peg$parseBlockTag();
5778
5821
  if (s3 !== peg$FAILED) {
5779
5822
  peg$savedPos = s0;
5780
- s0 = peg$f66(s2);
5823
+ s0 = peg$f67(s2);
5781
5824
  }
5782
5825
  else {
5783
5826
  peg$currPos = s0;
@@ -5864,7 +5907,7 @@ function peg$parse(input, options) {
5864
5907
  s3 = peg$parseBlockTag();
5865
5908
  if (s3 !== peg$FAILED) {
5866
5909
  peg$savedPos = s0;
5867
- s0 = peg$f67(s2);
5910
+ s0 = peg$f68(s2);
5868
5911
  }
5869
5912
  else {
5870
5913
  peg$currPos = s0;
@@ -5951,7 +5994,7 @@ function peg$parse(input, options) {
5951
5994
  s3 = peg$parseBlockTag();
5952
5995
  if (s3 !== peg$FAILED) {
5953
5996
  peg$savedPos = s0;
5954
- s0 = peg$f68(s2);
5997
+ s0 = peg$f69(s2);
5955
5998
  }
5956
5999
  else {
5957
6000
  peg$currPos = s0;
@@ -6038,7 +6081,7 @@ function peg$parse(input, options) {
6038
6081
  s3 = peg$parseBlockTag();
6039
6082
  if (s3 !== peg$FAILED) {
6040
6083
  peg$savedPos = s0;
6041
- s0 = peg$f69(s2);
6084
+ s0 = peg$f70(s2);
6042
6085
  }
6043
6086
  else {
6044
6087
  peg$currPos = s0;
@@ -6065,7 +6108,7 @@ function peg$parse(input, options) {
6065
6108
  s2 = peg$parseBlockTag();
6066
6109
  if (s2 !== peg$FAILED) {
6067
6110
  peg$savedPos = s0;
6068
- s0 = peg$f70();
6111
+ s0 = peg$f71();
6069
6112
  }
6070
6113
  else {
6071
6114
  peg$currPos = s0;
@@ -6152,7 +6195,7 @@ function peg$parse(input, options) {
6152
6195
  s3 = peg$parseBlockTag();
6153
6196
  if (s3 !== peg$FAILED) {
6154
6197
  peg$savedPos = s0;
6155
- s0 = peg$f71(s2);
6198
+ s0 = peg$f72(s2);
6156
6199
  }
6157
6200
  else {
6158
6201
  peg$currPos = s0;
@@ -6179,7 +6222,7 @@ function peg$parse(input, options) {
6179
6222
  s2 = peg$parseBlockTag();
6180
6223
  if (s2 !== peg$FAILED) {
6181
6224
  peg$savedPos = s0;
6182
- s0 = peg$f72();
6225
+ s0 = peg$f73();
6183
6226
  }
6184
6227
  else {
6185
6228
  peg$currPos = s0;
@@ -6266,7 +6309,7 @@ function peg$parse(input, options) {
6266
6309
  s3 = peg$parseBlockTag();
6267
6310
  if (s3 !== peg$FAILED) {
6268
6311
  peg$savedPos = s0;
6269
- s0 = peg$f73(s2);
6312
+ s0 = peg$f74(s2);
6270
6313
  }
6271
6314
  else {
6272
6315
  peg$currPos = s0;
@@ -6380,7 +6423,7 @@ function peg$parse(input, options) {
6380
6423
  s3 = peg$parseBlockTag();
6381
6424
  if (s3 !== peg$FAILED) {
6382
6425
  peg$savedPos = s0;
6383
- s0 = peg$f74(s2);
6426
+ s0 = peg$f75(s2);
6384
6427
  }
6385
6428
  else {
6386
6429
  peg$currPos = s0;
@@ -6414,7 +6457,7 @@ function peg$parse(input, options) {
6414
6457
  s3 = peg$parseBlockTag();
6415
6458
  if (s3 !== peg$FAILED) {
6416
6459
  peg$savedPos = s0;
6417
- s0 = peg$f75(s2);
6460
+ s0 = peg$f76(s2);
6418
6461
  }
6419
6462
  else {
6420
6463
  peg$currPos = s0;
@@ -6437,7 +6480,7 @@ function peg$parse(input, options) {
6437
6480
  s2 = peg$parseBlockTag();
6438
6481
  if (s2 !== peg$FAILED) {
6439
6482
  peg$savedPos = s0;
6440
- s0 = peg$f76(s1);
6483
+ s0 = peg$f77(s1);
6441
6484
  }
6442
6485
  else {
6443
6486
  peg$currPos = s0;
@@ -6524,7 +6567,7 @@ function peg$parse(input, options) {
6524
6567
  s3 = peg$parseBlockTag();
6525
6568
  if (s3 !== peg$FAILED) {
6526
6569
  peg$savedPos = s0;
6527
- s0 = peg$f77(s2);
6570
+ s0 = peg$f78(s2);
6528
6571
  }
6529
6572
  else {
6530
6573
  peg$currPos = s0;
@@ -7041,7 +7084,7 @@ function peg$parse(input, options) {
7041
7084
  s0 = peg$currPos;
7042
7085
  s1 = peg$parsebitmarkMinusMinusString();
7043
7086
  peg$savedPos = s0;
7044
- s1 = peg$f78(s1);
7087
+ s1 = peg$f79(s1);
7045
7088
  s0 = s1;
7046
7089
  peg$silentFails--;
7047
7090
  s1 = peg$FAILED;
@@ -7071,7 +7114,7 @@ function peg$parse(input, options) {
7071
7114
  }
7072
7115
  }
7073
7116
  peg$savedPos = s0;
7074
- s0 = peg$f79(s1, s2);
7117
+ s0 = peg$f80(s1, s2);
7075
7118
  peg$silentFails--;
7076
7119
  s1 = peg$FAILED;
7077
7120
  if (peg$silentFails === 0) {
@@ -7085,7 +7128,7 @@ function peg$parse(input, options) {
7085
7128
  s1 = peg$parseNL();
7086
7129
  if (s1 !== peg$FAILED) {
7087
7130
  peg$savedPos = s0;
7088
- s1 = peg$f80(s1);
7131
+ s1 = peg$f81();
7089
7132
  }
7090
7133
  s0 = s1;
7091
7134
  if (s0 === peg$FAILED) {
@@ -7228,7 +7271,7 @@ function peg$parse(input, options) {
7228
7271
  }
7229
7272
  if (s1 !== peg$FAILED) {
7230
7273
  peg$savedPos = s0;
7231
- s1 = peg$f81(s1);
7274
+ s1 = peg$f82(s1);
7232
7275
  }
7233
7276
  s0 = s1;
7234
7277
  }
@@ -7447,7 +7490,7 @@ function peg$parse(input, options) {
7447
7490
  s3 = peg$parseBodyBitCloseTag();
7448
7491
  if (s3 !== peg$FAILED) {
7449
7492
  peg$savedPos = s0;
7450
- s0 = peg$f82(s2);
7493
+ s0 = peg$f83(s2);
7451
7494
  }
7452
7495
  else {
7453
7496
  peg$currPos = s0;
@@ -7618,7 +7661,7 @@ function peg$parse(input, options) {
7618
7661
  s5 = peg$parseBoldTag();
7619
7662
  if (s5 !== peg$FAILED) {
7620
7663
  peg$savedPos = s0;
7621
- s0 = peg$f83(s3);
7664
+ s0 = peg$f84(s3);
7622
7665
  }
7623
7666
  else {
7624
7667
  peg$currPos = s0;
@@ -7784,7 +7827,7 @@ function peg$parse(input, options) {
7784
7827
  s5 = peg$parseItalicTag();
7785
7828
  if (s5 !== peg$FAILED) {
7786
7829
  peg$savedPos = s0;
7787
- s0 = peg$f84(s3);
7830
+ s0 = peg$f85(s3);
7788
7831
  }
7789
7832
  else {
7790
7833
  peg$currPos = s0;
@@ -7950,7 +7993,7 @@ function peg$parse(input, options) {
7950
7993
  s5 = peg$parseLightTag();
7951
7994
  if (s5 !== peg$FAILED) {
7952
7995
  peg$savedPos = s0;
7953
- s0 = peg$f85(s3);
7996
+ s0 = peg$f86(s3);
7954
7997
  }
7955
7998
  else {
7956
7999
  peg$currPos = s0;
@@ -8116,7 +8159,7 @@ function peg$parse(input, options) {
8116
8159
  s5 = peg$parseHighlightTag();
8117
8160
  if (s5 !== peg$FAILED) {
8118
8161
  peg$savedPos = s0;
8119
- s0 = peg$f86(s3);
8162
+ s0 = peg$f87(s3);
8120
8163
  }
8121
8164
  else {
8122
8165
  peg$currPos = s0;
@@ -8676,7 +8719,7 @@ function peg$parse(input, options) {
8676
8719
  }
8677
8720
  s2 = input.substring(s2, peg$currPos);
8678
8721
  peg$savedPos = s0;
8679
- s0 = peg$f87(s1, s2);
8722
+ s0 = peg$f88(s1, s2);
8680
8723
  }
8681
8724
  else {
8682
8725
  peg$currPos = s0;