@asciidoctor/core 2.0.2 → 2.0.3

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.
@@ -21505,7 +21505,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21505
21505
  }
21506
21506
  var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $truthy = Opal.truthy, $gvars = Opal.gvars, $send = Opal.send, $hash2 = Opal.hash2;
21507
21507
 
21508
- Opal.add_stubs(['$require', '$include?', '$include', '$==', '$===', '$path', '$message', '$raise', '$warn', '$logger', '$chomp', '$empty?', '$slice', '$unpack', '$[]', '$byteslice', '$bytesize', '$[]=', '$-', '$map', '$rstrip', '$encode', '$encoding', '$nil_or_empty?', '$!=', '$tap', '$each_line', '$<<', '$match?', '$=~', '$gsub', '$rindex', '$index', '$basename', '$extname', '$!', '$length', '$directory?', '$dirname', '$mkdir_p', '$mkdir', '$join', '$divmod', '$*', '$+', '$to_i', '$to_s', '$chr', '$ord', '$class_for_name', '$const_get']);
21508
+ Opal.add_stubs(['$module_function', '$require', '$include?', '$include', '$==', '$===', '$path', '$message', '$raise', '$warn', '$logger', '$chomp', '$empty?', '$slice', '$unpack', '$[]', '$byteslice', '$bytesize', '$[]=', '$-', '$map', '$rstrip', '$encode', '$encoding', '$nil_or_empty?', '$!=', '$tap', '$each_line', '$<<', '$match?', '$gsub', '$rindex', '$index', '$basename', '$extname', '$!', '$length', '$directory?', '$dirname', '$mkdir_p', '$mkdir', '$private_constant', '$join', '$divmod', '$*', '$+', '$to_i', '$to_s', '$chr', '$ord', '$class_for_name', '$const_get']);
21509
21509
  return (function($base, $parent_nesting) {
21510
21510
  var self = $module($base, 'Asciidoctor');
21511
21511
 
@@ -21514,10 +21514,12 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21514
21514
  (function($base, $parent_nesting) {
21515
21515
  var self = $module($base, 'Helpers');
21516
21516
 
21517
- var $nesting = [self].concat($parent_nesting), $Helpers_require_library$1, $Helpers_prepare_source_array$2, $Helpers_prepare_source_string$7, $Helpers_uriish$ques$10, $Helpers_uri_prefix$11, $Helpers_encode_uri_component$12, $Helpers_encode_uri$13, $Helpers_rootname$14, $Helpers_basename$15, $Helpers_extname$ques$16, $Helpers_extname$17, $Helpers_extname$18, $Helpers_mkdir_p$19, $Helpers_int_to_roman$20, $Helpers_nextval$22, $Helpers_resolve_class$23, $Helpers_class_for_name$24;
21517
+ var $nesting = [self].concat($parent_nesting), $Helpers_require_library$1, $Helpers_prepare_source_array$2, $Helpers_prepare_source_string$7, $Helpers_uriish$ques$10, $Helpers_encode_uri_component$11, $Helpers_encode_spaces_in_uri$12, $Helpers_rootname$13, $Helpers_basename$14, $Helpers_extname$ques$15, $Helpers_extname$16, $Helpers_extname$17, $Helpers_mkdir_p$18, $Helpers_int_to_roman$19, $Helpers_nextval$21, $Helpers_resolve_class$22, $Helpers_class_for_name$23;
21518
21518
 
21519
21519
 
21520
- Opal.defs(self, '$require_library', $Helpers_require_library$1 = function $$require_library(name, gem_name, on_failure) {
21520
+ self.$module_function();
21521
+
21522
+ Opal.def(self, '$require_library', $Helpers_require_library$1 = function $$require_library(name, gem_name, on_failure) {
21521
21523
  var self = this, $case = nil, details = nil;
21522
21524
  if ($gvars["!"] == null) $gvars["!"] = nil;
21523
21525
 
@@ -21577,7 +21579,8 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21577
21579
  } else { throw $err; }
21578
21580
  };
21579
21581
  }, $Helpers_require_library$1.$$arity = -2);
21580
- Opal.defs(self, '$prepare_source_array', $Helpers_prepare_source_array$2 = function $$prepare_source_array(data) {
21582
+
21583
+ Opal.def(self, '$prepare_source_array', $Helpers_prepare_source_array$2 = function $$prepare_source_array(data) {
21581
21584
  var $$3, $$4, $$5, $$6, self = this, leading_2_bytes = nil, leading_bytes = nil, first = nil, $writer = nil;
21582
21585
 
21583
21586
 
@@ -21636,7 +21639,8 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21636
21639
  return line.$encode($$($nesting, 'UTF_8')).$rstrip();}, $$6.$$s = self, $$6.$$arity = 1, $$6))
21637
21640
  };
21638
21641
  }, $Helpers_prepare_source_array$2.$$arity = 1);
21639
- Opal.defs(self, '$prepare_source_string', $Helpers_prepare_source_string$7 = function $$prepare_source_string(data) {
21642
+
21643
+ Opal.def(self, '$prepare_source_string', $Helpers_prepare_source_string$7 = function $$prepare_source_string(data) {
21640
21644
  var $$8, self = this, leading_2_bytes = nil, leading_bytes = nil;
21641
21645
 
21642
21646
 
@@ -21671,22 +21675,15 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21671
21675
  };
21672
21676
  return lines['$<<'](line.$rstrip());}, $$9.$$s = self, $$9.$$arity = 1, $$9));}, $$8.$$s = self, $$8.$$arity = 1, $$8));
21673
21677
  }, $Helpers_prepare_source_string$7.$$arity = 1);
21674
- Opal.defs(self, '$uriish?', $Helpers_uriish$ques$10 = function(str) {
21678
+
21679
+ Opal.def(self, '$uriish?', $Helpers_uriish$ques$10 = function(str) {
21675
21680
  var $a, self = this;
21676
21681
 
21677
21682
  return ($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$match?'](str) : $a)
21678
21683
  }, $Helpers_uriish$ques$10.$$arity = 1);
21679
- Opal.defs(self, '$uri_prefix', $Helpers_uri_prefix$11 = function $$uri_prefix(str) {
21680
- var $a, self = this;
21681
-
21682
- if ($truthy(($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$=~'](str) : $a))) {
21683
- return (($a = $gvars['~']) === nil ? nil : $a['$[]'](0))
21684
- } else {
21685
- return nil
21686
- }
21687
- }, $Helpers_uri_prefix$11.$$arity = 1);
21688
21684
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
21689
- Opal.defs(self, '$encode_uri_component', $Helpers_encode_uri_component$12 = function $$encode_uri_component(str) {
21685
+
21686
+ Opal.def(self, '$encode_uri_component', $Helpers_encode_uri_component$11 = function $$encode_uri_component(str) {
21690
21687
  var self = this;
21691
21688
 
21692
21689
 
@@ -21694,11 +21691,12 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21694
21691
  return m === '%20' ? '+' : '%' + m.charCodeAt(0).toString(16)
21695
21692
  })
21696
21693
 
21697
- }, $Helpers_encode_uri_component$12.$$arity = 1)
21694
+ }, $Helpers_encode_uri_component$11.$$arity = 1)
21698
21695
  } else {
21699
21696
  nil
21700
21697
  };
21701
- Opal.defs(self, '$encode_uri', $Helpers_encode_uri$13 = function $$encode_uri(str) {
21698
+
21699
+ Opal.def(self, '$encode_spaces_in_uri', $Helpers_encode_spaces_in_uri$12 = function $$encode_spaces_in_uri(str) {
21702
21700
  var self = this;
21703
21701
 
21704
21702
  if ($truthy(str['$include?'](" "))) {
@@ -21707,8 +21705,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21707
21705
  } else {
21708
21706
  return str
21709
21707
  }
21710
- }, $Helpers_encode_uri$13.$$arity = 1);
21711
- Opal.defs(self, '$rootname', $Helpers_rootname$14 = function $$rootname(filename) {
21708
+ }, $Helpers_encode_spaces_in_uri$12.$$arity = 1);
21709
+
21710
+ Opal.def(self, '$rootname', $Helpers_rootname$13 = function $$rootname(filename) {
21712
21711
  var self = this, last_dot_idx = nil;
21713
21712
 
21714
21713
  if ($truthy((last_dot_idx = filename.$rindex(".")))) {
@@ -21721,8 +21720,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21721
21720
  } else {
21722
21721
  return filename
21723
21722
  }
21724
- }, $Helpers_rootname$14.$$arity = 1);
21725
- Opal.defs(self, '$basename', $Helpers_basename$15 = function $$basename(filename, drop_ext) {
21723
+ }, $Helpers_rootname$13.$$arity = 1);
21724
+
21725
+ Opal.def(self, '$basename', $Helpers_basename$14 = function $$basename(filename, drop_ext) {
21726
21726
  var self = this;
21727
21727
 
21728
21728
 
@@ -21740,14 +21740,16 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21740
21740
  } else {
21741
21741
  return $$$('::', 'File').$basename(filename)
21742
21742
  };
21743
- }, $Helpers_basename$15.$$arity = -2);
21744
- Opal.defs(self, '$extname?', $Helpers_extname$ques$16 = function(path) {
21743
+ }, $Helpers_basename$14.$$arity = -2);
21744
+
21745
+ Opal.def(self, '$extname?', $Helpers_extname$ques$15 = function(path) {
21745
21746
  var $a, self = this, last_dot_idx = nil;
21746
21747
 
21747
21748
  return ($truthy($a = (last_dot_idx = path.$rindex("."))) ? path.$index("/", last_dot_idx)['$!']() : $a)
21748
- }, $Helpers_extname$ques$16.$$arity = 1);
21749
+ }, $Helpers_extname$ques$15.$$arity = 1);
21749
21750
  if ($truthy($$$($$$('::', 'File'), 'ALT_SEPARATOR'))) {
21750
- Opal.defs(self, '$extname', $Helpers_extname$17 = function $$extname(path, fallback) {
21751
+
21752
+ Opal.def(self, '$extname', $Helpers_extname$16 = function $$extname(path, fallback) {
21751
21753
  var $a, self = this, last_dot_idx = nil;
21752
21754
 
21753
21755
 
@@ -21765,9 +21767,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21765
21767
  } else {
21766
21768
  return fallback
21767
21769
  };
21768
- }, $Helpers_extname$17.$$arity = -2)
21770
+ }, $Helpers_extname$16.$$arity = -2)
21769
21771
  } else {
21770
- Opal.defs(self, '$extname', $Helpers_extname$18 = function $$extname(path, fallback) {
21772
+
21773
+ Opal.def(self, '$extname', $Helpers_extname$17 = function $$extname(path, fallback) {
21771
21774
  var self = this, last_dot_idx = nil;
21772
21775
 
21773
21776
 
@@ -21785,9 +21788,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21785
21788
  } else {
21786
21789
  return fallback
21787
21790
  };
21788
- }, $Helpers_extname$18.$$arity = -2)
21791
+ }, $Helpers_extname$17.$$arity = -2)
21789
21792
  };
21790
- Opal.defs(self, '$mkdir_p', $Helpers_mkdir_p$19 = function $$mkdir_p(dir) {
21793
+
21794
+ Opal.def(self, '$mkdir_p', $Helpers_mkdir_p$18 = function $$mkdir_p(dir) {
21791
21795
  var self = this, parent_dir = nil;
21792
21796
 
21793
21797
  if ($truthy($$$('::', 'File')['$directory?'](dir))) {
@@ -21813,12 +21817,14 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21813
21817
  } else { throw $err; }
21814
21818
  };;
21815
21819
  }
21816
- }, $Helpers_mkdir_p$19.$$arity = 1);
21820
+ }, $Helpers_mkdir_p$18.$$arity = 1);
21817
21821
  Opal.const_set($nesting[0], 'ROMAN_NUMERALS', $hash2(["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"], {"M": 1000, "CM": 900, "D": 500, "CD": 400, "C": 100, "XC": 90, "L": 50, "XL": 40, "X": 10, "IX": 9, "V": 5, "IV": 4, "I": 1}));
21818
- Opal.defs(self, '$int_to_roman', $Helpers_int_to_roman$20 = function $$int_to_roman(val) {
21819
- var $$21, self = this;
21822
+ self.$private_constant("ROMAN_NUMERALS");
21823
+
21824
+ Opal.def(self, '$int_to_roman', $Helpers_int_to_roman$19 = function $$int_to_roman(val) {
21825
+ var $$20, self = this;
21820
21826
 
21821
- return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$21 = function(l, i){var self = $$21.$$s || this, $a, $b, repeat = nil;
21827
+ return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$20 = function(l, i){var self = $$20.$$s || this, $a, $b, repeat = nil;
21822
21828
 
21823
21829
 
21824
21830
 
@@ -21830,9 +21836,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21830
21836
  i = nil;
21831
21837
  };
21832
21838
  $b = val.$divmod(i), $a = Opal.to_ary($b), (repeat = ($a[0] == null ? nil : $a[0])), (val = ($a[1] == null ? nil : $a[1])), $b;
21833
- return $rb_times(l, repeat);}, $$21.$$s = self, $$21.$$arity = 2, $$21)).$join()
21834
- }, $Helpers_int_to_roman$20.$$arity = 1);
21835
- Opal.defs(self, '$nextval', $Helpers_nextval$22 = function $$nextval(current) {
21839
+ return $rb_times(l, repeat);}, $$20.$$s = self, $$20.$$arity = 2, $$20)).$join()
21840
+ }, $Helpers_int_to_roman$19.$$arity = 1);
21841
+
21842
+ Opal.def(self, '$nextval', $Helpers_nextval$21 = function $$nextval(current) {
21836
21843
  var self = this, intval = nil;
21837
21844
 
21838
21845
  if ($truthy($$$('::', 'Integer')['$==='](current))) {
@@ -21846,8 +21853,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21846
21853
  return $rb_plus(intval, 1)
21847
21854
  };
21848
21855
  }
21849
- }, $Helpers_nextval$22.$$arity = 1);
21850
- Opal.defs(self, '$resolve_class', $Helpers_resolve_class$23 = function $$resolve_class(object) {
21856
+ }, $Helpers_nextval$21.$$arity = 1);
21857
+
21858
+ Opal.def(self, '$resolve_class', $Helpers_resolve_class$22 = function $$resolve_class(object) {
21851
21859
  var self = this;
21852
21860
 
21853
21861
  if ($truthy($$$('::', 'Class')['$==='](object))) {
@@ -21861,8 +21869,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21861
21869
  return nil
21862
21870
  };
21863
21871
  }
21864
- }, $Helpers_resolve_class$23.$$arity = 1);
21865
- Opal.defs(self, '$class_for_name', $Helpers_class_for_name$24 = function $$class_for_name(qualified_name) {
21872
+ }, $Helpers_resolve_class$22.$$arity = 1);
21873
+
21874
+ Opal.def(self, '$class_for_name', $Helpers_class_for_name$23 = function $$class_for_name(qualified_name) {
21866
21875
  var self = this, resolved = nil;
21867
21876
 
21868
21877
  try {
@@ -21879,7 +21888,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21879
21888
  } finally { Opal.pop_exception() }
21880
21889
  } else { throw $err; }
21881
21890
  }
21882
- }, $Helpers_class_for_name$24.$$arity = 1);
21891
+ }, $Helpers_class_for_name$23.$$arity = 1);
21883
21892
  })($nesting[0], $nesting)
21884
21893
  })($nesting[0], $nesting)
21885
21894
  };
@@ -22436,6 +22445,148 @@ Opal.modules["asciidoctor/logging"] = function(Opal) {
22436
22445
  })($nesting[0], $nesting);
22437
22446
  };
22438
22447
 
22448
+ /* Generated by Opal 0.11.99.dev */
22449
+ Opal.modules["asciidoctor/rx"] = function(Opal) {
22450
+ function $rb_minus(lhs, rhs) {
22451
+ return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);
22452
+ }
22453
+ var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $hash2 = Opal.hash2, $send = Opal.send, $truthy = Opal.truthy, $hash = Opal.hash;
22454
+
22455
+ Opal.add_stubs(['$==', '$join', '$to_a', '$new', '$empty?', '$escape', '$[]=', '$-']);
22456
+ return (function($base, $parent_nesting) {
22457
+ var self = $module($base, 'Asciidoctor');
22458
+
22459
+ var $nesting = [self].concat($parent_nesting), $Asciidoctor$1, $Asciidoctor$2;
22460
+
22461
+
22462
+ (function($base, $parent_nesting) {
22463
+ var self = $module($base, 'Rx');
22464
+
22465
+ var $nesting = [self].concat($parent_nesting);
22466
+
22467
+ nil
22468
+ })($nesting[0], $nesting);
22469
+ Opal.const_set($nesting[0], 'AuthorInfoLineRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*)(?: +(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*))?(?: +(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*))?(?: +<([^>]+)>)?$"));
22470
+ Opal.const_set($nesting[0], 'AuthorDelimiterRx', /;(?: |$)/);
22471
+ Opal.const_set($nesting[0], 'RevisionInfoLineRx', new RegExp("" + "^(?:[^\\d{]*(" + ($$($nesting, 'CC_ANY')) + "*?),)? *(?!:)(" + ($$($nesting, 'CC_ANY')) + "*?)(?: *(?!^),?: *(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
22472
+ Opal.const_set($nesting[0], 'ManpageTitleVolnumRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *\\( *(" + ($$($nesting, 'CC_ANY')) + "+?) *\\)$"));
22473
+ Opal.const_set($nesting[0], 'ManpageNamePurposeRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) +- +(" + ($$($nesting, 'CC_ANY')) + "+)$"));
22474
+ Opal.const_set($nesting[0], 'ConditionalDirectiveRx', new RegExp("" + "^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22475
+ Opal.const_set($nesting[0], 'EvalExpressionRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *([=!><]=|[><]) *(" + ($$($nesting, 'CC_ANY')) + "+)$"));
22476
+ Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\[][^\\[]*)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22477
+ Opal.const_set($nesting[0], 'TagDirectiveRx', /\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m);
22478
+ Opal.const_set($nesting[0], 'AttributeEntryRx', new RegExp("" + "^:(!?" + ($$($nesting, 'CG_WORD')) + "[^:]*):(?:[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
22479
+ Opal.const_set($nesting[0], 'InvalidAttributeNameCharsRx', new RegExp("" + "[^" + ($$($nesting, 'CC_WORD')) + "-]"));
22480
+ if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
22481
+ Opal.const_set($nesting[0], 'AttributeEntryPassMacroRx', new RegExp("" + "^pass:([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*)\\]$"))
22482
+ } else {
22483
+ nil
22484
+ };
22485
+ Opal.const_set($nesting[0], 'AttributeReferenceRx', new RegExp("" + "(\\\\)?\\{(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*|(set|counter2?):" + ($$($nesting, 'CC_ANY')) + "+?)(\\\\)?\\}"));
22486
+ Opal.const_set($nesting[0], 'BlockAnchorRx', new RegExp("" + "^\\[\\[(?:|([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?)\\]\\]$"));
22487
+ Opal.const_set($nesting[0], 'BlockAttributeListRx', new RegExp("" + "^\\[(|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*)\\]$"));
22488
+ Opal.const_set($nesting[0], 'BlockAttributeLineRx', new RegExp("" + "^\\[(?:|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*|\\[(?:|[" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*(?:, *" + ($$($nesting, 'CC_ANY')) + "+)?)\\])\\]$"));
22489
+ Opal.const_set($nesting[0], 'BlockTitleRx', new RegExp("" + "^\\.(\\.?[^ \\t.]" + ($$($nesting, 'CC_ANY')) + "*)$"));
22490
+ Opal.const_set($nesting[0], 'AdmonitionParagraphRx', new RegExp("" + "^(" + ($$($nesting, 'ADMONITION_STYLES').$to_a().$join("|")) + "):[ \\t]+"));
22491
+ Opal.const_set($nesting[0], 'LiteralParagraphRx', new RegExp("" + "^([ \\t]+" + ($$($nesting, 'CC_ANY')) + "*)$"));
22492
+ Opal.const_set($nesting[0], 'AtxSectionTitleRx', new RegExp("" + "^(=={0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
22493
+ Opal.const_set($nesting[0], 'ExtAtxSectionTitleRx', new RegExp("" + "^(=={0,5}|#\\\#{0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
22494
+ Opal.const_set($nesting[0], 'SetextSectionTitleRx', new RegExp("" + "^((?!\\.)" + ($$($nesting, 'CC_ANY')) + "*?" + ($$($nesting, 'CG_ALNUM')) + ($$($nesting, 'CC_ANY')) + "*)$"));
22495
+ Opal.const_set($nesting[0], 'InlineSectionAnchorRx', new RegExp("" + " (\\\\)?\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?\\]\\]$"));
22496
+ Opal.const_set($nesting[0], 'InvalidSectionIdCharsRx', new RegExp("" + "<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ " + ($$($nesting, 'CC_WORD')) + "\\-.]+?"));
22497
+ Opal.const_set($nesting[0], 'SectionLevelStyleRx', /^sect\d$/);
22498
+ Opal.const_set($nesting[0], 'AnyListRx', new RegExp("" + "^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?(?::::{0,2}|;;)(?:$|[ \\t])|<?\\d+>[ \\t])"));
22499
+ Opal.const_set($nesting[0], 'UnorderedListRx', new RegExp("" + "^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
22500
+ Opal.const_set($nesting[0], 'OrderedListRx', new RegExp("" + "^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
22501
+ Opal.const_set($nesting[0], 'OrderedListMarkerRxMap', $hash2(["arabic", "loweralpha", "lowerroman", "upperalpha", "upperroman"], {"arabic": /\d+\./, "loweralpha": /[a-z]\./, "lowerroman": /[ivx]+\)/, "upperalpha": /[A-Z]\./, "upperroman": /[IVX]+\)/}));
22502
+ Opal.const_set($nesting[0], 'DescriptionListRx', new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(:::{0,2}|;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"));
22503
+ Opal.const_set($nesting[0], 'DescriptionListSiblingRx', $hash2(["::", ":::", "::::", ";;"], {"::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), ":::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), "::::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), ";;": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)")}));
22504
+ Opal.const_set($nesting[0], 'CalloutListRx', new RegExp("" + "^<(\\d+|\\.)>[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
22505
+ Opal.const_set($nesting[0], 'CalloutExtractRx', /((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/);
22506
+ Opal.const_set($nesting[0], 'CalloutExtractRxt', "(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)");
22507
+ Opal.const_set($nesting[0], 'CalloutExtractRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$1 = function(h, k){var self = $Asciidoctor$1.$$s || this, $writer = nil;
22508
+
22509
+
22510
+
22511
+ if (h == null) {
22512
+ h = nil;
22513
+ };
22514
+
22515
+ if (k == null) {
22516
+ k = nil;
22517
+ };
22518
+ $writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
22519
+ return ""
22520
+ } else {
22521
+ return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
22522
+ }; return nil; })()) + ")?" + ($$($nesting, 'CalloutExtractRxt')))];
22523
+ $send(h, '[]=', Opal.to_a($writer));
22524
+ return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$1.$$s = self, $Asciidoctor$1.$$arity = 2, $Asciidoctor$1)));
22525
+ Opal.const_set($nesting[0], 'CalloutScanRx', new RegExp("" + "\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*" + ($$($nesting, 'CC_EOL')) + ")"));
22526
+ Opal.const_set($nesting[0], 'CalloutSourceRx', new RegExp("" + "((?://|#|--|;;) ?)?(\\\\)?&lt;!?(|--)(\\d+|\\.)\\3&gt;(?=(?: ?\\\\?&lt;!?\\3(?:\\d+|\\.)\\3&gt;)*" + ($$($nesting, 'CC_EOL')) + ")"));
22527
+ Opal.const_set($nesting[0], 'CalloutSourceRxt', "" + "(\\\\)?&lt;()(\\d+|\\.)&gt;(?=(?: ?\\\\?&lt;(?:\\d+|\\.)&gt;)*" + ($$($nesting, 'CC_EOL')) + ")");
22528
+ Opal.const_set($nesting[0], 'CalloutSourceRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$2 = function(h, k){var self = $Asciidoctor$2.$$s || this, $writer = nil;
22529
+
22530
+
22531
+
22532
+ if (h == null) {
22533
+ h = nil;
22534
+ };
22535
+
22536
+ if (k == null) {
22537
+ k = nil;
22538
+ };
22539
+ $writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
22540
+ return ""
22541
+ } else {
22542
+ return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
22543
+ }; return nil; })()) + ")?" + ($$($nesting, 'CalloutSourceRxt')))];
22544
+ $send(h, '[]=', Opal.to_a($writer));
22545
+ return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$2.$$s = self, $Asciidoctor$2.$$arity = 2, $Asciidoctor$2)));
22546
+ Opal.const_set($nesting[0], 'ListRxMap', $hash2(["ulist", "olist", "dlist", "colist"], {"ulist": $$($nesting, 'UnorderedListRx'), "olist": $$($nesting, 'OrderedListRx'), "dlist": $$($nesting, 'DescriptionListRx'), "colist": $$($nesting, 'CalloutListRx')}));
22547
+ Opal.const_set($nesting[0], 'ColumnSpecRx', /^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/);
22548
+ Opal.const_set($nesting[0], 'CellSpecStartRx', /^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
22549
+ Opal.const_set($nesting[0], 'CellSpecEndRx', /[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
22550
+ Opal.const_set($nesting[0], 'CustomBlockMacroRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*)::(|\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22551
+ Opal.const_set($nesting[0], 'BlockMediaMacroRx', new RegExp("" + "^(image|video|audio)::(\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22552
+ Opal.const_set($nesting[0], 'BlockTocMacroRx', new RegExp("" + "^toc::\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22553
+ Opal.const_set($nesting[0], 'InlineAnchorRx', new RegExp("" + "(\\\\)?(?:\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]|anchor:([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)\\[(?:\\]|(" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\]))"));
22554
+ Opal.const_set($nesting[0], 'InlineAnchorScanRx', new RegExp("" + "(?:^|[^\\\\\\[])\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]|(?:^|[^\\\\])anchor:([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)\\[(?:\\]|(" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\])"));
22555
+ Opal.const_set($nesting[0], 'LeadingInlineAnchorRx', new RegExp("" + "^\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]"));
22556
+ Opal.const_set($nesting[0], 'InlineBiblioAnchorRx', new RegExp("" + "^\\[\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]\\]"));
22557
+ Opal.const_set($nesting[0], 'InlineEmailRx', new RegExp("" + "([\\\\>:/])?" + ($$($nesting, 'CG_WORD')) + "(?:&amp;|[" + ($$($nesting, 'CC_WORD')) + "\\-.%+])*@" + ($$($nesting, 'CG_ALNUM')) + "[" + ($$($nesting, 'CC_ALNUM')) + "_\\-.]*\\.[a-zA-Z]{2,5}\\b"));
22558
+ Opal.const_set($nesting[0], 'InlineFootnoteMacroRx', new RegExp("" + "\\\\?footnote(?:(ref):|:([" + ($$($nesting, 'CC_WORD')) + "-]+)?)\\[(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))\\]", 'm'));
22559
+ Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
22560
+ Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
22561
+ Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
22562
+ Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|&lt;|[>\\(\\)\\[\\];])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])?", 'm'));
22563
+ Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
22564
+ Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*$"));
22565
+ Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
22566
+ Opal.const_set($nesting[0], 'InlineMenuMacroRx', new RegExp("" + "\\\\?menu:(" + ($$($nesting, 'CG_WORD')) + "|[" + ($$($nesting, 'CC_WORD')) + "&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))?\\]", 'm'));
22567
+ Opal.const_set($nesting[0], 'InlineMenuRx', new RegExp("" + "\\\\?\"([" + ($$($nesting, 'CC_WORD')) + "&][^\"]*?[ \\n]+&gt;[ \\n]+[^\"]*)\""));
22568
+ Opal.const_set($nesting[0], 'InlinePassRx', $hash(false, ["+", "`", new RegExp("" + "(^|[^" + ($$($nesting, 'CC_WORD')) + ";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\4)(?!" + ($$($nesting, 'CG_WORD')) + ")", 'm')], true, ["`", nil, new RegExp("" + "(^|[^`" + ($$($nesting, 'CC_WORD')) + "])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\4)(?![`" + ($$($nesting, 'CC_WORD')) + "])", 'm')]));
22569
+ Opal.const_set($nesting[0], 'SinglePlusInlinePassRx', new RegExp("" + "^(\\\\)?\\+(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\+$", 'm'));
22570
+ Opal.const_set($nesting[0], 'InlinePassMacroRx', new RegExp("" + "(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(" + ($$($nesting, 'CC_ALL')) + "*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])", 'm'));
22571
+ Opal.const_set($nesting[0], 'InlineXrefMacroRx', new RegExp("" + "\\\\?(?:&lt;&lt;([" + ($$($nesting, 'CC_WORD')) + "#/.:{]" + ($$($nesting, 'CC_ALL')) + "*?)&gt;&gt;|xref:([" + ($$($nesting, 'CC_WORD')) + "#/.:{]" + ($$($nesting, 'CC_ALL')) + "*?)\\[(?:\\]|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]))", 'm'));
22572
+ if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
22573
+ Opal.const_set($nesting[0], 'HardLineBreakRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "*) \\+$", 'm'))
22574
+ } else {
22575
+ nil
22576
+ };
22577
+ Opal.const_set($nesting[0], 'MarkdownThematicBreakRx', /^ {0,3}([-*_])( *)\1\2\1$/);
22578
+ Opal.const_set($nesting[0], 'ExtLayoutBreakRx', /^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/);
22579
+ Opal.const_set($nesting[0], 'BlankLineRx', /\n{2,}/);
22580
+ Opal.const_set($nesting[0], 'EscapedSpaceRx', /\\([ \t\n])/);
22581
+ Opal.const_set($nesting[0], 'ReplaceableTextRx', /[&']|--|\.\.\.|\([CRT]M?\)/);
22582
+ Opal.const_set($nesting[0], 'SpaceDelimiterRx', /([^\\])[ \t\n]+/);
22583
+ Opal.const_set($nesting[0], 'SubModifierSniffRx', /[+-]/);
22584
+ Opal.const_set($nesting[0], 'TrailingDigitsRx', /\d+$/);
22585
+ Opal.const_set($nesting[0], 'UriSniffRx', new RegExp("" + "^" + ($$($nesting, 'CG_ALPHA')) + "[" + ($$($nesting, 'CC_ALNUM')) + ".+-]+:/{0,2}"));
22586
+ Opal.const_set($nesting[0], 'XmlSanitizeRx', /<[^>]+>/);
22587
+ })($nesting[0], $nesting)
22588
+ };
22589
+
22439
22590
  /* Generated by Opal 0.11.99.dev */
22440
22591
  Opal.modules["asciidoctor/substitutors"] = function(Opal) {
22441
22592
  function $rb_plus(lhs, rhs) {
@@ -22948,7 +23099,12 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
22948
23099
  attrs = self.$parse_attributes((($c = $gvars['~']) === nil ? nil : $c['$[]'](2)), posattrs, $hash2(["unescape_input"], {"unescape_input": true}));
22949
23100
  if (type['$==']("icon")) {
22950
23101
  } else {
22951
- doc.$register("images", [target, (($writer = ["imagesdir", doc_attrs['$[]']("imagesdir")]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)])])
23102
+
23103
+ doc.$register("images", target);
23104
+
23105
+ $writer = ["imagesdir", doc_attrs['$[]']("imagesdir")];
23106
+ $send(attrs, '[]=', Opal.to_a($writer));
23107
+ $writer[$rb_minus($writer["length"], 1)];;
22952
23108
  };
22953
23109
  ($truthy($c = attrs['$[]']("alt")) ? $c : (($writer = ["alt", (($writer = ["default-alt", $$($nesting, 'Helpers').$basename(target, true).$tr("_-", " ")]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)])]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
22954
23110
  return $$($nesting, 'Inline').$new(self, "image", nil, $hash2(["type", "target", "attributes"], {"type": type, "target": target, "attributes": attrs})).$convert();}, $$29.$$s = self, $$29.$$arity = 0, $$29))};
@@ -24317,7 +24473,7 @@ Opal.modules["asciidoctor/version"] = function(Opal) {
24317
24473
 
24318
24474
  var $nesting = [self].concat($parent_nesting);
24319
24475
 
24320
- Opal.const_set($nesting[0], 'VERSION', "2.0.7")
24476
+ Opal.const_set($nesting[0], 'VERSION', "2.0.9")
24321
24477
  })($nesting[0], $nesting)
24322
24478
  };
24323
24479
 
@@ -24331,7 +24487,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24331
24487
  }
24332
24488
  var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $hash2 = Opal.hash2, $truthy = Opal.truthy, $send = Opal.send;
24333
24489
 
24334
- Opal.add_stubs(['$include', '$attr_reader', '$attr_accessor', '$==', '$document', '$to_s', '$[]', '$merge', '$raise', '$converter', '$attributes', '$key?', '$[]=', '$-', '$delete', '$tap', '$new', '$each_key', '$end_with?', '$<<', '$slice', '$length', '$update', '$split', '$include?', '$empty?', '$join', '$apply_reftext_subs', '$attr?', '$attr', '$extname?', '$image_uri', '$<', '$safe', '$uriish?', '$encode_uri', '$normalize_web_path', '$generate_data_uri_from_uri', '$generate_data_uri', '$extname', '$normalize_system_path', '$readable?', '$strict_encode64', '$binread', '$warn', '$logger', '$require_library', '$!', '$open_uri', '$content_type', '$read', '$base_dir', '$root?', '$path_resolver', '$system_path', '$web_path', '$===', '$!=', '$prepare_source_string', '$fetch', '$read_asset']);
24490
+ Opal.add_stubs(['$include', '$attr_reader', '$attr_accessor', '$==', '$document', '$to_s', '$[]', '$merge', '$raise', '$converter', '$attributes', '$key?', '$[]=', '$-', '$delete', '$tap', '$new', '$each_key', '$end_with?', '$<<', '$slice', '$length', '$update', '$split', '$include?', '$empty?', '$join', '$apply_reftext_subs', '$attr?', '$attr', '$extname?', '$image_uri', '$<', '$safe', '$uriish?', '$encode_spaces_in_uri', '$normalize_web_path', '$generate_data_uri_from_uri', '$generate_data_uri', '$extname', '$normalize_system_path', '$readable?', '$strict_encode64', '$binread', '$warn', '$logger', '$require_library', '$!', '$open_uri', '$content_type', '$read', '$base_dir', '$root?', '$path_resolver', '$system_path', '$web_path', '$===', '$!=', '$prepare_source_string', '$fetch', '$read_asset']);
24335
24491
  return (function($base, $parent_nesting) {
24336
24492
  var self = $module($base, 'Asciidoctor');
24337
24493
 
@@ -24340,7 +24496,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24340
24496
  (function($base, $super, $parent_nesting) {
24341
24497
  var self = $klass($base, $super, 'AbstractNode');
24342
24498
 
24343
- var $nesting = [self].concat($parent_nesting), $AbstractNode_initialize$1, $AbstractNode_block$ques$2, $AbstractNode_inline$ques$3, $AbstractNode_converter$4, $AbstractNode_parent$eq$5, $AbstractNode_attr$6, $AbstractNode_attr$ques$7, $AbstractNode_set_attr$8, $AbstractNode_remove_attr$9, $AbstractNode_option$ques$10, $AbstractNode_set_option$11, $AbstractNode_options$12, $AbstractNode_update_attributes$15, $AbstractNode_role$16, $AbstractNode_roles$17, $AbstractNode_role$ques$18, $AbstractNode_has_role$ques$19, $AbstractNode_add_role$20, $AbstractNode_remove_role$21, $AbstractNode_reftext$22, $AbstractNode_reftext$ques$23, $AbstractNode_icon_uri$24, $AbstractNode_image_uri$25, $AbstractNode_media_uri$26, $AbstractNode_generate_data_uri$27, $AbstractNode_generate_data_uri_from_uri$28, $AbstractNode_normalize_asset_path$30, $AbstractNode_normalize_system_path$31, $AbstractNode_normalize_web_path$32, $AbstractNode_read_asset$33, $AbstractNode_read_contents$34, $AbstractNode_is_uri$ques$37;
24499
+ var $nesting = [self].concat($parent_nesting), $AbstractNode_initialize$1, $AbstractNode_block$ques$2, $AbstractNode_inline$ques$3, $AbstractNode_converter$4, $AbstractNode_parent$eq$5, $AbstractNode_attr$6, $AbstractNode_attr$ques$7, $AbstractNode_set_attr$8, $AbstractNode_remove_attr$9, $AbstractNode_option$ques$10, $AbstractNode_set_option$11, $AbstractNode_enabled_options$12, $AbstractNode_update_attributes$15, $AbstractNode_role$16, $AbstractNode_roles$17, $AbstractNode_role$ques$18, $AbstractNode_has_role$ques$19, $AbstractNode_add_role$20, $AbstractNode_remove_role$21, $AbstractNode_reftext$22, $AbstractNode_reftext$ques$23, $AbstractNode_icon_uri$24, $AbstractNode_image_uri$25, $AbstractNode_media_uri$26, $AbstractNode_generate_data_uri$27, $AbstractNode_generate_data_uri_from_uri$28, $AbstractNode_normalize_asset_path$30, $AbstractNode_normalize_system_path$31, $AbstractNode_normalize_web_path$32, $AbstractNode_read_asset$33, $AbstractNode_read_contents$34, $AbstractNode_is_uri$ques$37;
24344
24500
 
24345
24501
  self.$$prototype.document = self.$$prototype.attributes = self.$$prototype.parent = nil;
24346
24502
 
@@ -24503,7 +24659,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24503
24659
  return nil;
24504
24660
  }, $AbstractNode_set_option$11.$$arity = 1);
24505
24661
 
24506
- Opal.def(self, '$options', $AbstractNode_options$12 = function $$options() {
24662
+ Opal.def(self, '$enabled_options', $AbstractNode_enabled_options$12 = function $$enabled_options() {
24507
24663
  var $$13, self = this;
24508
24664
 
24509
24665
  return $send($$$('::', 'Set').$new(), 'tap', [], ($$13 = function(accum){var self = $$13.$$s || this, $$14;
@@ -24526,7 +24682,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24526
24682
  } else {
24527
24683
  return nil
24528
24684
  };}, $$14.$$s = self, $$14.$$arity = 1, $$14));}, $$13.$$s = self, $$13.$$arity = 1, $$13))
24529
- }, $AbstractNode_options$12.$$arity = 0);
24685
+ }, $AbstractNode_enabled_options$12.$$arity = 0);
24530
24686
 
24531
24687
  Opal.def(self, '$update_attributes', $AbstractNode_update_attributes$15 = function $$update_attributes(new_attributes) {
24532
24688
  var self = this;
@@ -24663,9 +24819,10 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24663
24819
  asset_dir_key = "imagesdir";
24664
24820
  };
24665
24821
  if ($truthy(($truthy($a = $rb_lt((doc = self.document).$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE'))) ? doc['$attr?']("data-uri") : $a))) {
24666
- if ($truthy(($truthy($a = ($truthy($b = $$($nesting, 'Helpers')['$uriish?'](target_image)) ? (target_image = $$($nesting, 'Helpers').$encode_uri(target_image)) : $b)) ? $a : ($truthy($b = ($truthy($c = ($truthy($d = asset_dir_key) ? (images_base = doc.$attr(asset_dir_key)) : $d)) ? $$($nesting, 'Helpers')['$uriish?'](images_base) : $c)) ? (target_image = self.$normalize_web_path(target_image, images_base, false)) : $b)))) {
24822
+ if ($truthy(($truthy($a = ($truthy($b = $$($nesting, 'Helpers')['$uriish?'](target_image)) ? (target_image = $$($nesting, 'Helpers').$encode_spaces_in_uri(target_image)) : $b)) ? $a : ($truthy($b = ($truthy($c = ($truthy($d = asset_dir_key) ? (images_base = doc.$attr(asset_dir_key)) : $d)) ? $$($nesting, 'Helpers')['$uriish?'](images_base) : $c)) ? (target_image = self.$normalize_web_path(target_image, images_base, false)) : $b)))) {
24667
24823
  if ($truthy(doc['$attr?']("allow-uri-read"))) {
24668
- return self.$generate_data_uri_from_uri(target_image, doc['$attr?']("cache-uri"))
24824
+
24825
+ return self.$generate_data_uri_from_uri(target_image, doc['$attr?']("cache-uri"));
24669
24826
  } else {
24670
24827
  return target_image
24671
24828
  }
@@ -24830,7 +24987,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24830
24987
  preserve_uri_target = true;
24831
24988
  };
24832
24989
  if ($truthy(($truthy($a = preserve_uri_target) ? $$($nesting, 'Helpers')['$uriish?'](target) : $a))) {
24833
- return $$($nesting, 'Helpers').$encode_uri(target)
24990
+ return $$($nesting, 'Helpers').$encode_spaces_in_uri(target)
24834
24991
  } else {
24835
24992
  return self.document.$path_resolver().$web_path(target, start)
24836
24993
  };
@@ -24944,7 +25101,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
24944
25101
  }
24945
25102
  var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $hash2 = Opal.hash2, $send = Opal.send, $truthy = Opal.truthy;
24946
25103
 
24947
- Opal.add_stubs(['$attr_reader', '$attr_writer', '$attr_accessor', '$===', '$level', '$file', '$lineno', '$playback_attributes', '$convert', '$converter', '$join', '$map', '$to_s', '$==', '$parent', '$parent=', '$-', '$<<', '$empty?', '$>', '$Integer', '$find_by_internal', '$to_proc', '$context', '$[]', '$items', '$+', '$find_index', '$include?', '$next_adjacent_block', '$blocks', '$select', '$sub_specialchars', '$match?', '$sub_replacements', '$title', '$apply_title_subs', '$delete', '$reftext', '$!', '$sub_placeholder', '$sub_quotes', '$compat_mode', '$attributes', '$chomp', '$increment_and_store_counter', '$index=', '$numbered', '$sectname', '$counter', '$numeral=', '$numeral', '$caption=', '$int_to_roman', '$each', '$assign_numeral', '$reindex_sections', '$protected', '$has_role?', '$raise', '$header?', '$!=', '$flatten', '$head', '$rows', '$merge', '$body', '$foot', '$style', '$inner_document']);
25104
+ Opal.add_stubs(['$attr_reader', '$attr_writer', '$attr_accessor', '$==', '$===', '$level', '$file', '$lineno', '$playback_attributes', '$convert', '$converter', '$join', '$map', '$to_s', '$parent', '$parent=', '$-', '$<<', '$empty?', '$>', '$Integer', '$find_by_internal', '$to_proc', '$context', '$[]', '$items', '$+', '$find_index', '$include?', '$next_adjacent_block', '$blocks', '$select', '$sub_specialchars', '$match?', '$sub_replacements', '$title', '$apply_title_subs', '$delete', '$reftext', '$!', '$sub_placeholder', '$sub_quotes', '$compat_mode', '$attributes', '$chomp', '$increment_and_store_counter', '$index=', '$numbered', '$sectname', '$counter', '$numeral=', '$numeral', '$caption=', '$int_to_roman', '$each', '$assign_numeral', '$reindex_sections', '$protected', '$has_role?', '$raise', '$header?', '$!=', '$flatten', '$head', '$rows', '$merge', '$body', '$foot', '$style', '$inner_document']);
24948
25105
  return (function($base, $parent_nesting) {
24949
25106
  var self = $module($base, 'Asciidoctor');
24950
25107
 
@@ -24967,7 +25124,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
24967
25124
  self.$attr_reader("subs");
24968
25125
 
24969
25126
  Opal.def(self, '$initialize', $AbstractBlock_initialize$1 = function $$initialize(parent, context, opts) {
24970
- var $iter = $AbstractBlock_initialize$1.$$p, $yield = $iter || nil, self = this, $case = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
25127
+ var $a, $iter = $AbstractBlock_initialize$1.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
24971
25128
 
24972
25129
  if ($iter) $AbstractBlock_initialize$1.$$p = null;
24973
25130
  // Prepare super implicit arguments
@@ -24984,15 +25141,15 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
24984
25141
  self.blocks = [];
24985
25142
  self.subs = [];
24986
25143
  self.id = (self.title = (self.caption = (self.numeral = (self.style = (self.default_subs = (self.source_location = nil))))));
24987
- return (function() {$case = context;
24988
- if ("document"['$===']($case) || "section"['$===']($case)) {
24989
- self.level = (self.next_section_index = 0);
24990
- return (self.next_section_ordinal = 1);}
24991
- else {return (self.level = (function() {if ($truthy($$($nesting, 'AbstractBlock')['$==='](parent))) {
24992
- return parent.$level()
25144
+ if ($truthy(($truthy($a = context['$==']("document")) ? $a : context['$==']("section")))) {
25145
+
25146
+ self.level = (self.next_section_index = 0);
25147
+ return (self.next_section_ordinal = 1);
25148
+ } else if ($truthy($$($nesting, 'AbstractBlock')['$==='](parent))) {
25149
+ return (self.level = parent.$level())
24993
25150
  } else {
24994
- return nil
24995
- }; return nil; })())}})();
25151
+ return (self.level = nil)
25152
+ };
24996
25153
  }, $AbstractBlock_initialize$1.$$arity = -3);
24997
25154
 
24998
25155
  Opal.def(self, '$block?', $AbstractBlock_block$ques$2 = function() {
@@ -25176,7 +25333,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25176
25333
  };
25177
25334
  }
25178
25335
  } else {
25179
- return nil
25336
+ return ""
25180
25337
  }
25181
25338
  }, $AbstractBlock_alt$19.$$arity = 0);
25182
25339
 
@@ -25284,10 +25441,6 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25284
25441
 
25285
25442
 
25286
25443
 
25287
- if (value == null) {
25288
- value = nil;
25289
- };
25290
-
25291
25444
  if (caption_context == null) {
25292
25445
  caption_context = self.context;
25293
25446
  };
@@ -25300,7 +25453,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25300
25453
  } else {
25301
25454
  return nil
25302
25455
  };
25303
- }, $AbstractBlock_assign_caption$29.$$arity = -1);
25456
+ }, $AbstractBlock_assign_caption$29.$$arity = -2);
25304
25457
 
25305
25458
  Opal.def(self, '$assign_numeral', $AbstractBlock_assign_numeral$30 = function $$assign_numeral(section) {
25306
25459
  var $a, self = this, $writer = nil, like = nil, sectname = nil, caption = nil;
@@ -26083,7 +26236,7 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26083
26236
  }
26084
26237
  var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $hash2 = Opal.hash2, $truthy = Opal.truthy, $send = Opal.send, $klass = Opal.klass, $gvars = Opal.gvars;
26085
26238
 
26086
- Opal.add_stubs(['$autoload', '$__dir__', '$attr_reader', '$raise', '$class', '$[]', '$sub', '$slice', '$length', '$==', '$[]=', '$backend_traits', '$-', '$derive_backend_traits', '$register', '$new', '$create', '$default', '$each', '$default=', '$registry', '$for', '$===', '$supports_templates?', '$merge', '$private', '$include', '$delete', '$clear', '$private_class_method', '$send', '$extend', '$node_name', '$+', '$receiver', '$to_s', '$name', '$warn', '$logger', '$respond_to?', '$content']);
26239
+ Opal.add_stubs(['$autoload', '$__dir__', '$attr_reader', '$raise', '$class', '$[]', '$sub', '$slice', '$length', '$==', '$[]=', '$backend_traits', '$-', '$derive_backend_traits', '$register', '$map', '$to_s', '$new', '$create', '$default', '$each', '$default=', '$registry', '$for', '$===', '$supports_templates?', '$merge', '$private', '$include', '$delete', '$clear', '$private_class_method', '$send', '$extend', '$node_name', '$+', '$receiver', '$name', '$warn', '$logger', '$respond_to?', '$content']);
26087
26240
  return (function($base, $parent_nesting) {
26088
26241
  var self = $module($base, 'Asciidoctor');
26089
26242
 
@@ -26092,7 +26245,7 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26092
26245
  (function($base, $parent_nesting) {
26093
26246
  var self = $module($base, 'Converter');
26094
26247
 
26095
- var $nesting = [self].concat($parent_nesting), $Converter_initialize$1, $Converter_convert$2, $Converter_handles$ques$3, $Converter_derive_backend_traits$4, $a, $Converter_included$27;
26248
+ var $nesting = [self].concat($parent_nesting), $Converter_initialize$1, $Converter_convert$2, $Converter_handles$ques$3, $Converter_derive_backend_traits$4, $a, $Converter_included$28;
26096
26249
 
26097
26250
 
26098
26251
  self.$autoload("CompositeConverter", "" + (self.$__dir__()) + "/converter/composite");
@@ -26284,23 +26437,30 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26284
26437
 
26285
26438
 
26286
26439
  Opal.def(self, '$register_for', $Config_register_for$14 = function $$register_for($a) {
26287
- var $post_args, backends, self = this;
26440
+ var $post_args, backends, $$15, self = this;
26288
26441
 
26289
26442
 
26290
26443
 
26291
26444
  $post_args = Opal.slice.call(arguments, 0, arguments.length);
26292
26445
 
26293
26446
  backends = $post_args;;
26294
- return $send($$($nesting, 'Converter'), 'register', [self].concat(Opal.to_a(backends)));
26447
+ return $send($$($nesting, 'Converter'), 'register', [self].concat(Opal.to_a($send(backends, 'map', [], ($$15 = function(backend){var self = $$15.$$s || this;
26448
+
26449
+
26450
+
26451
+ if (backend == null) {
26452
+ backend = nil;
26453
+ };
26454
+ return backend.$to_s();}, $$15.$$s = self, $$15.$$arity = 1, $$15)))));
26295
26455
  }, $Config_register_for$14.$$arity = -1)
26296
26456
  })($nesting[0], $nesting);
26297
26457
  (function($base, $parent_nesting) {
26298
26458
  var self = $module($base, 'Factory');
26299
26459
 
26300
- var $nesting = [self].concat($parent_nesting), $Factory_new$15, $Factory_default$16, $Factory_create$17, $Factory_register$18, $Factory_for$20, $Factory_create$21, $Factory_converters$22, $Factory_registry$23;
26460
+ var $nesting = [self].concat($parent_nesting), $Factory_new$16, $Factory_default$17, $Factory_create$18, $Factory_register$19, $Factory_for$21, $Factory_create$22, $Factory_converters$23, $Factory_registry$24;
26301
26461
 
26302
26462
 
26303
- Opal.defs(self, '$new', $Factory_new$15 = function($a, $b) {
26463
+ Opal.defs(self, '$new', $Factory_new$16 = function($a, $b) {
26304
26464
  var $post_args, $kwargs, converters, proxy_default, self = this;
26305
26465
 
26306
26466
 
@@ -26334,8 +26494,8 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26334
26494
 
26335
26495
  return $$($nesting, 'CustomFactory').$new(converters);
26336
26496
  };
26337
- }, $Factory_new$15.$$arity = -1);
26338
- Opal.defs(self, '$default', $Factory_default$16 = function($a) {
26497
+ }, $Factory_new$16.$$arity = -1);
26498
+ Opal.defs(self, '$default', $Factory_default$17 = function($a) {
26339
26499
  var $post_args, args, self = this;
26340
26500
 
26341
26501
 
@@ -26344,8 +26504,8 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26344
26504
 
26345
26505
  args = $post_args;;
26346
26506
  return $$($nesting, 'Converter');
26347
- }, $Factory_default$16.$$arity = -1);
26348
- Opal.defs(self, '$create', $Factory_create$17 = function $$create(backend, opts) {
26507
+ }, $Factory_default$17.$$arity = -1);
26508
+ Opal.defs(self, '$create', $Factory_create$18 = function $$create(backend, opts) {
26349
26509
  var self = this;
26350
26510
 
26351
26511
 
@@ -26354,17 +26514,17 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26354
26514
  opts = $hash2([], {});
26355
26515
  };
26356
26516
  return self.$default().$create(backend, opts);
26357
- }, $Factory_create$17.$$arity = -2);
26517
+ }, $Factory_create$18.$$arity = -2);
26358
26518
 
26359
- Opal.def(self, '$register', $Factory_register$18 = function $$register(converter, $a) {
26360
- var $post_args, backends, $$19, self = this;
26519
+ Opal.def(self, '$register', $Factory_register$19 = function $$register(converter, $a) {
26520
+ var $post_args, backends, $$20, self = this;
26361
26521
 
26362
26522
 
26363
26523
 
26364
26524
  $post_args = Opal.slice.call(arguments, 1, arguments.length);
26365
26525
 
26366
26526
  backends = $post_args;;
26367
- return $send(backends, 'each', [], ($$19 = function(backend){var self = $$19.$$s || this, $writer = nil;
26527
+ return $send(backends, 'each', [], ($$20 = function(backend){var self = $$20.$$s || this, $writer = nil;
26368
26528
 
26369
26529
 
26370
26530
 
@@ -26383,16 +26543,16 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26383
26543
  $writer = [backend, converter];
26384
26544
  $send(self.$registry(), '[]=', Opal.to_a($writer));
26385
26545
  return $writer[$rb_minus($writer["length"], 1)];;
26386
- };}, $$19.$$s = self, $$19.$$arity = 1, $$19));
26387
- }, $Factory_register$18.$$arity = -2);
26546
+ };}, $$20.$$s = self, $$20.$$arity = 1, $$20));
26547
+ }, $Factory_register$19.$$arity = -2);
26388
26548
 
26389
- Opal.def(self, '$for', $Factory_for$20 = function(backend) {
26549
+ Opal.def(self, '$for', $Factory_for$21 = function(backend) {
26390
26550
  var self = this;
26391
26551
 
26392
26552
  return self.$registry()['$[]'](backend)
26393
- }, $Factory_for$20.$$arity = 1);
26553
+ }, $Factory_for$21.$$arity = 1);
26394
26554
 
26395
- Opal.def(self, '$create', $Factory_create$21 = function $$create(backend, opts) {
26555
+ Opal.def(self, '$create', $Factory_create$22 = function $$create(backend, opts) {
26396
26556
  var $a, $b, self = this, converter = nil, template_dirs = nil, delegate_backend = nil;
26397
26557
 
26398
26558
 
@@ -26421,30 +26581,30 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26421
26581
  } else {
26422
26582
  return nil
26423
26583
  };
26424
- }, $Factory_create$21.$$arity = -2);
26584
+ }, $Factory_create$22.$$arity = -2);
26425
26585
 
26426
- Opal.def(self, '$converters', $Factory_converters$22 = function $$converters() {
26586
+ Opal.def(self, '$converters', $Factory_converters$23 = function $$converters() {
26427
26587
  var self = this;
26428
26588
 
26429
26589
  return self.$registry().$merge()
26430
- }, $Factory_converters$22.$$arity = 0);
26590
+ }, $Factory_converters$23.$$arity = 0);
26431
26591
  self.$private();
26432
26592
 
26433
- Opal.def(self, '$registry', $Factory_registry$23 = function $$registry() {
26593
+ Opal.def(self, '$registry', $Factory_registry$24 = function $$registry() {
26434
26594
  var self = this;
26435
26595
 
26436
26596
  return self.$raise($$$('::', 'NotImplementedError'), "" + ($$($nesting, 'Factory')) + " subclass " + (self.$class()) + " must implement the #" + ("registry") + " method")
26437
- }, $Factory_registry$23.$$arity = 0);
26597
+ }, $Factory_registry$24.$$arity = 0);
26438
26598
  })($nesting[0], $nesting);
26439
26599
  (function($base, $super, $parent_nesting) {
26440
26600
  var self = $klass($base, $super, 'CustomFactory');
26441
26601
 
26442
- var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$24, $CustomFactory_unregister_all$25;
26602
+ var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$25, $CustomFactory_unregister_all$26;
26443
26603
 
26444
26604
 
26445
26605
  self.$include($$($nesting, 'Factory'));
26446
26606
 
26447
- Opal.def(self, '$initialize', $CustomFactory_initialize$24 = function $$initialize(seed_registry) {
26607
+ Opal.def(self, '$initialize', $CustomFactory_initialize$25 = function $$initialize(seed_registry) {
26448
26608
  var self = this, $writer = nil;
26449
26609
 
26450
26610
 
@@ -26462,34 +26622,34 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26462
26622
  } else {
26463
26623
  return (self.registry = $hash2([], {}))
26464
26624
  };
26465
- }, $CustomFactory_initialize$24.$$arity = -1);
26625
+ }, $CustomFactory_initialize$25.$$arity = -1);
26466
26626
 
26467
- Opal.def(self, '$unregister_all', $CustomFactory_unregister_all$25 = function $$unregister_all() {
26627
+ Opal.def(self, '$unregister_all', $CustomFactory_unregister_all$26 = function $$unregister_all() {
26468
26628
  var self = this, $writer = nil;
26469
26629
 
26470
26630
 
26471
26631
  $writer = [nil];
26472
26632
  $send(self.$registry().$clear(), 'default=', Opal.to_a($writer));
26473
26633
  return $writer[$rb_minus($writer["length"], 1)];
26474
- }, $CustomFactory_unregister_all$25.$$arity = 0);
26634
+ }, $CustomFactory_unregister_all$26.$$arity = 0);
26475
26635
  self.$private();
26476
26636
  return self.$attr_reader("registry");
26477
26637
  })($nesting[0], null, $nesting);
26478
26638
  (function($base, $parent_nesting) {
26479
26639
  var self = $module($base, 'DefaultFactory');
26480
26640
 
26481
- var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$26;
26641
+ var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$27;
26482
26642
 
26483
26643
 
26484
26644
  self.$include($$($nesting, 'Factory'));
26485
26645
  self.$private();
26486
26646
  (Opal.class_variable_set($nesting[0], '@@registry', $hash2([], {})));
26487
26647
 
26488
- Opal.def(self, '$registry', $DefaultFactory_registry$26 = function $$registry() {
26648
+ Opal.def(self, '$registry', $DefaultFactory_registry$27 = function $$registry() {
26489
26649
  var $a, self = this;
26490
26650
 
26491
26651
  return (($a = $nesting[0].$$cvars['@@registry']) == null ? nil : $a)
26492
- }, $DefaultFactory_registry$26.$$arity = 0);
26652
+ }, $DefaultFactory_registry$27.$$arity = 0);
26493
26653
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
26494
26654
  } else {
26495
26655
  nil
@@ -26508,23 +26668,23 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26508
26668
  return nil
26509
26669
  };
26510
26670
  })($nesting[0], $$($nesting, 'CustomFactory'), $nesting);
26511
- self.$private_class_method(($truthy($a = (Opal.defs(self, '$included', $Converter_included$27 = function $$included(into) {
26671
+ self.$private_class_method(($truthy($a = (Opal.defs(self, '$included', $Converter_included$28 = function $$included(into) {
26512
26672
  var self = this;
26513
26673
 
26514
26674
 
26515
26675
  into.$send("include", $$($nesting, 'BackendTraits'));
26516
26676
  return into.$extend($$($nesting, 'Config'));
26517
- }, $Converter_included$27.$$arity = 1), nil) && 'included') ? $a : "included"));
26677
+ }, $Converter_included$28.$$arity = 1), nil) && 'included') ? $a : "included"));
26518
26678
  (function($base, $super, $parent_nesting) {
26519
26679
  var self = $klass($base, $super, 'Base');
26520
26680
 
26521
- var $nesting = [self].concat($parent_nesting), $Base_convert$28, $Base_handles$ques$29, $Base_content_only$30, $Base_skip$31;
26681
+ var $nesting = [self].concat($parent_nesting), $Base_convert$29, $Base_handles$ques$30, $Base_content_only$31, $Base_skip$32;
26522
26682
 
26523
26683
  self.$$prototype.backend = nil;
26524
26684
 
26525
26685
  self.$include($$($nesting, 'Converter'), $$($nesting, 'Logging'));
26526
26686
 
26527
- Opal.def(self, '$convert', $Base_convert$28 = function $$convert(node, transform, opts) {
26687
+ Opal.def(self, '$convert', $Base_convert$29 = function $$convert(node, transform, opts) {
26528
26688
  var $a, $b, self = this, ex = nil;
26529
26689
  if ($gvars["!"] == null) $gvars["!"] = nil;
26530
26690
 
@@ -26558,24 +26718,24 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26558
26718
  } finally { Opal.pop_exception() }
26559
26719
  } else { throw $err; }
26560
26720
  };
26561
- }, $Base_convert$28.$$arity = -2);
26721
+ }, $Base_convert$29.$$arity = -2);
26562
26722
 
26563
- Opal.def(self, '$handles?', $Base_handles$ques$29 = function(transform) {
26723
+ Opal.def(self, '$handles?', $Base_handles$ques$30 = function(transform) {
26564
26724
  var self = this;
26565
26725
 
26566
26726
  return self['$respond_to?']("" + "convert_" + (transform))
26567
- }, $Base_handles$ques$29.$$arity = 1);
26727
+ }, $Base_handles$ques$30.$$arity = 1);
26568
26728
 
26569
- Opal.def(self, '$content_only', $Base_content_only$30 = function $$content_only(node) {
26729
+ Opal.def(self, '$content_only', $Base_content_only$31 = function $$content_only(node) {
26570
26730
  var self = this;
26571
26731
 
26572
26732
  return node.$content()
26573
- }, $Base_content_only$30.$$arity = 1);
26574
- return (Opal.def(self, '$skip', $Base_skip$31 = function $$skip(node) {
26733
+ }, $Base_content_only$31.$$arity = 1);
26734
+ return (Opal.def(self, '$skip', $Base_skip$32 = function $$skip(node) {
26575
26735
  var self = this;
26576
26736
 
26577
26737
  return nil
26578
- }, $Base_skip$31.$$arity = 1), nil) && 'skip';
26738
+ }, $Base_skip$32.$$arity = 1), nil) && 'skip';
26579
26739
  })($nesting[0], null, $nesting);
26580
26740
  self.$extend($$($nesting, 'DefaultFactory'));
26581
26741
  })($nesting[0], $nesting)
@@ -27244,7 +27404,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
27244
27404
  else {if ($truthy(self.options['$[]']("catalog_assets"))) {
27245
27405
  return self.catalog['$[]'](type)['$<<']((function() {if (type['$==']("images")) {
27246
27406
 
27247
- return $$($nesting, 'ImageReference').$new(value['$[]'](0), value['$[]'](1));
27407
+ return $$($nesting, 'ImageReference').$new(value, self.attributes['$[]']("imagesdir"));
27248
27408
  } else {
27249
27409
  return value
27250
27410
  }; return nil; })())
@@ -28438,9 +28598,9 @@ Opal.modules["asciidoctor/inline"] = function(Opal) {
28438
28598
  Opal.alias(self, "render", "convert");
28439
28599
 
28440
28600
  Opal.def(self, '$alt', $Inline_alt$5 = function $$alt() {
28441
- var self = this;
28601
+ var $a, self = this;
28442
28602
 
28443
- return self.$attr("alt")
28603
+ return ($truthy($a = self.$attr("alt")) ? $a : "")
28444
28604
  }, $Inline_alt$5.$$arity = 0);
28445
28605
 
28446
28606
  Opal.def(self, '$reftext?', $Inline_reftext$ques$6 = function() {
@@ -28639,7 +28799,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
28639
28799
  }
28640
28800
  var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $send = Opal.send, $truthy = Opal.truthy, $hash2 = Opal.hash2, $gvars = Opal.gvars;
28641
28801
 
28642
- Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$finalize_header', '$nil_or_empty?', '$title=', '$-', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$apply_header_subs', '$[]=', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$include?', '$==', '$!', '$register', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$sub_attributes', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$skip_blank_lines', '$save', '$update', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$title', '$split', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$context=', '$style=', '$parent=', '$size', '$content_model', '$shift', '$unwrap_standalone_preamble', '$merge', '$fetch', '$parse_block_metadata_line', '$extensions', '$block_macros?', '$mark', '$read_line', '$terminator', '$to_s', '$masq', '$to_sym', '$registered_for_block?', '$debug?', '$debug', '$cursor_at_mark', '$strict_verbatim_paragraphs', '$unshift_line', '$markdown_syntax', '$keys', '$chr', '$uniform?', '$length', '$end_with?', '$===', '$parse_attributes', '$attribute_missing', '$tr', '$basename', '$assign_caption', '$registered_for_block_macro?', '$config', '$process_method', '$replace', '$parse_callout_list', '$callouts', '$parse_list', '$parse_description_list', '$underline_style_section_titles', '$is_section_title?', '$peek_line', '$atx_section_title?', '$generate_id', '$level=', '$read_paragraph_lines', '$adjust_indentation!', '$map!', '$slice', '$pop', '$build_block', '$apply_subs', '$chop', '$catalog_inline_anchors', '$rekey', '$index', '$strip', '$parse_table', '$each', '$raise', '$title?', '$update_attributes', '$commit_subs', '$sub?', '$catalog_callouts', '$source', '$remove_sub', '$block_terminates_paragraph', '$to_proc', '$nil?', '$lines', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$source_location', '$marker=', '$catalog_inline_biblio_anchor', '$set_option', '$text=', '$resolve_ordered_list_marker', '$read_lines_for_list_item', '$skip_line_comments', '$unshift_lines', '$fold_first', '$text?', '$is_sibling_list_item?', '$concat', '$find', '$delete_at', '$casecmp', '$sectname=', '$special=', '$numbered=', '$numbered', '$lineno', '$peek_lines', '$setext_section_title?', '$abs', '$cursor_at_prev_line', '$process_attribute_entries', '$next_line_empty?', '$process_authors', '$rstrip', '$each_with_index', '$compact', '$squeeze', '$to_a', '$parse_style_attribute', '$process_attribute_entry', '$skip_comment_lines', '$store_attribute', '$sanitize_attribute_name', '$set_attribute', '$save_to', '$delete_attribute', '$ord', '$int_to_roman', '$resolve_list_marker', '$parse_colspecs', '$create_columns', '$format', '$starts_with_delimiter?', '$close_open_cell', '$parse_cellspec', '$delimiter', '$match_delimiter', '$pre_match', '$post_match', '$buffer_has_unclosed_quotes?', '$skip_past_delimiter', '$buffer', '$buffer=', '$skip_past_escaped_delimiter', '$keep_cell_open', '$push_cellspec', '$close_cell', '$cell_open?', '$columns', '$assign_column_widths', '$has_header_option=', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
28802
+ Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$finalize_header', '$nil_or_empty?', '$title=', '$-', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$apply_header_subs', '$[]=', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$include?', '$==', '$!', '$register', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$sub_attributes', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$skip_blank_lines', '$save', '$update', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$title', '$split', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$context=', '$style=', '$parent=', '$size', '$content_model', '$shift', '$unwrap_standalone_preamble', '$merge', '$fetch', '$parse_block_metadata_line', '$extensions', '$block_macros?', '$mark', '$read_line', '$terminator', '$to_s', '$masq', '$to_sym', '$registered_for_block?', '$debug?', '$debug', '$cursor_at_mark', '$strict_verbatim_paragraphs', '$unshift_line', '$markdown_syntax', '$keys', '$chr', '$uniform?', '$length', '$end_with?', '$===', '$parse_attributes', '$attribute_missing', '$tr', '$basename', '$assign_caption', '$registered_for_block_macro?', '$config', '$process_method', '$replace', '$parse_callout_list', '$callouts', '$parse_list', '$parse_description_list', '$underline_style_section_titles', '$is_section_title?', '$peek_line', '$atx_section_title?', '$generate_id', '$level=', '$read_paragraph_lines', '$adjust_indentation!', '$map!', '$slice', '$pop', '$build_block', '$apply_subs', '$chop', '$catalog_inline_anchors', '$rekey', '$index', '$strip', '$parse_table', '$each', '$raise', '$title?', '$update_attributes', '$commit_subs', '$sub?', '$catalog_callouts', '$source', '$remove_sub', '$block_terminates_paragraph', '$to_proc', '$nil?', '$lines', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$source_location', '$marker=', '$catalog_inline_biblio_anchor', '$set_option', '$text=', '$resolve_ordered_list_marker', '$read_lines_for_list_item', '$skip_line_comments', '$unshift_lines', '$fold_first', '$text?', '$is_sibling_list_item?', '$concat', '$find', '$casecmp', '$sectname=', '$special=', '$numbered=', '$numbered', '$lineno', '$peek_lines', '$setext_section_title?', '$abs', '$cursor_at_prev_line', '$process_attribute_entries', '$next_line_empty?', '$process_authors', '$rstrip', '$each_with_index', '$compact', '$squeeze', '$to_a', '$parse_style_attribute', '$process_attribute_entry', '$skip_comment_lines', '$store_attribute', '$sanitize_attribute_name', '$set_attribute', '$save_to', '$delete_attribute', '$ord', '$int_to_roman', '$resolve_list_marker', '$parse_colspecs', '$create_columns', '$format', '$starts_with_delimiter?', '$close_open_cell', '$parse_cellspec', '$delimiter', '$match_delimiter', '$pre_match', '$post_match', '$buffer_has_unclosed_quotes?', '$skip_past_delimiter', '$buffer', '$buffer=', '$skip_past_escaped_delimiter', '$keep_cell_open', '$push_cellspec', '$close_cell', '$cell_open?', '$columns', '$assign_column_widths', '$has_header_option=', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
28643
28803
  return (function($base, $parent_nesting) {
28644
28804
  var self = $module($base, 'Asciidoctor');
28645
28805
 
@@ -29247,7 +29407,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29247
29407
  }};
29248
29408
  if (blk_ctx['$==']("image")) {
29249
29409
 
29250
- document.$register("images", [target, (($writer = ["imagesdir", doc_attrs['$[]']("imagesdir")]), $send(attributes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)])]);
29410
+ document.$register("images", target);
29411
+
29412
+ $writer = ["imagesdir", doc_attrs['$[]']("imagesdir")];
29413
+ $send(attributes, '[]=', Opal.to_a($writer));
29414
+ $writer[$rb_minus($writer["length"], 1)];;
29251
29415
  ($truthy($b = attributes['$[]']("alt")) ? $b : (($writer = ["alt", ($truthy($c = style) ? $c : (($writer = ["default-alt", $$($nesting, 'Helpers').$basename(target, true).$tr("_-", " ")]), $send(attributes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))]), $send(attributes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
29252
29416
  if ($truthy((scaledwidth = attributes.$delete("scaledwidth"))['$nil_or_empty?']())) {
29253
29417
  } else {
@@ -30432,7 +30596,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30432
30596
  if ($truthy(this_line)) {
30433
30597
  reader.$unshift_line(this_line)};
30434
30598
  if ($truthy(detached_continuation)) {
30435
- buffer.$delete_at(detached_continuation)};
30599
+
30600
+ $writer = [detached_continuation, ""];
30601
+ $send(buffer, '[]=', Opal.to_a($writer));
30602
+ $writer[$rb_minus($writer["length"], 1)];};
30436
30603
  while (!($truthy(buffer['$empty?']()))) {
30437
30604
  if ($truthy((last_line = buffer['$[]'](-1))['$empty?']())) {
30438
30605
  buffer.$pop()
@@ -31922,9 +32089,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
31922
32089
  function $rb_gt(lhs, rhs) {
31923
32090
  return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);
31924
32091
  }
31925
- var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $truthy = Opal.truthy, $hash2 = Opal.hash2, $send = Opal.send;
32092
+ var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $truthy = Opal.truthy, $hash2 = Opal.hash2, $send = Opal.send, $gvars = Opal.gvars;
31926
32093
 
31927
- Opal.add_stubs(['$include', '$attr_accessor', '$root?', '$posixify', '$expand_path', '$pwd', '$start_with?', '$==', '$match?', '$absolute_path?', '$+', '$length', '$descends_from?', '$slice', '$to_s', '$relative_path_from', '$new', '$include?', '$tr', '$partition_path', '$each', '$pop', '$<<', '$join_path', '$[]', '$web_root?', '$unc?', '$index', '$split', '$delete', '$[]=', '$-', '$join', '$raise', '$!', '$fetch', '$warn', '$logger', '$empty?', '$nil_or_empty?', '$chomp', '$!=', '$>', '$size', '$end_with?', '$uri_prefix', '$gsub']);
32094
+ Opal.add_stubs(['$include', '$attr_accessor', '$root?', '$posixify', '$expand_path', '$pwd', '$start_with?', '$==', '$match?', '$absolute_path?', '$+', '$length', '$descends_from?', '$slice', '$to_s', '$relative_path_from', '$new', '$include?', '$tr', '$partition_path', '$each', '$pop', '$<<', '$join_path', '$[]', '$web_root?', '$unc?', '$index', '$split', '$delete', '$[]=', '$-', '$join', '$raise', '$!', '$fetch', '$warn', '$logger', '$empty?', '$nil_or_empty?', '$chomp', '$!=', '$>', '$size', '$extract_uri_prefix', '$end_with?', '$gsub', '$private', '$=~']);
31928
32095
  return (function($base, $parent_nesting) {
31929
32096
  var self = $module($base, 'Asciidoctor');
31930
32097
 
@@ -31933,7 +32100,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
31933
32100
  (function($base, $super, $parent_nesting) {
31934
32101
  var self = $klass($base, $super, 'PathResolver');
31935
32102
 
31936
- var $nesting = [self].concat($parent_nesting), $PathResolver_initialize$1, $PathResolver_absolute_path$ques$2, $a, $PathResolver_root$ques$3, $PathResolver_unc$ques$4, $PathResolver_web_root$ques$5, $PathResolver_descends_from$ques$6, $PathResolver_relative_path$7, $PathResolver_posixify$8, $PathResolver_expand_path$9, $PathResolver_partition_path$11, $PathResolver_join_path$12, $PathResolver_system_path$13, $PathResolver_web_path$16;
32103
+ var $nesting = [self].concat($parent_nesting), $PathResolver_initialize$1, $PathResolver_absolute_path$ques$2, $a, $PathResolver_root$ques$3, $PathResolver_unc$ques$4, $PathResolver_web_root$ques$5, $PathResolver_descends_from$ques$6, $PathResolver_relative_path$7, $PathResolver_posixify$8, $PathResolver_expand_path$9, $PathResolver_partition_path$11, $PathResolver_join_path$12, $PathResolver_system_path$13, $PathResolver_web_path$16, $PathResolver_extract_uri_prefix$18;
31937
32104
 
31938
32105
  self.$$prototype.file_separator = self.$$prototype._partition_path_web = self.$$prototype._partition_path_sys = self.$$prototype.working_dir = nil;
31939
32106
 
@@ -32291,7 +32458,8 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32291
32458
  return self.$join_path(resolved_segments, jail_root)
32292
32459
  };
32293
32460
  }, $PathResolver_system_path$13.$$arity = -2);
32294
- return (Opal.def(self, '$web_path', $PathResolver_web_path$16 = function $$web_path(target, start) {
32461
+
32462
+ Opal.def(self, '$web_path', $PathResolver_web_path$16 = function $$web_path(target, start) {
32295
32463
  var $a, $b, $$17, self = this, uri_prefix = nil, target_segments = nil, target_root = nil, resolved_segments = nil, resolved_path = nil;
32296
32464
 
32297
32465
 
@@ -32301,17 +32469,13 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32301
32469
  };
32302
32470
  target = self.$posixify(target);
32303
32471
  start = self.$posixify(start);
32304
- uri_prefix = nil;
32305
32472
  if ($truthy(($truthy($a = start['$nil_or_empty?']()) ? $a : self['$web_root?'](target)))) {
32306
32473
  } else {
32307
-
32308
- target = (function() {if ($truthy(start['$end_with?']($$($nesting, 'SLASH')))) {
32309
- return "" + (start) + (target)
32474
+ $b = self.$extract_uri_prefix("" + (start) + ((function() {if ($truthy(start['$end_with?']($$($nesting, 'SLASH')))) {
32475
+ return ""
32310
32476
  } else {
32311
- return "" + (start) + ($$($nesting, 'SLASH')) + (target)
32312
- }; return nil; })();
32313
- if ($truthy((uri_prefix = $$($nesting, 'Helpers').$uri_prefix(target)))) {
32314
- target = target['$[]'](Opal.Range.$new(uri_prefix.$length(), -1, false))};
32477
+ return $$($nesting, 'SLASH')
32478
+ }; return nil; })()) + (target)), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (uri_prefix = ($a[1] == null ? nil : $a[1])), $b
32315
32479
  };
32316
32480
  $b = self.$partition_path(target, true), $a = Opal.to_ary($b), (target_segments = ($a[0] == null ? nil : $a[0])), (target_root = ($a[1] == null ? nil : $a[1])), $b;
32317
32481
  resolved_segments = [];
@@ -32344,7 +32508,17 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32344
32508
  } else {
32345
32509
  return resolved_path
32346
32510
  };
32347
- }, $PathResolver_web_path$16.$$arity = -2), nil) && 'web_path';
32511
+ }, $PathResolver_web_path$16.$$arity = -2);
32512
+ self.$private();
32513
+ return (Opal.def(self, '$extract_uri_prefix', $PathResolver_extract_uri_prefix$18 = function $$extract_uri_prefix(str) {
32514
+ var $a, self = this;
32515
+
32516
+ if ($truthy(($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$=~'](str) : $a))) {
32517
+ return [str.$slice((($a = $gvars['~']) === nil ? nil : $a['$[]'](0)).$length(), str.$length()), (($a = $gvars['~']) === nil ? nil : $a['$[]'](0))]
32518
+ } else {
32519
+ return str
32520
+ }
32521
+ }, $PathResolver_extract_uri_prefix$18.$$arity = 1), nil) && 'extract_uri_prefix';
32348
32522
  })($nesting[0], null, $nesting)
32349
32523
  })($nesting[0], $nesting)
32350
32524
  };
@@ -35781,7 +35955,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
35781
35955
  }
35782
35956
  var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $hash2 = Opal.hash2, $truthy = Opal.truthy, $send = Opal.send, $klass = Opal.klass;
35783
35957
 
35784
- Opal.add_stubs(['$attr_reader', '$raise', '$class', '$private_class_method', '$extend', '$register', '$each', '$[]=', '$registry', '$-', '$[]', '$for', '$===', '$new', '$name', '$private', '$include', '$==', '$join', '$map', '$content']);
35958
+ Opal.add_stubs(['$attr_reader', '$raise', '$class', '$private_class_method', '$extend', '$register', '$map', '$to_s', '$each', '$[]=', '$registry', '$-', '$[]', '$for', '$===', '$new', '$name', '$private', '$include', '$==', '$join', '$content']);
35785
35959
 
35786
35960
  (function($base, $parent_nesting) {
35787
35961
  var self = $module($base, 'Asciidoctor');
@@ -35864,32 +36038,39 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
35864
36038
 
35865
36039
 
35866
36040
  Opal.def(self, '$register_for', $Config_register_for$10 = function $$register_for($a) {
35867
- var $post_args, names, self = this;
36041
+ var $post_args, names, $$11, self = this;
35868
36042
 
35869
36043
 
35870
36044
 
35871
36045
  $post_args = Opal.slice.call(arguments, 0, arguments.length);
35872
36046
 
35873
36047
  names = $post_args;;
35874
- return $send($$($nesting, 'SyntaxHighlighter'), 'register', [self].concat(Opal.to_a(names)));
36048
+ return $send($$($nesting, 'SyntaxHighlighter'), 'register', [self].concat(Opal.to_a($send(names, 'map', [], ($$11 = function(name){var self = $$11.$$s || this;
36049
+
36050
+
36051
+
36052
+ if (name == null) {
36053
+ name = nil;
36054
+ };
36055
+ return name.$to_s();}, $$11.$$s = self, $$11.$$arity = 1, $$11)))));
35875
36056
  }, $Config_register_for$10.$$arity = -1)
35876
36057
  })($nesting[0], $nesting);
35877
36058
  (function($base, $parent_nesting) {
35878
36059
  var self = $module($base, 'Factory');
35879
36060
 
35880
- var $nesting = [self].concat($parent_nesting), $Factory_register$11, $Factory_for$13, $Factory_create$14, $Factory_registry$15;
36061
+ var $nesting = [self].concat($parent_nesting), $Factory_register$12, $Factory_for$14, $Factory_create$15, $Factory_registry$16;
35881
36062
 
35882
36063
 
35883
36064
 
35884
- Opal.def(self, '$register', $Factory_register$11 = function $$register(syntax_highlighter, $a) {
35885
- var $post_args, names, $$12, self = this;
36065
+ Opal.def(self, '$register', $Factory_register$12 = function $$register(syntax_highlighter, $a) {
36066
+ var $post_args, names, $$13, self = this;
35886
36067
 
35887
36068
 
35888
36069
 
35889
36070
  $post_args = Opal.slice.call(arguments, 1, arguments.length);
35890
36071
 
35891
36072
  names = $post_args;;
35892
- return $send(names, 'each', [], ($$12 = function(name){var self = $$12.$$s || this, $writer = nil;
36073
+ return $send(names, 'each', [], ($$13 = function(name){var self = $$13.$$s || this, $writer = nil;
35893
36074
 
35894
36075
 
35895
36076
 
@@ -35898,16 +36079,16 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
35898
36079
  };
35899
36080
  $writer = [name, syntax_highlighter];
35900
36081
  $send(self.$registry(), '[]=', Opal.to_a($writer));
35901
- return $writer[$rb_minus($writer["length"], 1)];}, $$12.$$s = self, $$12.$$arity = 1, $$12));
35902
- }, $Factory_register$11.$$arity = -2);
36082
+ return $writer[$rb_minus($writer["length"], 1)];}, $$13.$$s = self, $$13.$$arity = 1, $$13));
36083
+ }, $Factory_register$12.$$arity = -2);
35903
36084
 
35904
- Opal.def(self, '$for', $Factory_for$13 = function(name) {
36085
+ Opal.def(self, '$for', $Factory_for$14 = function(name) {
35905
36086
  var self = this;
35906
36087
 
35907
36088
  return self.$registry()['$[]'](name)
35908
- }, $Factory_for$13.$$arity = 1);
36089
+ }, $Factory_for$14.$$arity = 1);
35909
36090
 
35910
- Opal.def(self, '$create', $Factory_create$14 = function $$create(name, backend, opts) {
36091
+ Opal.def(self, '$create', $Factory_create$15 = function $$create(name, backend, opts) {
35911
36092
  var self = this, syntax_hl = nil;
35912
36093
 
35913
36094
 
@@ -35931,25 +36112,25 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
35931
36112
  } else {
35932
36113
  return nil
35933
36114
  };
35934
- }, $Factory_create$14.$$arity = -2);
36115
+ }, $Factory_create$15.$$arity = -2);
35935
36116
  self.$private();
35936
36117
 
35937
- Opal.def(self, '$registry', $Factory_registry$15 = function $$registry() {
36118
+ Opal.def(self, '$registry', $Factory_registry$16 = function $$registry() {
35938
36119
  var self = this;
35939
36120
 
35940
36121
  return self.$raise($$$('::', 'NotImplementedError'), "" + ($$($nesting, 'Factory')) + " subclass " + (self.$class()) + " must implement the #" + ("registry") + " method")
35941
- }, $Factory_registry$15.$$arity = 0);
36122
+ }, $Factory_registry$16.$$arity = 0);
35942
36123
  })($nesting[0], $nesting);
35943
36124
  (function($base, $super, $parent_nesting) {
35944
36125
  var self = $klass($base, $super, 'CustomFactory');
35945
36126
 
35946
- var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$16, $CustomFactory_registry$17;
36127
+ var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$17, $CustomFactory_registry$18;
35947
36128
 
35948
36129
  self.$$prototype.registry = nil;
35949
36130
 
35950
36131
  self.$include($$($nesting, 'Factory'));
35951
36132
 
35952
- Opal.def(self, '$initialize', $CustomFactory_initialize$16 = function $$initialize(seed_registry) {
36133
+ Opal.def(self, '$initialize', $CustomFactory_initialize$17 = function $$initialize(seed_registry) {
35953
36134
  var $a, self = this;
35954
36135
 
35955
36136
 
@@ -35958,29 +36139,29 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
35958
36139
  seed_registry = nil;
35959
36140
  };
35960
36141
  return (self.registry = ($truthy($a = seed_registry) ? $a : $hash2([], {})));
35961
- }, $CustomFactory_initialize$16.$$arity = -1);
36142
+ }, $CustomFactory_initialize$17.$$arity = -1);
35962
36143
  self.$private();
35963
- return (Opal.def(self, '$registry', $CustomFactory_registry$17 = function $$registry() {
36144
+ return (Opal.def(self, '$registry', $CustomFactory_registry$18 = function $$registry() {
35964
36145
  var self = this;
35965
36146
 
35966
36147
  return self.registry
35967
- }, $CustomFactory_registry$17.$$arity = 0), nil) && 'registry';
36148
+ }, $CustomFactory_registry$18.$$arity = 0), nil) && 'registry';
35968
36149
  })($nesting[0], null, $nesting);
35969
36150
  (function($base, $parent_nesting) {
35970
36151
  var self = $module($base, 'DefaultFactory');
35971
36152
 
35972
- var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$18;
36153
+ var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$19;
35973
36154
 
35974
36155
 
35975
36156
  self.$include($$($nesting, 'Factory'));
35976
36157
  self.$private();
35977
36158
  (Opal.class_variable_set($nesting[0], '@@registry', $hash2([], {})));
35978
36159
 
35979
- Opal.def(self, '$registry', $DefaultFactory_registry$18 = function $$registry() {
36160
+ Opal.def(self, '$registry', $DefaultFactory_registry$19 = function $$registry() {
35980
36161
  var $a, self = this;
35981
36162
 
35982
36163
  return (($a = $nesting[0].$$cvars['@@registry']) == null ? nil : $a)
35983
- }, $DefaultFactory_registry$18.$$arity = 0);
36164
+ }, $DefaultFactory_registry$19.$$arity = 0);
35984
36165
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
35985
36166
  } else {
35986
36167
  nil
@@ -36002,13 +36183,13 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36002
36183
  (function($base, $super, $parent_nesting) {
36003
36184
  var self = $klass($base, $super, 'Base');
36004
36185
 
36005
- var $nesting = [self].concat($parent_nesting), $Base_format$19;
36186
+ var $nesting = [self].concat($parent_nesting), $Base_format$20;
36006
36187
 
36007
36188
  self.$$prototype.pre_class = nil;
36008
36189
 
36009
36190
  self.$include($$($nesting, 'SyntaxHighlighter'));
36010
- return (Opal.def(self, '$format', $Base_format$19 = function $$format(node, lang, opts) {
36011
- var $$20, $$21, self = this, class_attr_val = nil, transform = nil, pre = nil, code = nil;
36191
+ return (Opal.def(self, '$format', $Base_format$20 = function $$format(node, lang, opts) {
36192
+ var $$21, $$22, self = this, class_attr_val = nil, transform = nil, pre = nil, code = nil;
36012
36193
 
36013
36194
 
36014
36195
  class_attr_val = (function() {if ($truthy(opts['$[]']("nowrap"))) {
@@ -36025,7 +36206,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36025
36206
  return $hash2([], {})
36026
36207
  }; return nil; })();
36027
36208
  transform['$[]'](pre, code);
36028
- return "" + "<pre" + ($send(pre, 'map', [], ($$20 = function(k, v){var self = $$20.$$s || this;
36209
+ return "" + "<pre" + ($send(pre, 'map', [], ($$21 = function(k, v){var self = $$21.$$s || this;
36029
36210
 
36030
36211
 
36031
36212
 
@@ -36036,7 +36217,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36036
36217
  if (v == null) {
36037
36218
  v = nil;
36038
36219
  };
36039
- return "" + " " + (k) + "=\"" + (v) + "\"";}, $$20.$$s = self, $$20.$$arity = 2, $$20)).$join()) + "><code" + ($send(code, 'map', [], ($$21 = function(k, v){var self = $$21.$$s || this;
36220
+ return "" + " " + (k) + "=\"" + (v) + "\"";}, $$21.$$s = self, $$21.$$arity = 2, $$21)).$join()) + "><code" + ($send(code, 'map', [], ($$22 = function(k, v){var self = $$22.$$s || this;
36040
36221
 
36041
36222
 
36042
36223
 
@@ -36047,7 +36228,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36047
36228
  if (v == null) {
36048
36229
  v = nil;
36049
36230
  };
36050
- return "" + " " + (k) + "=\"" + (v) + "\"";}, $$21.$$s = self, $$21.$$arity = 2, $$21)).$join()) + ">" + (node.$content()) + "</code></pre>";
36231
+ return "" + " " + (k) + "=\"" + (v) + "\"";}, $$22.$$s = self, $$22.$$arity = 2, $$22)).$join()) + ">" + (node.$content()) + "</code></pre>";
36051
36232
  } else {
36052
36233
  return "" + "<pre class=\"" + (class_attr_val) + "\"><code" + ((function() {if ($truthy(lang)) {
36053
36234
  return "" + " data-lang=\"" + (lang) + "\""
@@ -36055,7 +36236,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36055
36236
  return ""
36056
36237
  }; return nil; })()) + ">" + (node.$content()) + "</code></pre>"
36057
36238
  };
36058
- }, $Base_format$19.$$arity = 3), nil) && 'format';
36239
+ }, $Base_format$20.$$arity = 3), nil) && 'format';
36059
36240
  })($nesting[0], null, $nesting);
36060
36241
  self.$extend($$($nesting, 'DefaultFactory'));
36061
36242
  })($nesting[0], $nesting)
@@ -36390,9 +36571,14 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
36390
36571
  $writer[$rb_minus($writer["length"], 1)];;
36391
36572
  Opal.const_set($nesting[0], 'DropAnchorRx', /<(?:a[^>+]+|\/a)>/);
36392
36573
  Opal.const_set($nesting[0], 'StemBreakRx', / *\\\n(?:\\?\n)*|\n\n+/);
36393
- Opal.const_set($nesting[0], 'SvgPreambleRx', /^.*?(?=<svg\b)/m);
36394
- Opal.const_set($nesting[0], 'SvgStartTagRx', /^<svg[^>]*>/);
36395
- Opal.const_set($nesting[0], 'DimensionAttributeRx', /\s(?:width|height|style)=(["']).*?\1/);
36574
+ if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
36575
+
36576
+ Opal.const_set($nesting[0], 'SvgPreambleRx', new RegExp("" + "^" + ($$($nesting, 'CC_ALL')) + "*?(?=<svg\\b)"));
36577
+ Opal.const_set($nesting[0], 'SvgStartTagRx', /^<svg[^>]*>/);
36578
+ } else {
36579
+ nil
36580
+ };
36581
+ Opal.const_set($nesting[0], 'DimensionAttributeRx', new RegExp("" + "\\s(?:width|height|style)=([\"'])" + ($$($nesting, 'CC_ANY')) + "*?\\1"));
36396
36582
 
36397
36583
  Opal.def(self, '$initialize', $Html5Converter_initialize$1 = function $$initialize(backend, opts) {
36398
36584
  var self = this, syntax = nil;
@@ -38230,10 +38416,10 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38230
38416
  }, $Html5Converter_convert_inline_footnote$53.$$arity = 1);
38231
38417
 
38232
38418
  Opal.def(self, '$convert_inline_image', $Html5Converter_convert_inline_image$54 = function $$convert_inline_image(node) {
38233
- var $a, $$55, $$56, $b, $c, $d, self = this, type = nil, class_attr_val = nil, title_attr = nil, img = nil, target = nil, attrs = nil, svg = nil, obj = nil, fallback = nil, role = nil;
38419
+ var $a, $b, $$55, $$56, $c, $d, self = this, type = nil, class_attr_val = nil, title_attr = nil, img = nil, target = nil, attrs = nil, svg = nil, obj = nil, fallback = nil, role = nil;
38234
38420
 
38235
38421
 
38236
- if ($truthy((($a = (type = node.$type())['$==']("icon")) ? node.$document()['$attr?']("icons", "font") : (type = node.$type())['$==']("icon")))) {
38422
+ if ($truthy((($a = (type = ($truthy($b = node.$type()) ? $b : "image"))['$==']("icon")) ? node.$document()['$attr?']("icons", "font") : (type = ($truthy($b = node.$type()) ? $b : "image"))['$==']("icon")))) {
38237
38423
 
38238
38424
  class_attr_val = "" + "fa fa-" + (node.$target());
38239
38425
  $send($hash2(["size", "rotate", "flip"], {"size": "fa-", "rotate": "fa-rotate-", "flip": "fa-flip-"}), 'each', [], ($$55 = function(key, prefix){var self = $$55.$$s || this;
@@ -39358,7 +39544,7 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
39358
39544
  return "(){0}"
39359
39545
  } else {
39360
39546
  return "(\\S+?)"
39361
- }; return nil; })()) + "\\[(|.*?[^\\\\])\\]")]), $send((($b = $nesting[0].$$cvars['@@rx_cache']) == null ? nil : $b), '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
39547
+ }; return nil; })()) + "\\[(|" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\]")]), $send((($b = $nesting[0].$$cvars['@@rx_cache']) == null ? nil : $b), '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
39362
39548
  }, $InlineMacroProcessor_resolve_regexp$46.$$arity = 2), nil) && 'resolve_regexp';
39363
39549
  })($nesting[0], $$($nesting, 'MacroProcessor'), $nesting);
39364
39550
  (function($base, $parent_nesting) {
@@ -40457,9 +40643,9 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40457
40643
  function $rb_minus(lhs, rhs) {
40458
40644
  return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);
40459
40645
  }
40460
- var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $send = Opal.send, $hash2 = Opal.hash2, $truthy = Opal.truthy, $hash = Opal.hash;
40646
+ var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $send = Opal.send, $hash2 = Opal.hash2, $truthy = Opal.truthy;
40461
40647
 
40462
- Opal.add_stubs(['$require', '$==', '$tap', '$each', '$constants', '$const_get', '$downcase', '$to_s', '$[]=', '$-', '$upcase', '$[]', '$values', '$new', '$attr_reader', '$instance_variable_set', '$send', '$singleton_class', '$<<', '$define', '$dirname', '$absolute_path', '$__dir__', '$join', '$home', '$pwd', '$to_set', '$each_key', '$slice', '$length', '$merge', '$default=', '$to_a', '$empty?', '$escape', '$drop', '$insert']);
40648
+ Opal.add_stubs(['$require', '$==', '$tap', '$each', '$constants', '$const_get', '$downcase', '$to_s', '$[]=', '$-', '$upcase', '$[]', '$values', '$new', '$attr_reader', '$instance_variable_set', '$send', '$singleton_class', '$<<', '$define', '$dirname', '$absolute_path', '$__dir__', '$join', '$home', '$pwd', '$to_set', '$chr', '$each_key', '$slice', '$length', '$merge', '$default=', '$drop', '$insert']);
40463
40649
 
40464
40650
  self.$require("set");
40465
40651
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
@@ -40470,7 +40656,7 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40470
40656
  (function($base, $parent_nesting) {
40471
40657
  var self = $module($base, 'Asciidoctor');
40472
40658
 
40473
- var $nesting = [self].concat($parent_nesting), $a, $b, $Asciidoctor$7, $Asciidoctor$9, $Asciidoctor$11, $Asciidoctor$12, $Asciidoctor$13, $writer = nil;
40659
+ var $nesting = [self].concat($parent_nesting), $a, $b, $Asciidoctor$7, $Asciidoctor$9, $Asciidoctor$11, $Asciidoctor$13, $writer = nil;
40474
40660
 
40475
40661
 
40476
40662
  Opal.const_set($nesting[0], 'RUBY_ENGINE_OPAL', Opal.const_set($nesting[0], 'RUBY_ENGINE', $$$('::', 'RUBY_ENGINE'))['$==']("opal"));
@@ -40598,18 +40784,32 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40598
40784
  Opal.const_set($nesting[0], 'ASCIIDOC_EXTENSIONS', $hash2([".adoc", ".asciidoc", ".asc", ".ad", ".txt"], {".adoc": true, ".asciidoc": true, ".asc": true, ".ad": true, ".txt": true}));
40599
40785
  Opal.const_set($nesting[0], 'SETEXT_SECTION_LEVELS', $hash2(["=", "-", "~", "^", "+"], {"=": 0, "-": 1, "~": 2, "^": 3, "+": 4}));
40600
40786
  Opal.const_set($nesting[0], 'ADMONITION_STYLES', ["NOTE", "TIP", "IMPORTANT", "WARNING", "CAUTION"].$to_set());
40601
- Opal.const_set($nesting[0], 'ADMONITION_STYLE_HEADS', ["N", "T", "I", "W", "C"].$to_set());
40787
+ Opal.const_set($nesting[0], 'ADMONITION_STYLE_HEADS', $send($$$('::', 'Set').$new(), 'tap', [], ($Asciidoctor$7 = function(accum){var self = $Asciidoctor$7.$$s || this, $$8;
40788
+
40789
+
40790
+
40791
+ if (accum == null) {
40792
+ accum = nil;
40793
+ };
40794
+ return $send($$($nesting, 'ADMONITION_STYLES'), 'each', [], ($$8 = function(s){var self = $$8.$$s || this;
40795
+
40796
+
40797
+
40798
+ if (s == null) {
40799
+ s = nil;
40800
+ };
40801
+ return accum['$<<'](s.$chr());}, $$8.$$s = self, $$8.$$arity = 1, $$8));}, $Asciidoctor$7.$$s = self, $Asciidoctor$7.$$arity = 1, $Asciidoctor$7)));
40602
40802
  Opal.const_set($nesting[0], 'PARAGRAPH_STYLES', ["comment", "example", "literal", "listing", "normal", "open", "pass", "quote", "sidebar", "source", "verse", "abstract", "partintro"].$to_set());
40603
40803
  Opal.const_set($nesting[0], 'VERBATIM_STYLES', ["literal", "listing", "source", "verse"].$to_set());
40604
40804
  Opal.const_set($nesting[0], 'DELIMITED_BLOCKS', $hash2(["--", "----", "....", "====", "****", "____", "++++", "|===", ",===", ":===", "!===", "////", "```"], {"--": ["open", ["comment", "example", "literal", "listing", "pass", "quote", "sidebar", "source", "verse", "admonition", "abstract", "partintro"].$to_set()], "----": ["listing", ["literal", "source"].$to_set()], "....": ["literal", ["listing", "source"].$to_set()], "====": ["example", ["admonition"].$to_set()], "****": ["sidebar", $$$('::', 'Set').$new()], "____": ["quote", ["verse"].$to_set()], "++++": ["pass", ["stem", "latexmath", "asciimath"].$to_set()], "|===": ["table", $$$('::', 'Set').$new()], ",===": ["table", $$$('::', 'Set').$new()], ":===": ["table", $$$('::', 'Set').$new()], "!===": ["table", $$$('::', 'Set').$new()], "////": ["comment", $$$('::', 'Set').$new()], "```": ["fenced_code", $$$('::', 'Set').$new()]}));
40605
- Opal.const_set($nesting[0], 'DELIMITED_BLOCK_HEADS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$7 = function(accum){var self = $Asciidoctor$7.$$s || this, $$8;
40805
+ Opal.const_set($nesting[0], 'DELIMITED_BLOCK_HEADS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$9 = function(accum){var self = $Asciidoctor$9.$$s || this, $$10;
40606
40806
 
40607
40807
 
40608
40808
 
40609
40809
  if (accum == null) {
40610
40810
  accum = nil;
40611
40811
  };
40612
- return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$8 = function(k){var self = $$8.$$s || this, $writer = nil;
40812
+ return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$10 = function(k){var self = $$10.$$s || this, $writer = nil;
40613
40813
 
40614
40814
 
40615
40815
 
@@ -40618,15 +40818,15 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40618
40818
  };
40619
40819
  $writer = [k.$slice(0, 2), true];
40620
40820
  $send(accum, '[]=', Opal.to_a($writer));
40621
- return $writer[$rb_minus($writer["length"], 1)];}, $$8.$$s = self, $$8.$$arity = 1, $$8));}, $Asciidoctor$7.$$s = self, $Asciidoctor$7.$$arity = 1, $Asciidoctor$7)));
40622
- Opal.const_set($nesting[0], 'DELIMITED_BLOCK_TAILS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$9 = function(accum){var self = $Asciidoctor$9.$$s || this, $$10;
40821
+ return $writer[$rb_minus($writer["length"], 1)];}, $$10.$$s = self, $$10.$$arity = 1, $$10));}, $Asciidoctor$9.$$s = self, $Asciidoctor$9.$$arity = 1, $Asciidoctor$9)));
40822
+ Opal.const_set($nesting[0], 'DELIMITED_BLOCK_TAILS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$11 = function(accum){var self = $Asciidoctor$11.$$s || this, $$12;
40623
40823
 
40624
40824
 
40625
40825
 
40626
40826
  if (accum == null) {
40627
40827
  accum = nil;
40628
40828
  };
40629
- return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$10 = function(k){var self = $$10.$$s || this, $writer = nil;
40829
+ return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$12 = function(k){var self = $$12.$$s || this, $writer = nil;
40630
40830
 
40631
40831
 
40632
40832
 
@@ -40640,7 +40840,7 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40640
40840
  return $writer[$rb_minus($writer["length"], 1)];
40641
40841
  } else {
40642
40842
  return nil
40643
- };}, $$10.$$s = self, $$10.$$arity = 1, $$10));}, $Asciidoctor$9.$$s = self, $Asciidoctor$9.$$arity = 1, $Asciidoctor$9)));
40843
+ };}, $$12.$$s = self, $$12.$$arity = 1, $$12));}, $Asciidoctor$11.$$s = self, $Asciidoctor$11.$$arity = 1, $Asciidoctor$11)));
40644
40844
  Opal.const_set($nesting[0], 'CAPTION_ATTR_NAMES', $hash2(["example", "figure", "listing", "table"], {"example": "example-caption", "figure": "figure-caption", "listing": "listing-caption", "table": "table-caption"}));
40645
40845
  Opal.const_set($nesting[0], 'LAYOUT_BREAK_CHARS', $hash2(["'", "<"], {"'": "thematic_break", "<": "page_break"}));
40646
40846
  Opal.const_set($nesting[0], 'MARKDOWN_THEMATIC_BREAK_CHARS', $hash2(["-", "*", "_"], {"-": "thematic_break", "*": "thematic_break", "_": "thematic_break"}));
@@ -40663,129 +40863,11 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40663
40863
  Opal.const_set($nesting[0], 'HIGHLIGHT_JS_VERSION', "9.15.6");
40664
40864
  Opal.const_set($nesting[0], 'MATHJAX_VERSION', "2.7.5");
40665
40865
  Opal.const_set($nesting[0], 'FLEXIBLE_ATTRIBUTES', ["sectnums"]);
40866
+ Opal.const_set($nesting[0], 'INTRINSIC_ATTRIBUTES', $hash2(["startsb", "endsb", "vbar", "caret", "asterisk", "tilde", "plus", "backslash", "backtick", "blank", "empty", "sp", "two-colons", "two-semicolons", "nbsp", "deg", "zwsp", "quot", "apos", "lsquo", "rsquo", "ldquo", "rdquo", "wj", "brvbar", "pp", "cpp", "amp", "lt", "gt"], {"startsb": "[", "endsb": "]", "vbar": "|", "caret": "^", "asterisk": "*", "tilde": "~", "plus": "&#43;", "backslash": "\\", "backtick": "`", "blank": "", "empty": "", "sp": " ", "two-colons": "::", "two-semicolons": ";;", "nbsp": "&#160;", "deg": "&#176;", "zwsp": "&#8203;", "quot": "&#34;", "apos": "&#39;", "lsquo": "&#8216;", "rsquo": "&#8217;", "ldquo": "&#8220;", "rdquo": "&#8221;", "wj": "&#8288;", "brvbar": "&#166;", "pp": "&#43;&#43;", "cpp": "C&#43;&#43;", "amp": "&", "lt": "<", "gt": ">"}));
40666
40867
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
40667
40868
  } else {
40668
40869
  nil
40669
40870
  };
40670
- Opal.const_set($nesting[0], 'AuthorInfoLineRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*)(?: +(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*))?(?: +(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*))?(?: +<([^>]+)>)?$"));
40671
- Opal.const_set($nesting[0], 'AuthorDelimiterRx', /;(?: |$)/);
40672
- Opal.const_set($nesting[0], 'RevisionInfoLineRx', new RegExp("" + "^(?:[^\\d{]*(" + ($$($nesting, 'CC_ANY')) + "*?),)? *(?!:)(" + ($$($nesting, 'CC_ANY')) + "*?)(?: *(?!^),?: *(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
40673
- Opal.const_set($nesting[0], 'ManpageTitleVolnumRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *\\( *(" + ($$($nesting, 'CC_ANY')) + "+?) *\\)$"));
40674
- Opal.const_set($nesting[0], 'ManpageNamePurposeRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) +- +(" + ($$($nesting, 'CC_ANY')) + "+)$"));
40675
- Opal.const_set($nesting[0], 'ConditionalDirectiveRx', new RegExp("" + "^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40676
- Opal.const_set($nesting[0], 'EvalExpressionRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *([=!><]=|[><]) *(" + ($$($nesting, 'CC_ANY')) + "+)$"));
40677
- Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\[][^\\[]*)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40678
- Opal.const_set($nesting[0], 'TagDirectiveRx', /\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m);
40679
- Opal.const_set($nesting[0], 'AttributeEntryRx', new RegExp("" + "^:(!?" + ($$($nesting, 'CG_WORD')) + "[^:]*):(?:[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
40680
- Opal.const_set($nesting[0], 'InvalidAttributeNameCharsRx', new RegExp("" + "[^-" + ($$($nesting, 'CC_WORD')) + "]"));
40681
- if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
40682
- Opal.const_set($nesting[0], 'AttributeEntryPassMacroRx', new RegExp("" + "^pass:([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*)\\]$"))
40683
- } else {
40684
- nil
40685
- };
40686
- Opal.const_set($nesting[0], 'AttributeReferenceRx', new RegExp("" + "(\\\\)?\\{(" + ($$($nesting, 'CG_WORD')) + "[-" + ($$($nesting, 'CC_WORD')) + "]*|(set|counter2?):" + ($$($nesting, 'CC_ANY')) + "+?)(\\\\)?\\}"));
40687
- Opal.const_set($nesting[0], 'BlockAnchorRx', new RegExp("" + "^\\[\\[(?:|([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?)\\]\\]$"));
40688
- Opal.const_set($nesting[0], 'BlockAttributeListRx', new RegExp("" + "^\\[(|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*)\\]$"));
40689
- Opal.const_set($nesting[0], 'BlockAttributeLineRx', new RegExp("" + "^\\[(?:|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*|\\[(?:|[" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*(?:, *" + ($$($nesting, 'CC_ANY')) + "+)?)\\])\\]$"));
40690
- Opal.const_set($nesting[0], 'BlockTitleRx', new RegExp("" + "^\\.(\\.?[^ \\t.]" + ($$($nesting, 'CC_ANY')) + "*)$"));
40691
- Opal.const_set($nesting[0], 'AdmonitionParagraphRx', new RegExp("" + "^(" + ($$($nesting, 'ADMONITION_STYLES').$to_a().$join("|")) + "):[ \\t]+"));
40692
- Opal.const_set($nesting[0], 'LiteralParagraphRx', new RegExp("" + "^([ \\t]+" + ($$($nesting, 'CC_ANY')) + "*)$"));
40693
- Opal.const_set($nesting[0], 'AtxSectionTitleRx', new RegExp("" + "^(=={0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
40694
- Opal.const_set($nesting[0], 'ExtAtxSectionTitleRx', new RegExp("" + "^(=={0,5}|#\\\#{0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
40695
- Opal.const_set($nesting[0], 'SetextSectionTitleRx', new RegExp("" + "^((?!\\.)" + ($$($nesting, 'CC_ANY')) + "*?" + ($$($nesting, 'CG_ALNUM')) + ($$($nesting, 'CC_ANY')) + "*)$"));
40696
- Opal.const_set($nesting[0], 'InlineSectionAnchorRx', new RegExp("" + " (\\\\)?\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?\\]\\]$"));
40697
- Opal.const_set($nesting[0], 'InvalidSectionIdCharsRx', new RegExp("" + "<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ " + ($$($nesting, 'CC_WORD')) + "\\-.]+?"));
40698
- Opal.const_set($nesting[0], 'SectionLevelStyleRx', /^sect\d$/);
40699
- Opal.const_set($nesting[0], 'AnyListRx', new RegExp("" + "^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?(?::::{0,2}|;;)(?:$|[ \\t])|<?\\d+>[ \\t])"));
40700
- Opal.const_set($nesting[0], 'UnorderedListRx', new RegExp("" + "^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
40701
- Opal.const_set($nesting[0], 'OrderedListRx', new RegExp("" + "^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
40702
- Opal.const_set($nesting[0], 'OrderedListMarkerRxMap', $hash2(["arabic", "loweralpha", "lowerroman", "upperalpha", "upperroman"], {"arabic": /\d+\./, "loweralpha": /[a-z]\./, "lowerroman": /[ivx]+\)/, "upperalpha": /[A-Z]\./, "upperroman": /[IVX]+\)/}));
40703
- Opal.const_set($nesting[0], 'DescriptionListRx', new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(:::{0,2}|;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"));
40704
- Opal.const_set($nesting[0], 'DescriptionListSiblingRx', $hash2(["::", ":::", "::::", ";;"], {"::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), ":::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), "::::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), ";;": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)")}));
40705
- Opal.const_set($nesting[0], 'CalloutListRx', new RegExp("" + "^<(\\d+|\\.)>[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
40706
- Opal.const_set($nesting[0], 'CalloutExtractRx', /((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/);
40707
- Opal.const_set($nesting[0], 'CalloutExtractRxt', "(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)");
40708
- Opal.const_set($nesting[0], 'CalloutExtractRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$11 = function(h, k){var self = $Asciidoctor$11.$$s || this;
40709
-
40710
-
40711
-
40712
- if (h == null) {
40713
- h = nil;
40714
- };
40715
-
40716
- if (k == null) {
40717
- k = nil;
40718
- };
40719
- $writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
40720
- return ""
40721
- } else {
40722
- return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
40723
- }; return nil; })()) + ")?" + ($$($nesting, 'CalloutExtractRxt')))];
40724
- $send(h, '[]=', Opal.to_a($writer));
40725
- return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$11.$$s = self, $Asciidoctor$11.$$arity = 2, $Asciidoctor$11)));
40726
- Opal.const_set($nesting[0], 'CalloutScanRx', new RegExp("" + "\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*" + ($$($nesting, 'CC_EOL')) + ")"));
40727
- Opal.const_set($nesting[0], 'CalloutSourceRx', new RegExp("" + "((?://|#|--|;;) ?)?(\\\\)?&lt;!?(|--)(\\d+|\\.)\\3&gt;(?=(?: ?\\\\?&lt;!?\\3(?:\\d+|\\.)\\3&gt;)*" + ($$($nesting, 'CC_EOL')) + ")"));
40728
- Opal.const_set($nesting[0], 'CalloutSourceRxt', "" + "(\\\\)?&lt;()(\\d+|\\.)&gt;(?=(?: ?\\\\?&lt;(?:\\d+|\\.)&gt;)*" + ($$($nesting, 'CC_EOL')) + ")");
40729
- Opal.const_set($nesting[0], 'CalloutSourceRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$12 = function(h, k){var self = $Asciidoctor$12.$$s || this;
40730
-
40731
-
40732
-
40733
- if (h == null) {
40734
- h = nil;
40735
- };
40736
-
40737
- if (k == null) {
40738
- k = nil;
40739
- };
40740
- $writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
40741
- return ""
40742
- } else {
40743
- return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
40744
- }; return nil; })()) + ")?" + ($$($nesting, 'CalloutSourceRxt')))];
40745
- $send(h, '[]=', Opal.to_a($writer));
40746
- return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$12.$$s = self, $Asciidoctor$12.$$arity = 2, $Asciidoctor$12)));
40747
- Opal.const_set($nesting[0], 'ListRxMap', $hash2(["ulist", "olist", "dlist", "colist"], {"ulist": $$($nesting, 'UnorderedListRx'), "olist": $$($nesting, 'OrderedListRx'), "dlist": $$($nesting, 'DescriptionListRx'), "colist": $$($nesting, 'CalloutListRx')}));
40748
- Opal.const_set($nesting[0], 'ColumnSpecRx', /^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/);
40749
- Opal.const_set($nesting[0], 'CellSpecStartRx', /^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
40750
- Opal.const_set($nesting[0], 'CellSpecEndRx', /[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
40751
- Opal.const_set($nesting[0], 'CustomBlockMacroRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[-" + ($$($nesting, 'CC_WORD')) + "]*)::(|\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40752
- Opal.const_set($nesting[0], 'BlockMediaMacroRx', new RegExp("" + "^(image|video|audio)::(\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40753
- Opal.const_set($nesting[0], 'BlockTocMacroRx', new RegExp("" + "^toc::\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40754
- Opal.const_set($nesting[0], 'InlineAnchorRx', new RegExp("" + "(\\\\)?(?:\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]|anchor:([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)\\[(?:\\]|(" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\]))"));
40755
- Opal.const_set($nesting[0], 'InlineAnchorScanRx', new RegExp("" + "(?:^|[^\\\\\\[])\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]|(?:^|[^\\\\])anchor:([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)\\[(?:\\]|(" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\])"));
40756
- Opal.const_set($nesting[0], 'LeadingInlineAnchorRx', new RegExp("" + "^\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]"));
40757
- Opal.const_set($nesting[0], 'InlineBiblioAnchorRx', new RegExp("" + "^\\[\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]\\]"));
40758
- Opal.const_set($nesting[0], 'InlineEmailRx', new RegExp("" + "([\\\\>:/])?" + ($$($nesting, 'CG_WORD')) + "(?:&amp;|[" + ($$($nesting, 'CC_WORD')) + ".%+-])*@" + ($$($nesting, 'CG_ALNUM')) + "[" + ($$($nesting, 'CC_ALNUM')) + "_.-]*\\.[a-zA-Z]{2,5}\\b"));
40759
- Opal.const_set($nesting[0], 'InlineFootnoteMacroRx', new RegExp("" + "\\\\?footnote(?:(ref):|:([\\w-]+)?)\\[(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))\\]", 'm'));
40760
- Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
40761
- Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
40762
- Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
40763
- Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|&lt;|[>\\(\\)\\[\\];])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])?", 'm'));
40764
- Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
40765
- Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[-" + ($$($nesting, 'CC_WORD')) + "]*$"));
40766
- Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
40767
- Opal.const_set($nesting[0], 'InlineMenuMacroRx', new RegExp("" + "\\\\?menu:(" + ($$($nesting, 'CG_WORD')) + "|[" + ($$($nesting, 'CC_WORD')) + "&][^\\n\\[]*[^\\s\\[])\\[ *(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])?\\]", 'm'));
40768
- Opal.const_set($nesting[0], 'InlineMenuRx', new RegExp("" + "\\\\?\"([" + ($$($nesting, 'CC_WORD')) + "&][^\"]*?[ \\n]+&gt;[ \\n]+[^\"]*)\""));
40769
- Opal.const_set($nesting[0], 'InlinePassRx', $hash(false, ["+", "`", new RegExp("" + "(^|[^" + ($$($nesting, 'CC_WORD')) + ";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\4)(?!" + ($$($nesting, 'CG_WORD')) + ")", 'm')], true, ["`", nil, new RegExp("" + "(^|[^`" + ($$($nesting, 'CC_WORD')) + "])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\4)(?![`" + ($$($nesting, 'CC_WORD')) + "])", 'm')]));
40770
- Opal.const_set($nesting[0], 'SinglePlusInlinePassRx', new RegExp("" + "^(\\\\)?\\+(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\+$", 'm'));
40771
- Opal.const_set($nesting[0], 'InlinePassMacroRx', new RegExp("" + "(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(" + ($$($nesting, 'CC_ALL')) + "*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])", 'm'));
40772
- Opal.const_set($nesting[0], 'InlineXrefMacroRx', new RegExp("" + "\\\\?(?:&lt;&lt;([" + ($$($nesting, 'CC_WORD')) + "#/.:{]" + ($$($nesting, 'CC_ALL')) + "*?)&gt;&gt;|xref:([" + ($$($nesting, 'CC_WORD')) + "#/.:{]" + ($$($nesting, 'CC_ALL')) + "*?)\\[(?:\\]|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]))", 'm'));
40773
- if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
40774
- Opal.const_set($nesting[0], 'HardLineBreakRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "*) \\+$", 'm'))
40775
- } else {
40776
- nil
40777
- };
40778
- Opal.const_set($nesting[0], 'MarkdownThematicBreakRx', /^ {0,3}([-*_])( *)\1\2\1$/);
40779
- Opal.const_set($nesting[0], 'ExtLayoutBreakRx', /^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/);
40780
- Opal.const_set($nesting[0], 'BlankLineRx', /\n{2,}/);
40781
- Opal.const_set($nesting[0], 'EscapedSpaceRx', /\\([ \t\n])/);
40782
- Opal.const_set($nesting[0], 'ReplaceableTextRx', /[&']|--|\.\.\.|\([CRT]M?\)/);
40783
- Opal.const_set($nesting[0], 'SpaceDelimiterRx', /([^\\])[ \t\n]+/);
40784
- Opal.const_set($nesting[0], 'SubModifierSniffRx', /[+-]/);
40785
- Opal.const_set($nesting[0], 'TrailingDigitsRx', /\d+$/);
40786
- Opal.const_set($nesting[0], 'UriSniffRx', new RegExp("" + "^" + ($$($nesting, 'CG_ALPHA')) + "[" + ($$($nesting, 'CC_ALNUM')) + ".+-]+:/{0,2}"));
40787
- Opal.const_set($nesting[0], 'XmlSanitizeRx', /<[^>]+>/);
40788
- Opal.const_set($nesting[0], 'INTRINSIC_ATTRIBUTES', $hash2(["startsb", "endsb", "vbar", "caret", "asterisk", "tilde", "plus", "backslash", "backtick", "blank", "empty", "sp", "two-colons", "two-semicolons", "nbsp", "deg", "zwsp", "quot", "apos", "lsquo", "rsquo", "ldquo", "rdquo", "wj", "brvbar", "pp", "cpp", "amp", "lt", "gt"], {"startsb": "[", "endsb": "]", "vbar": "|", "caret": "^", "asterisk": "*", "tilde": "~", "plus": "&#43;", "backslash": "\\", "backtick": "`", "blank": "", "empty": "", "sp": " ", "two-colons": "::", "two-semicolons": ";;", "nbsp": "&#160;", "deg": "&#176;", "zwsp": "&#8203;", "quot": "&#34;", "apos": "&#39;", "lsquo": "&#8216;", "rsquo": "&#8217;", "ldquo": "&#8220;", "rdquo": "&#8221;", "wj": "&#8288;", "brvbar": "&#166;", "pp": "&#43;&#43;", "cpp": "C&#43;&#43;", "amp": "&", "lt": "<", "gt": ">"}));
40789
40871
  Opal.const_set($nesting[0], 'QUOTE_SUBS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$13 = function(accum){var self = $Asciidoctor$13.$$s || this, normal = nil, compat = nil;
40790
40872
 
40791
40873
 
@@ -40831,6 +40913,7 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40831
40913
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/core_ext");
40832
40914
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/helpers");
40833
40915
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/logging");
40916
+ self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/rx");
40834
40917
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/substitutors");
40835
40918
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/version");
40836
40919
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/abstract_node");
@@ -43887,6 +43970,12 @@ InlineMacroProcessor.prototype.getName = function () {
43887
43970
  InlineMacroProcessor.prototype.parseContentAs = function (value) {
43888
43971
  this.$parse_content_as(value)
43889
43972
  }
43973
+ /**
43974
+ * @memberof Extensions/InlineMacroProcessor
43975
+ */
43976
+ InlineMacroProcessor.prototype.matchFormat = function (value) {
43977
+ this.$match_format(value)
43978
+ }
43890
43979
 
43891
43980
  /**
43892
43981
  * @namespace
@@ -44311,7 +44400,7 @@ Html5Converter.prototype.convert = function (node, transform, opts) {
44311
44400
  }
44312
44401
 
44313
44402
 
44314
- var ASCIIDOCTOR_JS_VERSION = '2.0.2';
44403
+ var ASCIIDOCTOR_JS_VERSION = '2.0.3';
44315
44404
 
44316
44405
  /**
44317
44406
  * Get Asciidoctor.js version number.