@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Asciidoctor.js 2.0.2 | MIT | https://github.com/asciidoctor/asciidoctor.js
2
+ * @license Asciidoctor.js 2.0.3 | MIT | https://github.com/asciidoctor/asciidoctor.js
3
3
  */
4
4
  (function(undefined) {
5
5
  // @note
@@ -21750,7 +21750,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21750
21750
  }
21751
21751
  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;
21752
21752
 
21753
- 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']);
21753
+ 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']);
21754
21754
  return (function($base, $parent_nesting) {
21755
21755
  var self = $module($base, 'Asciidoctor');
21756
21756
 
@@ -21759,10 +21759,12 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21759
21759
  (function($base, $parent_nesting) {
21760
21760
  var self = $module($base, 'Helpers');
21761
21761
 
21762
- 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;
21762
+ 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;
21763
21763
 
21764
21764
 
21765
- Opal.defs(self, '$require_library', $Helpers_require_library$1 = function $$require_library(name, gem_name, on_failure) {
21765
+ self.$module_function();
21766
+
21767
+ Opal.def(self, '$require_library', $Helpers_require_library$1 = function $$require_library(name, gem_name, on_failure) {
21766
21768
  var self = this, $case = nil, details = nil;
21767
21769
  if ($gvars["!"] == null) $gvars["!"] = nil;
21768
21770
 
@@ -21822,7 +21824,8 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21822
21824
  } else { throw $err; }
21823
21825
  };
21824
21826
  }, $Helpers_require_library$1.$$arity = -2);
21825
- Opal.defs(self, '$prepare_source_array', $Helpers_prepare_source_array$2 = function $$prepare_source_array(data) {
21827
+
21828
+ Opal.def(self, '$prepare_source_array', $Helpers_prepare_source_array$2 = function $$prepare_source_array(data) {
21826
21829
  var $$3, $$4, $$5, $$6, self = this, leading_2_bytes = nil, leading_bytes = nil, first = nil, $writer = nil;
21827
21830
 
21828
21831
 
@@ -21881,7 +21884,8 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21881
21884
  return line.$encode($$($nesting, 'UTF_8')).$rstrip();}, $$6.$$s = self, $$6.$$arity = 1, $$6))
21882
21885
  };
21883
21886
  }, $Helpers_prepare_source_array$2.$$arity = 1);
21884
- Opal.defs(self, '$prepare_source_string', $Helpers_prepare_source_string$7 = function $$prepare_source_string(data) {
21887
+
21888
+ Opal.def(self, '$prepare_source_string', $Helpers_prepare_source_string$7 = function $$prepare_source_string(data) {
21885
21889
  var $$8, self = this, leading_2_bytes = nil, leading_bytes = nil;
21886
21890
 
21887
21891
 
@@ -21916,22 +21920,15 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21916
21920
  };
21917
21921
  return lines['$<<'](line.$rstrip());}, $$9.$$s = self, $$9.$$arity = 1, $$9));}, $$8.$$s = self, $$8.$$arity = 1, $$8));
21918
21922
  }, $Helpers_prepare_source_string$7.$$arity = 1);
21919
- Opal.defs(self, '$uriish?', $Helpers_uriish$ques$10 = function(str) {
21923
+
21924
+ Opal.def(self, '$uriish?', $Helpers_uriish$ques$10 = function(str) {
21920
21925
  var $a, self = this;
21921
21926
 
21922
21927
  return ($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$match?'](str) : $a)
21923
21928
  }, $Helpers_uriish$ques$10.$$arity = 1);
21924
- Opal.defs(self, '$uri_prefix', $Helpers_uri_prefix$11 = function $$uri_prefix(str) {
21925
- var $a, self = this;
21926
-
21927
- if ($truthy(($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$=~'](str) : $a))) {
21928
- return (($a = $gvars['~']) === nil ? nil : $a['$[]'](0))
21929
- } else {
21930
- return nil
21931
- }
21932
- }, $Helpers_uri_prefix$11.$$arity = 1);
21933
21929
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
21934
- Opal.defs(self, '$encode_uri_component', $Helpers_encode_uri_component$12 = function $$encode_uri_component(str) {
21930
+
21931
+ Opal.def(self, '$encode_uri_component', $Helpers_encode_uri_component$11 = function $$encode_uri_component(str) {
21935
21932
  var self = this;
21936
21933
 
21937
21934
 
@@ -21939,11 +21936,12 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21939
21936
  return m === '%20' ? '+' : '%' + m.charCodeAt(0).toString(16)
21940
21937
  })
21941
21938
 
21942
- }, $Helpers_encode_uri_component$12.$$arity = 1)
21939
+ }, $Helpers_encode_uri_component$11.$$arity = 1)
21943
21940
  } else {
21944
21941
  nil
21945
21942
  };
21946
- Opal.defs(self, '$encode_uri', $Helpers_encode_uri$13 = function $$encode_uri(str) {
21943
+
21944
+ Opal.def(self, '$encode_spaces_in_uri', $Helpers_encode_spaces_in_uri$12 = function $$encode_spaces_in_uri(str) {
21947
21945
  var self = this;
21948
21946
 
21949
21947
  if ($truthy(str['$include?'](" "))) {
@@ -21952,8 +21950,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21952
21950
  } else {
21953
21951
  return str
21954
21952
  }
21955
- }, $Helpers_encode_uri$13.$$arity = 1);
21956
- Opal.defs(self, '$rootname', $Helpers_rootname$14 = function $$rootname(filename) {
21953
+ }, $Helpers_encode_spaces_in_uri$12.$$arity = 1);
21954
+
21955
+ Opal.def(self, '$rootname', $Helpers_rootname$13 = function $$rootname(filename) {
21957
21956
  var self = this, last_dot_idx = nil;
21958
21957
 
21959
21958
  if ($truthy((last_dot_idx = filename.$rindex(".")))) {
@@ -21966,8 +21965,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21966
21965
  } else {
21967
21966
  return filename
21968
21967
  }
21969
- }, $Helpers_rootname$14.$$arity = 1);
21970
- Opal.defs(self, '$basename', $Helpers_basename$15 = function $$basename(filename, drop_ext) {
21968
+ }, $Helpers_rootname$13.$$arity = 1);
21969
+
21970
+ Opal.def(self, '$basename', $Helpers_basename$14 = function $$basename(filename, drop_ext) {
21971
21971
  var self = this;
21972
21972
 
21973
21973
 
@@ -21985,14 +21985,16 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21985
21985
  } else {
21986
21986
  return $$$('::', 'File').$basename(filename)
21987
21987
  };
21988
- }, $Helpers_basename$15.$$arity = -2);
21989
- Opal.defs(self, '$extname?', $Helpers_extname$ques$16 = function(path) {
21988
+ }, $Helpers_basename$14.$$arity = -2);
21989
+
21990
+ Opal.def(self, '$extname?', $Helpers_extname$ques$15 = function(path) {
21990
21991
  var $a, self = this, last_dot_idx = nil;
21991
21992
 
21992
21993
  return ($truthy($a = (last_dot_idx = path.$rindex("."))) ? path.$index("/", last_dot_idx)['$!']() : $a)
21993
- }, $Helpers_extname$ques$16.$$arity = 1);
21994
+ }, $Helpers_extname$ques$15.$$arity = 1);
21994
21995
  if ($truthy($$$($$$('::', 'File'), 'ALT_SEPARATOR'))) {
21995
- Opal.defs(self, '$extname', $Helpers_extname$17 = function $$extname(path, fallback) {
21996
+
21997
+ Opal.def(self, '$extname', $Helpers_extname$16 = function $$extname(path, fallback) {
21996
21998
  var $a, self = this, last_dot_idx = nil;
21997
21999
 
21998
22000
 
@@ -22010,9 +22012,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22010
22012
  } else {
22011
22013
  return fallback
22012
22014
  };
22013
- }, $Helpers_extname$17.$$arity = -2)
22015
+ }, $Helpers_extname$16.$$arity = -2)
22014
22016
  } else {
22015
- Opal.defs(self, '$extname', $Helpers_extname$18 = function $$extname(path, fallback) {
22017
+
22018
+ Opal.def(self, '$extname', $Helpers_extname$17 = function $$extname(path, fallback) {
22016
22019
  var self = this, last_dot_idx = nil;
22017
22020
 
22018
22021
 
@@ -22030,9 +22033,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22030
22033
  } else {
22031
22034
  return fallback
22032
22035
  };
22033
- }, $Helpers_extname$18.$$arity = -2)
22036
+ }, $Helpers_extname$17.$$arity = -2)
22034
22037
  };
22035
- Opal.defs(self, '$mkdir_p', $Helpers_mkdir_p$19 = function $$mkdir_p(dir) {
22038
+
22039
+ Opal.def(self, '$mkdir_p', $Helpers_mkdir_p$18 = function $$mkdir_p(dir) {
22036
22040
  var self = this, parent_dir = nil;
22037
22041
 
22038
22042
  if ($truthy($$$('::', 'File')['$directory?'](dir))) {
@@ -22058,12 +22062,14 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22058
22062
  } else { throw $err; }
22059
22063
  };;
22060
22064
  }
22061
- }, $Helpers_mkdir_p$19.$$arity = 1);
22065
+ }, $Helpers_mkdir_p$18.$$arity = 1);
22062
22066
  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}));
22063
- Opal.defs(self, '$int_to_roman', $Helpers_int_to_roman$20 = function $$int_to_roman(val) {
22064
- var $$21, self = this;
22067
+ self.$private_constant("ROMAN_NUMERALS");
22068
+
22069
+ Opal.def(self, '$int_to_roman', $Helpers_int_to_roman$19 = function $$int_to_roman(val) {
22070
+ var $$20, self = this;
22065
22071
 
22066
- return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$21 = function(l, i){var self = $$21.$$s || this, $a, $b, repeat = nil;
22072
+ return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$20 = function(l, i){var self = $$20.$$s || this, $a, $b, repeat = nil;
22067
22073
 
22068
22074
 
22069
22075
 
@@ -22075,9 +22081,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22075
22081
  i = nil;
22076
22082
  };
22077
22083
  $b = val.$divmod(i), $a = Opal.to_ary($b), (repeat = ($a[0] == null ? nil : $a[0])), (val = ($a[1] == null ? nil : $a[1])), $b;
22078
- return $rb_times(l, repeat);}, $$21.$$s = self, $$21.$$arity = 2, $$21)).$join()
22079
- }, $Helpers_int_to_roman$20.$$arity = 1);
22080
- Opal.defs(self, '$nextval', $Helpers_nextval$22 = function $$nextval(current) {
22084
+ return $rb_times(l, repeat);}, $$20.$$s = self, $$20.$$arity = 2, $$20)).$join()
22085
+ }, $Helpers_int_to_roman$19.$$arity = 1);
22086
+
22087
+ Opal.def(self, '$nextval', $Helpers_nextval$21 = function $$nextval(current) {
22081
22088
  var self = this, intval = nil;
22082
22089
 
22083
22090
  if ($truthy($$$('::', 'Integer')['$==='](current))) {
@@ -22091,8 +22098,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22091
22098
  return $rb_plus(intval, 1)
22092
22099
  };
22093
22100
  }
22094
- }, $Helpers_nextval$22.$$arity = 1);
22095
- Opal.defs(self, '$resolve_class', $Helpers_resolve_class$23 = function $$resolve_class(object) {
22101
+ }, $Helpers_nextval$21.$$arity = 1);
22102
+
22103
+ Opal.def(self, '$resolve_class', $Helpers_resolve_class$22 = function $$resolve_class(object) {
22096
22104
  var self = this;
22097
22105
 
22098
22106
  if ($truthy($$$('::', 'Class')['$==='](object))) {
@@ -22106,8 +22114,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22106
22114
  return nil
22107
22115
  };
22108
22116
  }
22109
- }, $Helpers_resolve_class$23.$$arity = 1);
22110
- Opal.defs(self, '$class_for_name', $Helpers_class_for_name$24 = function $$class_for_name(qualified_name) {
22117
+ }, $Helpers_resolve_class$22.$$arity = 1);
22118
+
22119
+ Opal.def(self, '$class_for_name', $Helpers_class_for_name$23 = function $$class_for_name(qualified_name) {
22111
22120
  var self = this, resolved = nil;
22112
22121
 
22113
22122
  try {
@@ -22124,7 +22133,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22124
22133
  } finally { Opal.pop_exception() }
22125
22134
  } else { throw $err; }
22126
22135
  }
22127
- }, $Helpers_class_for_name$24.$$arity = 1);
22136
+ }, $Helpers_class_for_name$23.$$arity = 1);
22128
22137
  })($nesting[0], $nesting)
22129
22138
  })($nesting[0], $nesting)
22130
22139
  };
@@ -22681,6 +22690,148 @@ Opal.modules["asciidoctor/logging"] = function(Opal) {
22681
22690
  })($nesting[0], $nesting);
22682
22691
  };
22683
22692
 
22693
+ /* Generated by Opal 0.11.99.dev */
22694
+ Opal.modules["asciidoctor/rx"] = function(Opal) {
22695
+ function $rb_minus(lhs, rhs) {
22696
+ return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);
22697
+ }
22698
+ 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;
22699
+
22700
+ Opal.add_stubs(['$==', '$join', '$to_a', '$new', '$empty?', '$escape', '$[]=', '$-']);
22701
+ return (function($base, $parent_nesting) {
22702
+ var self = $module($base, 'Asciidoctor');
22703
+
22704
+ var $nesting = [self].concat($parent_nesting), $Asciidoctor$1, $Asciidoctor$2;
22705
+
22706
+
22707
+ (function($base, $parent_nesting) {
22708
+ var self = $module($base, 'Rx');
22709
+
22710
+ var $nesting = [self].concat($parent_nesting);
22711
+
22712
+ nil
22713
+ })($nesting[0], $nesting);
22714
+ 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')) + "\\-'.]*))?(?: +<([^>]+)>)?$"));
22715
+ Opal.const_set($nesting[0], 'AuthorDelimiterRx', /;(?: |$)/);
22716
+ Opal.const_set($nesting[0], 'RevisionInfoLineRx', new RegExp("" + "^(?:[^\\d{]*(" + ($$($nesting, 'CC_ANY')) + "*?),)? *(?!:)(" + ($$($nesting, 'CC_ANY')) + "*?)(?: *(?!^),?: *(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
22717
+ Opal.const_set($nesting[0], 'ManpageTitleVolnumRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *\\( *(" + ($$($nesting, 'CC_ANY')) + "+?) *\\)$"));
22718
+ Opal.const_set($nesting[0], 'ManpageNamePurposeRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) +- +(" + ($$($nesting, 'CC_ANY')) + "+)$"));
22719
+ Opal.const_set($nesting[0], 'ConditionalDirectiveRx', new RegExp("" + "^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22720
+ Opal.const_set($nesting[0], 'EvalExpressionRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *([=!><]=|[><]) *(" + ($$($nesting, 'CC_ANY')) + "+)$"));
22721
+ Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\[][^\\[]*)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22722
+ Opal.const_set($nesting[0], 'TagDirectiveRx', /\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m);
22723
+ Opal.const_set($nesting[0], 'AttributeEntryRx', new RegExp("" + "^:(!?" + ($$($nesting, 'CG_WORD')) + "[^:]*):(?:[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
22724
+ Opal.const_set($nesting[0], 'InvalidAttributeNameCharsRx', new RegExp("" + "[^" + ($$($nesting, 'CC_WORD')) + "-]"));
22725
+ if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
22726
+ Opal.const_set($nesting[0], 'AttributeEntryPassMacroRx', new RegExp("" + "^pass:([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*)\\]$"))
22727
+ } else {
22728
+ nil
22729
+ };
22730
+ Opal.const_set($nesting[0], 'AttributeReferenceRx', new RegExp("" + "(\\\\)?\\{(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*|(set|counter2?):" + ($$($nesting, 'CC_ANY')) + "+?)(\\\\)?\\}"));
22731
+ Opal.const_set($nesting[0], 'BlockAnchorRx', new RegExp("" + "^\\[\\[(?:|([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?)\\]\\]$"));
22732
+ Opal.const_set($nesting[0], 'BlockAttributeListRx', new RegExp("" + "^\\[(|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*)\\]$"));
22733
+ Opal.const_set($nesting[0], 'BlockAttributeLineRx', new RegExp("" + "^\\[(?:|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*|\\[(?:|[" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*(?:, *" + ($$($nesting, 'CC_ANY')) + "+)?)\\])\\]$"));
22734
+ Opal.const_set($nesting[0], 'BlockTitleRx', new RegExp("" + "^\\.(\\.?[^ \\t.]" + ($$($nesting, 'CC_ANY')) + "*)$"));
22735
+ Opal.const_set($nesting[0], 'AdmonitionParagraphRx', new RegExp("" + "^(" + ($$($nesting, 'ADMONITION_STYLES').$to_a().$join("|")) + "):[ \\t]+"));
22736
+ Opal.const_set($nesting[0], 'LiteralParagraphRx', new RegExp("" + "^([ \\t]+" + ($$($nesting, 'CC_ANY')) + "*)$"));
22737
+ Opal.const_set($nesting[0], 'AtxSectionTitleRx', new RegExp("" + "^(=={0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
22738
+ Opal.const_set($nesting[0], 'ExtAtxSectionTitleRx', new RegExp("" + "^(=={0,5}|#\\\#{0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
22739
+ Opal.const_set($nesting[0], 'SetextSectionTitleRx', new RegExp("" + "^((?!\\.)" + ($$($nesting, 'CC_ANY')) + "*?" + ($$($nesting, 'CG_ALNUM')) + ($$($nesting, 'CC_ANY')) + "*)$"));
22740
+ Opal.const_set($nesting[0], 'InlineSectionAnchorRx', new RegExp("" + " (\\\\)?\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?\\]\\]$"));
22741
+ 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')) + "\\-.]+?"));
22742
+ Opal.const_set($nesting[0], 'SectionLevelStyleRx', /^sect\d$/);
22743
+ 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])"));
22744
+ Opal.const_set($nesting[0], 'UnorderedListRx', new RegExp("" + "^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
22745
+ Opal.const_set($nesting[0], 'OrderedListRx', new RegExp("" + "^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
22746
+ Opal.const_set($nesting[0], 'OrderedListMarkerRxMap', $hash2(["arabic", "loweralpha", "lowerroman", "upperalpha", "upperroman"], {"arabic": /\d+\./, "loweralpha": /[a-z]\./, "lowerroman": /[ivx]+\)/, "upperalpha": /[A-Z]\./, "upperroman": /[IVX]+\)/}));
22747
+ Opal.const_set($nesting[0], 'DescriptionListRx', new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(:::{0,2}|;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"));
22748
+ 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')) + "*)$)")}));
22749
+ Opal.const_set($nesting[0], 'CalloutListRx', new RegExp("" + "^<(\\d+|\\.)>[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
22750
+ Opal.const_set($nesting[0], 'CalloutExtractRx', /((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/);
22751
+ Opal.const_set($nesting[0], 'CalloutExtractRxt', "(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)");
22752
+ Opal.const_set($nesting[0], 'CalloutExtractRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$1 = function(h, k){var self = $Asciidoctor$1.$$s || this, $writer = nil;
22753
+
22754
+
22755
+
22756
+ if (h == null) {
22757
+ h = nil;
22758
+ };
22759
+
22760
+ if (k == null) {
22761
+ k = nil;
22762
+ };
22763
+ $writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
22764
+ return ""
22765
+ } else {
22766
+ return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
22767
+ }; return nil; })()) + ")?" + ($$($nesting, 'CalloutExtractRxt')))];
22768
+ $send(h, '[]=', Opal.to_a($writer));
22769
+ return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$1.$$s = self, $Asciidoctor$1.$$arity = 2, $Asciidoctor$1)));
22770
+ Opal.const_set($nesting[0], 'CalloutScanRx', new RegExp("" + "\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*" + ($$($nesting, 'CC_EOL')) + ")"));
22771
+ Opal.const_set($nesting[0], 'CalloutSourceRx', new RegExp("" + "((?://|#|--|;;) ?)?(\\\\)?&lt;!?(|--)(\\d+|\\.)\\3&gt;(?=(?: ?\\\\?&lt;!?\\3(?:\\d+|\\.)\\3&gt;)*" + ($$($nesting, 'CC_EOL')) + ")"));
22772
+ Opal.const_set($nesting[0], 'CalloutSourceRxt', "" + "(\\\\)?&lt;()(\\d+|\\.)&gt;(?=(?: ?\\\\?&lt;(?:\\d+|\\.)&gt;)*" + ($$($nesting, 'CC_EOL')) + ")");
22773
+ Opal.const_set($nesting[0], 'CalloutSourceRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$2 = function(h, k){var self = $Asciidoctor$2.$$s || this, $writer = nil;
22774
+
22775
+
22776
+
22777
+ if (h == null) {
22778
+ h = nil;
22779
+ };
22780
+
22781
+ if (k == null) {
22782
+ k = nil;
22783
+ };
22784
+ $writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
22785
+ return ""
22786
+ } else {
22787
+ return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
22788
+ }; return nil; })()) + ")?" + ($$($nesting, 'CalloutSourceRxt')))];
22789
+ $send(h, '[]=', Opal.to_a($writer));
22790
+ return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$2.$$s = self, $Asciidoctor$2.$$arity = 2, $Asciidoctor$2)));
22791
+ Opal.const_set($nesting[0], 'ListRxMap', $hash2(["ulist", "olist", "dlist", "colist"], {"ulist": $$($nesting, 'UnorderedListRx'), "olist": $$($nesting, 'OrderedListRx'), "dlist": $$($nesting, 'DescriptionListRx'), "colist": $$($nesting, 'CalloutListRx')}));
22792
+ Opal.const_set($nesting[0], 'ColumnSpecRx', /^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/);
22793
+ Opal.const_set($nesting[0], 'CellSpecStartRx', /^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
22794
+ Opal.const_set($nesting[0], 'CellSpecEndRx', /[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
22795
+ Opal.const_set($nesting[0], 'CustomBlockMacroRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*)::(|\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22796
+ Opal.const_set($nesting[0], 'BlockMediaMacroRx', new RegExp("" + "^(image|video|audio)::(\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22797
+ Opal.const_set($nesting[0], 'BlockTocMacroRx', new RegExp("" + "^toc::\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22798
+ 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')) + "*?[^\\\\])\\]))"));
22799
+ 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')) + "*?[^\\\\])\\])"));
22800
+ Opal.const_set($nesting[0], 'LeadingInlineAnchorRx', new RegExp("" + "^\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]"));
22801
+ Opal.const_set($nesting[0], 'InlineBiblioAnchorRx', new RegExp("" + "^\\[\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]\\]"));
22802
+ 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"));
22803
+ Opal.const_set($nesting[0], 'InlineFootnoteMacroRx', new RegExp("" + "\\\\?footnote(?:(ref):|:([" + ($$($nesting, 'CC_WORD')) + "-]+)?)\\[(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))\\]", 'm'));
22804
+ Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
22805
+ Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
22806
+ Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
22807
+ Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|&lt;|[>\\(\\)\\[\\];])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])?", 'm'));
22808
+ Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
22809
+ Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*$"));
22810
+ Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
22811
+ Opal.const_set($nesting[0], 'InlineMenuMacroRx', new RegExp("" + "\\\\?menu:(" + ($$($nesting, 'CG_WORD')) + "|[" + ($$($nesting, 'CC_WORD')) + "&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))?\\]", 'm'));
22812
+ Opal.const_set($nesting[0], 'InlineMenuRx', new RegExp("" + "\\\\?\"([" + ($$($nesting, 'CC_WORD')) + "&][^\"]*?[ \\n]+&gt;[ \\n]+[^\"]*)\""));
22813
+ 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')]));
22814
+ Opal.const_set($nesting[0], 'SinglePlusInlinePassRx', new RegExp("" + "^(\\\\)?\\+(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\+$", 'm'));
22815
+ Opal.const_set($nesting[0], 'InlinePassMacroRx', new RegExp("" + "(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(" + ($$($nesting, 'CC_ALL')) + "*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])", 'm'));
22816
+ 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'));
22817
+ if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
22818
+ Opal.const_set($nesting[0], 'HardLineBreakRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "*) \\+$", 'm'))
22819
+ } else {
22820
+ nil
22821
+ };
22822
+ Opal.const_set($nesting[0], 'MarkdownThematicBreakRx', /^ {0,3}([-*_])( *)\1\2\1$/);
22823
+ Opal.const_set($nesting[0], 'ExtLayoutBreakRx', /^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/);
22824
+ Opal.const_set($nesting[0], 'BlankLineRx', /\n{2,}/);
22825
+ Opal.const_set($nesting[0], 'EscapedSpaceRx', /\\([ \t\n])/);
22826
+ Opal.const_set($nesting[0], 'ReplaceableTextRx', /[&']|--|\.\.\.|\([CRT]M?\)/);
22827
+ Opal.const_set($nesting[0], 'SpaceDelimiterRx', /([^\\])[ \t\n]+/);
22828
+ Opal.const_set($nesting[0], 'SubModifierSniffRx', /[+-]/);
22829
+ Opal.const_set($nesting[0], 'TrailingDigitsRx', /\d+$/);
22830
+ Opal.const_set($nesting[0], 'UriSniffRx', new RegExp("" + "^" + ($$($nesting, 'CG_ALPHA')) + "[" + ($$($nesting, 'CC_ALNUM')) + ".+-]+:/{0,2}"));
22831
+ Opal.const_set($nesting[0], 'XmlSanitizeRx', /<[^>]+>/);
22832
+ })($nesting[0], $nesting)
22833
+ };
22834
+
22684
22835
  /* Generated by Opal 0.11.99.dev */
22685
22836
  Opal.modules["asciidoctor/substitutors"] = function(Opal) {
22686
22837
  function $rb_plus(lhs, rhs) {
@@ -23193,7 +23344,12 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
23193
23344
  attrs = self.$parse_attributes((($c = $gvars['~']) === nil ? nil : $c['$[]'](2)), posattrs, $hash2(["unescape_input"], {"unescape_input": true}));
23194
23345
  if (type['$==']("icon")) {
23195
23346
  } else {
23196
- doc.$register("images", [target, (($writer = ["imagesdir", doc_attrs['$[]']("imagesdir")]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)])])
23347
+
23348
+ doc.$register("images", target);
23349
+
23350
+ $writer = ["imagesdir", doc_attrs['$[]']("imagesdir")];
23351
+ $send(attrs, '[]=', Opal.to_a($writer));
23352
+ $writer[$rb_minus($writer["length"], 1)];;
23197
23353
  };
23198
23354
  ($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)]));
23199
23355
  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))};
@@ -24562,7 +24718,7 @@ Opal.modules["asciidoctor/version"] = function(Opal) {
24562
24718
 
24563
24719
  var $nesting = [self].concat($parent_nesting);
24564
24720
 
24565
- Opal.const_set($nesting[0], 'VERSION', "2.0.7")
24721
+ Opal.const_set($nesting[0], 'VERSION', "2.0.9")
24566
24722
  })($nesting[0], $nesting)
24567
24723
  };
24568
24724
 
@@ -24576,7 +24732,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24576
24732
  }
24577
24733
  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;
24578
24734
 
24579
- 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']);
24735
+ 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']);
24580
24736
  return (function($base, $parent_nesting) {
24581
24737
  var self = $module($base, 'Asciidoctor');
24582
24738
 
@@ -24585,7 +24741,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24585
24741
  (function($base, $super, $parent_nesting) {
24586
24742
  var self = $klass($base, $super, 'AbstractNode');
24587
24743
 
24588
- 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;
24744
+ 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;
24589
24745
 
24590
24746
  self.$$prototype.document = self.$$prototype.attributes = self.$$prototype.parent = nil;
24591
24747
 
@@ -24748,7 +24904,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24748
24904
  return nil;
24749
24905
  }, $AbstractNode_set_option$11.$$arity = 1);
24750
24906
 
24751
- Opal.def(self, '$options', $AbstractNode_options$12 = function $$options() {
24907
+ Opal.def(self, '$enabled_options', $AbstractNode_enabled_options$12 = function $$enabled_options() {
24752
24908
  var $$13, self = this;
24753
24909
 
24754
24910
  return $send($$$('::', 'Set').$new(), 'tap', [], ($$13 = function(accum){var self = $$13.$$s || this, $$14;
@@ -24771,7 +24927,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24771
24927
  } else {
24772
24928
  return nil
24773
24929
  };}, $$14.$$s = self, $$14.$$arity = 1, $$14));}, $$13.$$s = self, $$13.$$arity = 1, $$13))
24774
- }, $AbstractNode_options$12.$$arity = 0);
24930
+ }, $AbstractNode_enabled_options$12.$$arity = 0);
24775
24931
 
24776
24932
  Opal.def(self, '$update_attributes', $AbstractNode_update_attributes$15 = function $$update_attributes(new_attributes) {
24777
24933
  var self = this;
@@ -24908,9 +25064,10 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
24908
25064
  asset_dir_key = "imagesdir";
24909
25065
  };
24910
25066
  if ($truthy(($truthy($a = $rb_lt((doc = self.document).$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE'))) ? doc['$attr?']("data-uri") : $a))) {
24911
- 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)))) {
25067
+ 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)))) {
24912
25068
  if ($truthy(doc['$attr?']("allow-uri-read"))) {
24913
- return self.$generate_data_uri_from_uri(target_image, doc['$attr?']("cache-uri"))
25069
+
25070
+ return self.$generate_data_uri_from_uri(target_image, doc['$attr?']("cache-uri"));
24914
25071
  } else {
24915
25072
  return target_image
24916
25073
  }
@@ -25075,7 +25232,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
25075
25232
  preserve_uri_target = true;
25076
25233
  };
25077
25234
  if ($truthy(($truthy($a = preserve_uri_target) ? $$($nesting, 'Helpers')['$uriish?'](target) : $a))) {
25078
- return $$($nesting, 'Helpers').$encode_uri(target)
25235
+ return $$($nesting, 'Helpers').$encode_spaces_in_uri(target)
25079
25236
  } else {
25080
25237
  return self.document.$path_resolver().$web_path(target, start)
25081
25238
  };
@@ -25189,7 +25346,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25189
25346
  }
25190
25347
  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;
25191
25348
 
25192
- 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']);
25349
+ 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']);
25193
25350
  return (function($base, $parent_nesting) {
25194
25351
  var self = $module($base, 'Asciidoctor');
25195
25352
 
@@ -25212,7 +25369,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25212
25369
  self.$attr_reader("subs");
25213
25370
 
25214
25371
  Opal.def(self, '$initialize', $AbstractBlock_initialize$1 = function $$initialize(parent, context, opts) {
25215
- var $iter = $AbstractBlock_initialize$1.$$p, $yield = $iter || nil, self = this, $case = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
25372
+ var $a, $iter = $AbstractBlock_initialize$1.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
25216
25373
 
25217
25374
  if ($iter) $AbstractBlock_initialize$1.$$p = null;
25218
25375
  // Prepare super implicit arguments
@@ -25229,15 +25386,15 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25229
25386
  self.blocks = [];
25230
25387
  self.subs = [];
25231
25388
  self.id = (self.title = (self.caption = (self.numeral = (self.style = (self.default_subs = (self.source_location = nil))))));
25232
- return (function() {$case = context;
25233
- if ("document"['$===']($case) || "section"['$===']($case)) {
25234
- self.level = (self.next_section_index = 0);
25235
- return (self.next_section_ordinal = 1);}
25236
- else {return (self.level = (function() {if ($truthy($$($nesting, 'AbstractBlock')['$==='](parent))) {
25237
- return parent.$level()
25389
+ if ($truthy(($truthy($a = context['$==']("document")) ? $a : context['$==']("section")))) {
25390
+
25391
+ self.level = (self.next_section_index = 0);
25392
+ return (self.next_section_ordinal = 1);
25393
+ } else if ($truthy($$($nesting, 'AbstractBlock')['$==='](parent))) {
25394
+ return (self.level = parent.$level())
25238
25395
  } else {
25239
- return nil
25240
- }; return nil; })())}})();
25396
+ return (self.level = nil)
25397
+ };
25241
25398
  }, $AbstractBlock_initialize$1.$$arity = -3);
25242
25399
 
25243
25400
  Opal.def(self, '$block?', $AbstractBlock_block$ques$2 = function() {
@@ -25421,7 +25578,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25421
25578
  };
25422
25579
  }
25423
25580
  } else {
25424
- return nil
25581
+ return ""
25425
25582
  }
25426
25583
  }, $AbstractBlock_alt$19.$$arity = 0);
25427
25584
 
@@ -25529,10 +25686,6 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25529
25686
 
25530
25687
 
25531
25688
 
25532
- if (value == null) {
25533
- value = nil;
25534
- };
25535
-
25536
25689
  if (caption_context == null) {
25537
25690
  caption_context = self.context;
25538
25691
  };
@@ -25545,7 +25698,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25545
25698
  } else {
25546
25699
  return nil
25547
25700
  };
25548
- }, $AbstractBlock_assign_caption$29.$$arity = -1);
25701
+ }, $AbstractBlock_assign_caption$29.$$arity = -2);
25549
25702
 
25550
25703
  Opal.def(self, '$assign_numeral', $AbstractBlock_assign_numeral$30 = function $$assign_numeral(section) {
25551
25704
  var $a, self = this, $writer = nil, like = nil, sectname = nil, caption = nil;
@@ -26328,7 +26481,7 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26328
26481
  }
26329
26482
  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;
26330
26483
 
26331
- 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']);
26484
+ 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']);
26332
26485
  return (function($base, $parent_nesting) {
26333
26486
  var self = $module($base, 'Asciidoctor');
26334
26487
 
@@ -26337,7 +26490,7 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26337
26490
  (function($base, $parent_nesting) {
26338
26491
  var self = $module($base, 'Converter');
26339
26492
 
26340
- 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;
26493
+ 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;
26341
26494
 
26342
26495
 
26343
26496
  self.$autoload("CompositeConverter", "" + (self.$__dir__()) + "/converter/composite");
@@ -26529,23 +26682,30 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26529
26682
 
26530
26683
 
26531
26684
  Opal.def(self, '$register_for', $Config_register_for$14 = function $$register_for($a) {
26532
- var $post_args, backends, self = this;
26685
+ var $post_args, backends, $$15, self = this;
26533
26686
 
26534
26687
 
26535
26688
 
26536
26689
  $post_args = Opal.slice.call(arguments, 0, arguments.length);
26537
26690
 
26538
26691
  backends = $post_args;;
26539
- return $send($$($nesting, 'Converter'), 'register', [self].concat(Opal.to_a(backends)));
26692
+ return $send($$($nesting, 'Converter'), 'register', [self].concat(Opal.to_a($send(backends, 'map', [], ($$15 = function(backend){var self = $$15.$$s || this;
26693
+
26694
+
26695
+
26696
+ if (backend == null) {
26697
+ backend = nil;
26698
+ };
26699
+ return backend.$to_s();}, $$15.$$s = self, $$15.$$arity = 1, $$15)))));
26540
26700
  }, $Config_register_for$14.$$arity = -1)
26541
26701
  })($nesting[0], $nesting);
26542
26702
  (function($base, $parent_nesting) {
26543
26703
  var self = $module($base, 'Factory');
26544
26704
 
26545
- 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;
26705
+ 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;
26546
26706
 
26547
26707
 
26548
- Opal.defs(self, '$new', $Factory_new$15 = function($a, $b) {
26708
+ Opal.defs(self, '$new', $Factory_new$16 = function($a, $b) {
26549
26709
  var $post_args, $kwargs, converters, proxy_default, self = this;
26550
26710
 
26551
26711
 
@@ -26579,8 +26739,8 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26579
26739
 
26580
26740
  return $$($nesting, 'CustomFactory').$new(converters);
26581
26741
  };
26582
- }, $Factory_new$15.$$arity = -1);
26583
- Opal.defs(self, '$default', $Factory_default$16 = function($a) {
26742
+ }, $Factory_new$16.$$arity = -1);
26743
+ Opal.defs(self, '$default', $Factory_default$17 = function($a) {
26584
26744
  var $post_args, args, self = this;
26585
26745
 
26586
26746
 
@@ -26589,8 +26749,8 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26589
26749
 
26590
26750
  args = $post_args;;
26591
26751
  return $$($nesting, 'Converter');
26592
- }, $Factory_default$16.$$arity = -1);
26593
- Opal.defs(self, '$create', $Factory_create$17 = function $$create(backend, opts) {
26752
+ }, $Factory_default$17.$$arity = -1);
26753
+ Opal.defs(self, '$create', $Factory_create$18 = function $$create(backend, opts) {
26594
26754
  var self = this;
26595
26755
 
26596
26756
 
@@ -26599,17 +26759,17 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26599
26759
  opts = $hash2([], {});
26600
26760
  };
26601
26761
  return self.$default().$create(backend, opts);
26602
- }, $Factory_create$17.$$arity = -2);
26762
+ }, $Factory_create$18.$$arity = -2);
26603
26763
 
26604
- Opal.def(self, '$register', $Factory_register$18 = function $$register(converter, $a) {
26605
- var $post_args, backends, $$19, self = this;
26764
+ Opal.def(self, '$register', $Factory_register$19 = function $$register(converter, $a) {
26765
+ var $post_args, backends, $$20, self = this;
26606
26766
 
26607
26767
 
26608
26768
 
26609
26769
  $post_args = Opal.slice.call(arguments, 1, arguments.length);
26610
26770
 
26611
26771
  backends = $post_args;;
26612
- return $send(backends, 'each', [], ($$19 = function(backend){var self = $$19.$$s || this, $writer = nil;
26772
+ return $send(backends, 'each', [], ($$20 = function(backend){var self = $$20.$$s || this, $writer = nil;
26613
26773
 
26614
26774
 
26615
26775
 
@@ -26628,16 +26788,16 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26628
26788
  $writer = [backend, converter];
26629
26789
  $send(self.$registry(), '[]=', Opal.to_a($writer));
26630
26790
  return $writer[$rb_minus($writer["length"], 1)];;
26631
- };}, $$19.$$s = self, $$19.$$arity = 1, $$19));
26632
- }, $Factory_register$18.$$arity = -2);
26791
+ };}, $$20.$$s = self, $$20.$$arity = 1, $$20));
26792
+ }, $Factory_register$19.$$arity = -2);
26633
26793
 
26634
- Opal.def(self, '$for', $Factory_for$20 = function(backend) {
26794
+ Opal.def(self, '$for', $Factory_for$21 = function(backend) {
26635
26795
  var self = this;
26636
26796
 
26637
26797
  return self.$registry()['$[]'](backend)
26638
- }, $Factory_for$20.$$arity = 1);
26798
+ }, $Factory_for$21.$$arity = 1);
26639
26799
 
26640
- Opal.def(self, '$create', $Factory_create$21 = function $$create(backend, opts) {
26800
+ Opal.def(self, '$create', $Factory_create$22 = function $$create(backend, opts) {
26641
26801
  var $a, $b, self = this, converter = nil, template_dirs = nil, delegate_backend = nil;
26642
26802
 
26643
26803
 
@@ -26666,30 +26826,30 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26666
26826
  } else {
26667
26827
  return nil
26668
26828
  };
26669
- }, $Factory_create$21.$$arity = -2);
26829
+ }, $Factory_create$22.$$arity = -2);
26670
26830
 
26671
- Opal.def(self, '$converters', $Factory_converters$22 = function $$converters() {
26831
+ Opal.def(self, '$converters', $Factory_converters$23 = function $$converters() {
26672
26832
  var self = this;
26673
26833
 
26674
26834
  return self.$registry().$merge()
26675
- }, $Factory_converters$22.$$arity = 0);
26835
+ }, $Factory_converters$23.$$arity = 0);
26676
26836
  self.$private();
26677
26837
 
26678
- Opal.def(self, '$registry', $Factory_registry$23 = function $$registry() {
26838
+ Opal.def(self, '$registry', $Factory_registry$24 = function $$registry() {
26679
26839
  var self = this;
26680
26840
 
26681
26841
  return self.$raise($$$('::', 'NotImplementedError'), "" + ($$($nesting, 'Factory')) + " subclass " + (self.$class()) + " must implement the #" + ("registry") + " method")
26682
- }, $Factory_registry$23.$$arity = 0);
26842
+ }, $Factory_registry$24.$$arity = 0);
26683
26843
  })($nesting[0], $nesting);
26684
26844
  (function($base, $super, $parent_nesting) {
26685
26845
  var self = $klass($base, $super, 'CustomFactory');
26686
26846
 
26687
- var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$24, $CustomFactory_unregister_all$25;
26847
+ var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$25, $CustomFactory_unregister_all$26;
26688
26848
 
26689
26849
 
26690
26850
  self.$include($$($nesting, 'Factory'));
26691
26851
 
26692
- Opal.def(self, '$initialize', $CustomFactory_initialize$24 = function $$initialize(seed_registry) {
26852
+ Opal.def(self, '$initialize', $CustomFactory_initialize$25 = function $$initialize(seed_registry) {
26693
26853
  var self = this, $writer = nil;
26694
26854
 
26695
26855
 
@@ -26707,34 +26867,34 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26707
26867
  } else {
26708
26868
  return (self.registry = $hash2([], {}))
26709
26869
  };
26710
- }, $CustomFactory_initialize$24.$$arity = -1);
26870
+ }, $CustomFactory_initialize$25.$$arity = -1);
26711
26871
 
26712
- Opal.def(self, '$unregister_all', $CustomFactory_unregister_all$25 = function $$unregister_all() {
26872
+ Opal.def(self, '$unregister_all', $CustomFactory_unregister_all$26 = function $$unregister_all() {
26713
26873
  var self = this, $writer = nil;
26714
26874
 
26715
26875
 
26716
26876
  $writer = [nil];
26717
26877
  $send(self.$registry().$clear(), 'default=', Opal.to_a($writer));
26718
26878
  return $writer[$rb_minus($writer["length"], 1)];
26719
- }, $CustomFactory_unregister_all$25.$$arity = 0);
26879
+ }, $CustomFactory_unregister_all$26.$$arity = 0);
26720
26880
  self.$private();
26721
26881
  return self.$attr_reader("registry");
26722
26882
  })($nesting[0], null, $nesting);
26723
26883
  (function($base, $parent_nesting) {
26724
26884
  var self = $module($base, 'DefaultFactory');
26725
26885
 
26726
- var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$26;
26886
+ var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$27;
26727
26887
 
26728
26888
 
26729
26889
  self.$include($$($nesting, 'Factory'));
26730
26890
  self.$private();
26731
26891
  (Opal.class_variable_set($nesting[0], '@@registry', $hash2([], {})));
26732
26892
 
26733
- Opal.def(self, '$registry', $DefaultFactory_registry$26 = function $$registry() {
26893
+ Opal.def(self, '$registry', $DefaultFactory_registry$27 = function $$registry() {
26734
26894
  var $a, self = this;
26735
26895
 
26736
26896
  return (($a = $nesting[0].$$cvars['@@registry']) == null ? nil : $a)
26737
- }, $DefaultFactory_registry$26.$$arity = 0);
26897
+ }, $DefaultFactory_registry$27.$$arity = 0);
26738
26898
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
26739
26899
  } else {
26740
26900
  nil
@@ -26753,23 +26913,23 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26753
26913
  return nil
26754
26914
  };
26755
26915
  })($nesting[0], $$($nesting, 'CustomFactory'), $nesting);
26756
- self.$private_class_method(($truthy($a = (Opal.defs(self, '$included', $Converter_included$27 = function $$included(into) {
26916
+ self.$private_class_method(($truthy($a = (Opal.defs(self, '$included', $Converter_included$28 = function $$included(into) {
26757
26917
  var self = this;
26758
26918
 
26759
26919
 
26760
26920
  into.$send("include", $$($nesting, 'BackendTraits'));
26761
26921
  return into.$extend($$($nesting, 'Config'));
26762
- }, $Converter_included$27.$$arity = 1), nil) && 'included') ? $a : "included"));
26922
+ }, $Converter_included$28.$$arity = 1), nil) && 'included') ? $a : "included"));
26763
26923
  (function($base, $super, $parent_nesting) {
26764
26924
  var self = $klass($base, $super, 'Base');
26765
26925
 
26766
- var $nesting = [self].concat($parent_nesting), $Base_convert$28, $Base_handles$ques$29, $Base_content_only$30, $Base_skip$31;
26926
+ var $nesting = [self].concat($parent_nesting), $Base_convert$29, $Base_handles$ques$30, $Base_content_only$31, $Base_skip$32;
26767
26927
 
26768
26928
  self.$$prototype.backend = nil;
26769
26929
 
26770
26930
  self.$include($$($nesting, 'Converter'), $$($nesting, 'Logging'));
26771
26931
 
26772
- Opal.def(self, '$convert', $Base_convert$28 = function $$convert(node, transform, opts) {
26932
+ Opal.def(self, '$convert', $Base_convert$29 = function $$convert(node, transform, opts) {
26773
26933
  var $a, $b, self = this, ex = nil;
26774
26934
  if ($gvars["!"] == null) $gvars["!"] = nil;
26775
26935
 
@@ -26803,24 +26963,24 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26803
26963
  } finally { Opal.pop_exception() }
26804
26964
  } else { throw $err; }
26805
26965
  };
26806
- }, $Base_convert$28.$$arity = -2);
26966
+ }, $Base_convert$29.$$arity = -2);
26807
26967
 
26808
- Opal.def(self, '$handles?', $Base_handles$ques$29 = function(transform) {
26968
+ Opal.def(self, '$handles?', $Base_handles$ques$30 = function(transform) {
26809
26969
  var self = this;
26810
26970
 
26811
26971
  return self['$respond_to?']("" + "convert_" + (transform))
26812
- }, $Base_handles$ques$29.$$arity = 1);
26972
+ }, $Base_handles$ques$30.$$arity = 1);
26813
26973
 
26814
- Opal.def(self, '$content_only', $Base_content_only$30 = function $$content_only(node) {
26974
+ Opal.def(self, '$content_only', $Base_content_only$31 = function $$content_only(node) {
26815
26975
  var self = this;
26816
26976
 
26817
26977
  return node.$content()
26818
- }, $Base_content_only$30.$$arity = 1);
26819
- return (Opal.def(self, '$skip', $Base_skip$31 = function $$skip(node) {
26978
+ }, $Base_content_only$31.$$arity = 1);
26979
+ return (Opal.def(self, '$skip', $Base_skip$32 = function $$skip(node) {
26820
26980
  var self = this;
26821
26981
 
26822
26982
  return nil
26823
- }, $Base_skip$31.$$arity = 1), nil) && 'skip';
26983
+ }, $Base_skip$32.$$arity = 1), nil) && 'skip';
26824
26984
  })($nesting[0], null, $nesting);
26825
26985
  self.$extend($$($nesting, 'DefaultFactory'));
26826
26986
  })($nesting[0], $nesting)
@@ -27489,7 +27649,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
27489
27649
  else {if ($truthy(self.options['$[]']("catalog_assets"))) {
27490
27650
  return self.catalog['$[]'](type)['$<<']((function() {if (type['$==']("images")) {
27491
27651
 
27492
- return $$($nesting, 'ImageReference').$new(value['$[]'](0), value['$[]'](1));
27652
+ return $$($nesting, 'ImageReference').$new(value, self.attributes['$[]']("imagesdir"));
27493
27653
  } else {
27494
27654
  return value
27495
27655
  }; return nil; })())
@@ -28683,9 +28843,9 @@ Opal.modules["asciidoctor/inline"] = function(Opal) {
28683
28843
  Opal.alias(self, "render", "convert");
28684
28844
 
28685
28845
  Opal.def(self, '$alt', $Inline_alt$5 = function $$alt() {
28686
- var self = this;
28846
+ var $a, self = this;
28687
28847
 
28688
- return self.$attr("alt")
28848
+ return ($truthy($a = self.$attr("alt")) ? $a : "")
28689
28849
  }, $Inline_alt$5.$$arity = 0);
28690
28850
 
28691
28851
  Opal.def(self, '$reftext?', $Inline_reftext$ques$6 = function() {
@@ -28884,7 +29044,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
28884
29044
  }
28885
29045
  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;
28886
29046
 
28887
- 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', '$%']);
29047
+ 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', '$%']);
28888
29048
  return (function($base, $parent_nesting) {
28889
29049
  var self = $module($base, 'Asciidoctor');
28890
29050
 
@@ -29492,7 +29652,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29492
29652
  }};
29493
29653
  if (blk_ctx['$==']("image")) {
29494
29654
 
29495
- document.$register("images", [target, (($writer = ["imagesdir", doc_attrs['$[]']("imagesdir")]), $send(attributes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)])]);
29655
+ document.$register("images", target);
29656
+
29657
+ $writer = ["imagesdir", doc_attrs['$[]']("imagesdir")];
29658
+ $send(attributes, '[]=', Opal.to_a($writer));
29659
+ $writer[$rb_minus($writer["length"], 1)];;
29496
29660
  ($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)]));
29497
29661
  if ($truthy((scaledwidth = attributes.$delete("scaledwidth"))['$nil_or_empty?']())) {
29498
29662
  } else {
@@ -30677,7 +30841,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30677
30841
  if ($truthy(this_line)) {
30678
30842
  reader.$unshift_line(this_line)};
30679
30843
  if ($truthy(detached_continuation)) {
30680
- buffer.$delete_at(detached_continuation)};
30844
+
30845
+ $writer = [detached_continuation, ""];
30846
+ $send(buffer, '[]=', Opal.to_a($writer));
30847
+ $writer[$rb_minus($writer["length"], 1)];};
30681
30848
  while (!($truthy(buffer['$empty?']()))) {
30682
30849
  if ($truthy((last_line = buffer['$[]'](-1))['$empty?']())) {
30683
30850
  buffer.$pop()
@@ -32167,9 +32334,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32167
32334
  function $rb_gt(lhs, rhs) {
32168
32335
  return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);
32169
32336
  }
32170
- 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;
32337
+ 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;
32171
32338
 
32172
- 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']);
32339
+ 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', '$=~']);
32173
32340
  return (function($base, $parent_nesting) {
32174
32341
  var self = $module($base, 'Asciidoctor');
32175
32342
 
@@ -32178,7 +32345,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32178
32345
  (function($base, $super, $parent_nesting) {
32179
32346
  var self = $klass($base, $super, 'PathResolver');
32180
32347
 
32181
- 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;
32348
+ 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;
32182
32349
 
32183
32350
  self.$$prototype.file_separator = self.$$prototype._partition_path_web = self.$$prototype._partition_path_sys = self.$$prototype.working_dir = nil;
32184
32351
 
@@ -32536,7 +32703,8 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32536
32703
  return self.$join_path(resolved_segments, jail_root)
32537
32704
  };
32538
32705
  }, $PathResolver_system_path$13.$$arity = -2);
32539
- return (Opal.def(self, '$web_path', $PathResolver_web_path$16 = function $$web_path(target, start) {
32706
+
32707
+ Opal.def(self, '$web_path', $PathResolver_web_path$16 = function $$web_path(target, start) {
32540
32708
  var $a, $b, $$17, self = this, uri_prefix = nil, target_segments = nil, target_root = nil, resolved_segments = nil, resolved_path = nil;
32541
32709
 
32542
32710
 
@@ -32546,17 +32714,13 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32546
32714
  };
32547
32715
  target = self.$posixify(target);
32548
32716
  start = self.$posixify(start);
32549
- uri_prefix = nil;
32550
32717
  if ($truthy(($truthy($a = start['$nil_or_empty?']()) ? $a : self['$web_root?'](target)))) {
32551
32718
  } else {
32552
-
32553
- target = (function() {if ($truthy(start['$end_with?']($$($nesting, 'SLASH')))) {
32554
- return "" + (start) + (target)
32719
+ $b = self.$extract_uri_prefix("" + (start) + ((function() {if ($truthy(start['$end_with?']($$($nesting, 'SLASH')))) {
32720
+ return ""
32555
32721
  } else {
32556
- return "" + (start) + ($$($nesting, 'SLASH')) + (target)
32557
- }; return nil; })();
32558
- if ($truthy((uri_prefix = $$($nesting, 'Helpers').$uri_prefix(target)))) {
32559
- target = target['$[]'](Opal.Range.$new(uri_prefix.$length(), -1, false))};
32722
+ return $$($nesting, 'SLASH')
32723
+ }; return nil; })()) + (target)), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (uri_prefix = ($a[1] == null ? nil : $a[1])), $b
32560
32724
  };
32561
32725
  $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;
32562
32726
  resolved_segments = [];
@@ -32589,7 +32753,17 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32589
32753
  } else {
32590
32754
  return resolved_path
32591
32755
  };
32592
- }, $PathResolver_web_path$16.$$arity = -2), nil) && 'web_path';
32756
+ }, $PathResolver_web_path$16.$$arity = -2);
32757
+ self.$private();
32758
+ return (Opal.def(self, '$extract_uri_prefix', $PathResolver_extract_uri_prefix$18 = function $$extract_uri_prefix(str) {
32759
+ var $a, self = this;
32760
+
32761
+ if ($truthy(($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$=~'](str) : $a))) {
32762
+ return [str.$slice((($a = $gvars['~']) === nil ? nil : $a['$[]'](0)).$length(), str.$length()), (($a = $gvars['~']) === nil ? nil : $a['$[]'](0))]
32763
+ } else {
32764
+ return str
32765
+ }
32766
+ }, $PathResolver_extract_uri_prefix$18.$$arity = 1), nil) && 'extract_uri_prefix';
32593
32767
  })($nesting[0], null, $nesting)
32594
32768
  })($nesting[0], $nesting)
32595
32769
  };
@@ -36026,7 +36200,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36026
36200
  }
36027
36201
  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;
36028
36202
 
36029
- Opal.add_stubs(['$attr_reader', '$raise', '$class', '$private_class_method', '$extend', '$register', '$each', '$[]=', '$registry', '$-', '$[]', '$for', '$===', '$new', '$name', '$private', '$include', '$==', '$join', '$map', '$content']);
36203
+ Opal.add_stubs(['$attr_reader', '$raise', '$class', '$private_class_method', '$extend', '$register', '$map', '$to_s', '$each', '$[]=', '$registry', '$-', '$[]', '$for', '$===', '$new', '$name', '$private', '$include', '$==', '$join', '$content']);
36030
36204
 
36031
36205
  (function($base, $parent_nesting) {
36032
36206
  var self = $module($base, 'Asciidoctor');
@@ -36109,32 +36283,39 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36109
36283
 
36110
36284
 
36111
36285
  Opal.def(self, '$register_for', $Config_register_for$10 = function $$register_for($a) {
36112
- var $post_args, names, self = this;
36286
+ var $post_args, names, $$11, self = this;
36113
36287
 
36114
36288
 
36115
36289
 
36116
36290
  $post_args = Opal.slice.call(arguments, 0, arguments.length);
36117
36291
 
36118
36292
  names = $post_args;;
36119
- return $send($$($nesting, 'SyntaxHighlighter'), 'register', [self].concat(Opal.to_a(names)));
36293
+ return $send($$($nesting, 'SyntaxHighlighter'), 'register', [self].concat(Opal.to_a($send(names, 'map', [], ($$11 = function(name){var self = $$11.$$s || this;
36294
+
36295
+
36296
+
36297
+ if (name == null) {
36298
+ name = nil;
36299
+ };
36300
+ return name.$to_s();}, $$11.$$s = self, $$11.$$arity = 1, $$11)))));
36120
36301
  }, $Config_register_for$10.$$arity = -1)
36121
36302
  })($nesting[0], $nesting);
36122
36303
  (function($base, $parent_nesting) {
36123
36304
  var self = $module($base, 'Factory');
36124
36305
 
36125
- var $nesting = [self].concat($parent_nesting), $Factory_register$11, $Factory_for$13, $Factory_create$14, $Factory_registry$15;
36306
+ var $nesting = [self].concat($parent_nesting), $Factory_register$12, $Factory_for$14, $Factory_create$15, $Factory_registry$16;
36126
36307
 
36127
36308
 
36128
36309
 
36129
- Opal.def(self, '$register', $Factory_register$11 = function $$register(syntax_highlighter, $a) {
36130
- var $post_args, names, $$12, self = this;
36310
+ Opal.def(self, '$register', $Factory_register$12 = function $$register(syntax_highlighter, $a) {
36311
+ var $post_args, names, $$13, self = this;
36131
36312
 
36132
36313
 
36133
36314
 
36134
36315
  $post_args = Opal.slice.call(arguments, 1, arguments.length);
36135
36316
 
36136
36317
  names = $post_args;;
36137
- return $send(names, 'each', [], ($$12 = function(name){var self = $$12.$$s || this, $writer = nil;
36318
+ return $send(names, 'each', [], ($$13 = function(name){var self = $$13.$$s || this, $writer = nil;
36138
36319
 
36139
36320
 
36140
36321
 
@@ -36143,16 +36324,16 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36143
36324
  };
36144
36325
  $writer = [name, syntax_highlighter];
36145
36326
  $send(self.$registry(), '[]=', Opal.to_a($writer));
36146
- return $writer[$rb_minus($writer["length"], 1)];}, $$12.$$s = self, $$12.$$arity = 1, $$12));
36147
- }, $Factory_register$11.$$arity = -2);
36327
+ return $writer[$rb_minus($writer["length"], 1)];}, $$13.$$s = self, $$13.$$arity = 1, $$13));
36328
+ }, $Factory_register$12.$$arity = -2);
36148
36329
 
36149
- Opal.def(self, '$for', $Factory_for$13 = function(name) {
36330
+ Opal.def(self, '$for', $Factory_for$14 = function(name) {
36150
36331
  var self = this;
36151
36332
 
36152
36333
  return self.$registry()['$[]'](name)
36153
- }, $Factory_for$13.$$arity = 1);
36334
+ }, $Factory_for$14.$$arity = 1);
36154
36335
 
36155
- Opal.def(self, '$create', $Factory_create$14 = function $$create(name, backend, opts) {
36336
+ Opal.def(self, '$create', $Factory_create$15 = function $$create(name, backend, opts) {
36156
36337
  var self = this, syntax_hl = nil;
36157
36338
 
36158
36339
 
@@ -36176,25 +36357,25 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36176
36357
  } else {
36177
36358
  return nil
36178
36359
  };
36179
- }, $Factory_create$14.$$arity = -2);
36360
+ }, $Factory_create$15.$$arity = -2);
36180
36361
  self.$private();
36181
36362
 
36182
- Opal.def(self, '$registry', $Factory_registry$15 = function $$registry() {
36363
+ Opal.def(self, '$registry', $Factory_registry$16 = function $$registry() {
36183
36364
  var self = this;
36184
36365
 
36185
36366
  return self.$raise($$$('::', 'NotImplementedError'), "" + ($$($nesting, 'Factory')) + " subclass " + (self.$class()) + " must implement the #" + ("registry") + " method")
36186
- }, $Factory_registry$15.$$arity = 0);
36367
+ }, $Factory_registry$16.$$arity = 0);
36187
36368
  })($nesting[0], $nesting);
36188
36369
  (function($base, $super, $parent_nesting) {
36189
36370
  var self = $klass($base, $super, 'CustomFactory');
36190
36371
 
36191
- var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$16, $CustomFactory_registry$17;
36372
+ var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$17, $CustomFactory_registry$18;
36192
36373
 
36193
36374
  self.$$prototype.registry = nil;
36194
36375
 
36195
36376
  self.$include($$($nesting, 'Factory'));
36196
36377
 
36197
- Opal.def(self, '$initialize', $CustomFactory_initialize$16 = function $$initialize(seed_registry) {
36378
+ Opal.def(self, '$initialize', $CustomFactory_initialize$17 = function $$initialize(seed_registry) {
36198
36379
  var $a, self = this;
36199
36380
 
36200
36381
 
@@ -36203,29 +36384,29 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36203
36384
  seed_registry = nil;
36204
36385
  };
36205
36386
  return (self.registry = ($truthy($a = seed_registry) ? $a : $hash2([], {})));
36206
- }, $CustomFactory_initialize$16.$$arity = -1);
36387
+ }, $CustomFactory_initialize$17.$$arity = -1);
36207
36388
  self.$private();
36208
- return (Opal.def(self, '$registry', $CustomFactory_registry$17 = function $$registry() {
36389
+ return (Opal.def(self, '$registry', $CustomFactory_registry$18 = function $$registry() {
36209
36390
  var self = this;
36210
36391
 
36211
36392
  return self.registry
36212
- }, $CustomFactory_registry$17.$$arity = 0), nil) && 'registry';
36393
+ }, $CustomFactory_registry$18.$$arity = 0), nil) && 'registry';
36213
36394
  })($nesting[0], null, $nesting);
36214
36395
  (function($base, $parent_nesting) {
36215
36396
  var self = $module($base, 'DefaultFactory');
36216
36397
 
36217
- var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$18;
36398
+ var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$19;
36218
36399
 
36219
36400
 
36220
36401
  self.$include($$($nesting, 'Factory'));
36221
36402
  self.$private();
36222
36403
  (Opal.class_variable_set($nesting[0], '@@registry', $hash2([], {})));
36223
36404
 
36224
- Opal.def(self, '$registry', $DefaultFactory_registry$18 = function $$registry() {
36405
+ Opal.def(self, '$registry', $DefaultFactory_registry$19 = function $$registry() {
36225
36406
  var $a, self = this;
36226
36407
 
36227
36408
  return (($a = $nesting[0].$$cvars['@@registry']) == null ? nil : $a)
36228
- }, $DefaultFactory_registry$18.$$arity = 0);
36409
+ }, $DefaultFactory_registry$19.$$arity = 0);
36229
36410
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
36230
36411
  } else {
36231
36412
  nil
@@ -36247,13 +36428,13 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36247
36428
  (function($base, $super, $parent_nesting) {
36248
36429
  var self = $klass($base, $super, 'Base');
36249
36430
 
36250
- var $nesting = [self].concat($parent_nesting), $Base_format$19;
36431
+ var $nesting = [self].concat($parent_nesting), $Base_format$20;
36251
36432
 
36252
36433
  self.$$prototype.pre_class = nil;
36253
36434
 
36254
36435
  self.$include($$($nesting, 'SyntaxHighlighter'));
36255
- return (Opal.def(self, '$format', $Base_format$19 = function $$format(node, lang, opts) {
36256
- var $$20, $$21, self = this, class_attr_val = nil, transform = nil, pre = nil, code = nil;
36436
+ return (Opal.def(self, '$format', $Base_format$20 = function $$format(node, lang, opts) {
36437
+ var $$21, $$22, self = this, class_attr_val = nil, transform = nil, pre = nil, code = nil;
36257
36438
 
36258
36439
 
36259
36440
  class_attr_val = (function() {if ($truthy(opts['$[]']("nowrap"))) {
@@ -36270,7 +36451,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36270
36451
  return $hash2([], {})
36271
36452
  }; return nil; })();
36272
36453
  transform['$[]'](pre, code);
36273
- return "" + "<pre" + ($send(pre, 'map', [], ($$20 = function(k, v){var self = $$20.$$s || this;
36454
+ return "" + "<pre" + ($send(pre, 'map', [], ($$21 = function(k, v){var self = $$21.$$s || this;
36274
36455
 
36275
36456
 
36276
36457
 
@@ -36281,7 +36462,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36281
36462
  if (v == null) {
36282
36463
  v = nil;
36283
36464
  };
36284
- return "" + " " + (k) + "=\"" + (v) + "\"";}, $$20.$$s = self, $$20.$$arity = 2, $$20)).$join()) + "><code" + ($send(code, 'map', [], ($$21 = function(k, v){var self = $$21.$$s || this;
36465
+ return "" + " " + (k) + "=\"" + (v) + "\"";}, $$21.$$s = self, $$21.$$arity = 2, $$21)).$join()) + "><code" + ($send(code, 'map', [], ($$22 = function(k, v){var self = $$22.$$s || this;
36285
36466
 
36286
36467
 
36287
36468
 
@@ -36292,7 +36473,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36292
36473
  if (v == null) {
36293
36474
  v = nil;
36294
36475
  };
36295
- return "" + " " + (k) + "=\"" + (v) + "\"";}, $$21.$$s = self, $$21.$$arity = 2, $$21)).$join()) + ">" + (node.$content()) + "</code></pre>";
36476
+ return "" + " " + (k) + "=\"" + (v) + "\"";}, $$22.$$s = self, $$22.$$arity = 2, $$22)).$join()) + ">" + (node.$content()) + "</code></pre>";
36296
36477
  } else {
36297
36478
  return "" + "<pre class=\"" + (class_attr_val) + "\"><code" + ((function() {if ($truthy(lang)) {
36298
36479
  return "" + " data-lang=\"" + (lang) + "\""
@@ -36300,7 +36481,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
36300
36481
  return ""
36301
36482
  }; return nil; })()) + ">" + (node.$content()) + "</code></pre>"
36302
36483
  };
36303
- }, $Base_format$19.$$arity = 3), nil) && 'format';
36484
+ }, $Base_format$20.$$arity = 3), nil) && 'format';
36304
36485
  })($nesting[0], null, $nesting);
36305
36486
  self.$extend($$($nesting, 'DefaultFactory'));
36306
36487
  })($nesting[0], $nesting)
@@ -36635,9 +36816,14 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
36635
36816
  $writer[$rb_minus($writer["length"], 1)];;
36636
36817
  Opal.const_set($nesting[0], 'DropAnchorRx', /<(?:a[^>+]+|\/a)>/);
36637
36818
  Opal.const_set($nesting[0], 'StemBreakRx', / *\\\n(?:\\?\n)*|\n\n+/);
36638
- Opal.const_set($nesting[0], 'SvgPreambleRx', /^.*?(?=<svg\b)/m);
36639
- Opal.const_set($nesting[0], 'SvgStartTagRx', /^<svg[^>]*>/);
36640
- Opal.const_set($nesting[0], 'DimensionAttributeRx', /\s(?:width|height|style)=(["']).*?\1/);
36819
+ if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
36820
+
36821
+ Opal.const_set($nesting[0], 'SvgPreambleRx', new RegExp("" + "^" + ($$($nesting, 'CC_ALL')) + "*?(?=<svg\\b)"));
36822
+ Opal.const_set($nesting[0], 'SvgStartTagRx', /^<svg[^>]*>/);
36823
+ } else {
36824
+ nil
36825
+ };
36826
+ Opal.const_set($nesting[0], 'DimensionAttributeRx', new RegExp("" + "\\s(?:width|height|style)=([\"'])" + ($$($nesting, 'CC_ANY')) + "*?\\1"));
36641
36827
 
36642
36828
  Opal.def(self, '$initialize', $Html5Converter_initialize$1 = function $$initialize(backend, opts) {
36643
36829
  var self = this, syntax = nil;
@@ -38475,10 +38661,10 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38475
38661
  }, $Html5Converter_convert_inline_footnote$53.$$arity = 1);
38476
38662
 
38477
38663
  Opal.def(self, '$convert_inline_image', $Html5Converter_convert_inline_image$54 = function $$convert_inline_image(node) {
38478
- 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;
38664
+ 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;
38479
38665
 
38480
38666
 
38481
- if ($truthy((($a = (type = node.$type())['$==']("icon")) ? node.$document()['$attr?']("icons", "font") : (type = node.$type())['$==']("icon")))) {
38667
+ if ($truthy((($a = (type = ($truthy($b = node.$type()) ? $b : "image"))['$==']("icon")) ? node.$document()['$attr?']("icons", "font") : (type = ($truthy($b = node.$type()) ? $b : "image"))['$==']("icon")))) {
38482
38668
 
38483
38669
  class_attr_val = "" + "fa fa-" + (node.$target());
38484
38670
  $send($hash2(["size", "rotate", "flip"], {"size": "fa-", "rotate": "fa-rotate-", "flip": "fa-flip-"}), 'each', [], ($$55 = function(key, prefix){var self = $$55.$$s || this;
@@ -39603,7 +39789,7 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
39603
39789
  return "(){0}"
39604
39790
  } else {
39605
39791
  return "(\\S+?)"
39606
- }; return nil; })()) + "\\[(|.*?[^\\\\])\\]")]), $send((($b = $nesting[0].$$cvars['@@rx_cache']) == null ? nil : $b), '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
39792
+ }; 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)]));
39607
39793
  }, $InlineMacroProcessor_resolve_regexp$46.$$arity = 2), nil) && 'resolve_regexp';
39608
39794
  })($nesting[0], $$($nesting, 'MacroProcessor'), $nesting);
39609
39795
  (function($base, $parent_nesting) {
@@ -40702,9 +40888,9 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40702
40888
  function $rb_minus(lhs, rhs) {
40703
40889
  return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);
40704
40890
  }
40705
- 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;
40891
+ 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;
40706
40892
 
40707
- 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']);
40893
+ 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']);
40708
40894
 
40709
40895
  self.$require("set");
40710
40896
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
@@ -40715,7 +40901,7 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40715
40901
  (function($base, $parent_nesting) {
40716
40902
  var self = $module($base, 'Asciidoctor');
40717
40903
 
40718
- var $nesting = [self].concat($parent_nesting), $a, $b, $Asciidoctor$7, $Asciidoctor$9, $Asciidoctor$11, $Asciidoctor$12, $Asciidoctor$13, $writer = nil;
40904
+ var $nesting = [self].concat($parent_nesting), $a, $b, $Asciidoctor$7, $Asciidoctor$9, $Asciidoctor$11, $Asciidoctor$13, $writer = nil;
40719
40905
 
40720
40906
 
40721
40907
  Opal.const_set($nesting[0], 'RUBY_ENGINE_OPAL', Opal.const_set($nesting[0], 'RUBY_ENGINE', $$$('::', 'RUBY_ENGINE'))['$==']("opal"));
@@ -40843,18 +41029,32 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40843
41029
  Opal.const_set($nesting[0], 'ASCIIDOC_EXTENSIONS', $hash2([".adoc", ".asciidoc", ".asc", ".ad", ".txt"], {".adoc": true, ".asciidoc": true, ".asc": true, ".ad": true, ".txt": true}));
40844
41030
  Opal.const_set($nesting[0], 'SETEXT_SECTION_LEVELS', $hash2(["=", "-", "~", "^", "+"], {"=": 0, "-": 1, "~": 2, "^": 3, "+": 4}));
40845
41031
  Opal.const_set($nesting[0], 'ADMONITION_STYLES', ["NOTE", "TIP", "IMPORTANT", "WARNING", "CAUTION"].$to_set());
40846
- Opal.const_set($nesting[0], 'ADMONITION_STYLE_HEADS', ["N", "T", "I", "W", "C"].$to_set());
41032
+ Opal.const_set($nesting[0], 'ADMONITION_STYLE_HEADS', $send($$$('::', 'Set').$new(), 'tap', [], ($Asciidoctor$7 = function(accum){var self = $Asciidoctor$7.$$s || this, $$8;
41033
+
41034
+
41035
+
41036
+ if (accum == null) {
41037
+ accum = nil;
41038
+ };
41039
+ return $send($$($nesting, 'ADMONITION_STYLES'), 'each', [], ($$8 = function(s){var self = $$8.$$s || this;
41040
+
41041
+
41042
+
41043
+ if (s == null) {
41044
+ s = nil;
41045
+ };
41046
+ return accum['$<<'](s.$chr());}, $$8.$$s = self, $$8.$$arity = 1, $$8));}, $Asciidoctor$7.$$s = self, $Asciidoctor$7.$$arity = 1, $Asciidoctor$7)));
40847
41047
  Opal.const_set($nesting[0], 'PARAGRAPH_STYLES', ["comment", "example", "literal", "listing", "normal", "open", "pass", "quote", "sidebar", "source", "verse", "abstract", "partintro"].$to_set());
40848
41048
  Opal.const_set($nesting[0], 'VERBATIM_STYLES', ["literal", "listing", "source", "verse"].$to_set());
40849
41049
  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()]}));
40850
- Opal.const_set($nesting[0], 'DELIMITED_BLOCK_HEADS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$7 = function(accum){var self = $Asciidoctor$7.$$s || this, $$8;
41050
+ Opal.const_set($nesting[0], 'DELIMITED_BLOCK_HEADS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$9 = function(accum){var self = $Asciidoctor$9.$$s || this, $$10;
40851
41051
 
40852
41052
 
40853
41053
 
40854
41054
  if (accum == null) {
40855
41055
  accum = nil;
40856
41056
  };
40857
- return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$8 = function(k){var self = $$8.$$s || this, $writer = nil;
41057
+ return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$10 = function(k){var self = $$10.$$s || this, $writer = nil;
40858
41058
 
40859
41059
 
40860
41060
 
@@ -40863,15 +41063,15 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40863
41063
  };
40864
41064
  $writer = [k.$slice(0, 2), true];
40865
41065
  $send(accum, '[]=', Opal.to_a($writer));
40866
- return $writer[$rb_minus($writer["length"], 1)];}, $$8.$$s = self, $$8.$$arity = 1, $$8));}, $Asciidoctor$7.$$s = self, $Asciidoctor$7.$$arity = 1, $Asciidoctor$7)));
40867
- Opal.const_set($nesting[0], 'DELIMITED_BLOCK_TAILS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$9 = function(accum){var self = $Asciidoctor$9.$$s || this, $$10;
41066
+ return $writer[$rb_minus($writer["length"], 1)];}, $$10.$$s = self, $$10.$$arity = 1, $$10));}, $Asciidoctor$9.$$s = self, $Asciidoctor$9.$$arity = 1, $Asciidoctor$9)));
41067
+ Opal.const_set($nesting[0], 'DELIMITED_BLOCK_TAILS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$11 = function(accum){var self = $Asciidoctor$11.$$s || this, $$12;
40868
41068
 
40869
41069
 
40870
41070
 
40871
41071
  if (accum == null) {
40872
41072
  accum = nil;
40873
41073
  };
40874
- return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$10 = function(k){var self = $$10.$$s || this, $writer = nil;
41074
+ return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$12 = function(k){var self = $$12.$$s || this, $writer = nil;
40875
41075
 
40876
41076
 
40877
41077
 
@@ -40885,7 +41085,7 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40885
41085
  return $writer[$rb_minus($writer["length"], 1)];
40886
41086
  } else {
40887
41087
  return nil
40888
- };}, $$10.$$s = self, $$10.$$arity = 1, $$10));}, $Asciidoctor$9.$$s = self, $Asciidoctor$9.$$arity = 1, $Asciidoctor$9)));
41088
+ };}, $$12.$$s = self, $$12.$$arity = 1, $$12));}, $Asciidoctor$11.$$s = self, $Asciidoctor$11.$$arity = 1, $Asciidoctor$11)));
40889
41089
  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"}));
40890
41090
  Opal.const_set($nesting[0], 'LAYOUT_BREAK_CHARS', $hash2(["'", "<"], {"'": "thematic_break", "<": "page_break"}));
40891
41091
  Opal.const_set($nesting[0], 'MARKDOWN_THEMATIC_BREAK_CHARS', $hash2(["-", "*", "_"], {"-": "thematic_break", "*": "thematic_break", "_": "thematic_break"}));
@@ -40908,129 +41108,11 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
40908
41108
  Opal.const_set($nesting[0], 'HIGHLIGHT_JS_VERSION', "9.15.6");
40909
41109
  Opal.const_set($nesting[0], 'MATHJAX_VERSION', "2.7.5");
40910
41110
  Opal.const_set($nesting[0], 'FLEXIBLE_ATTRIBUTES', ["sectnums"]);
41111
+ 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": ">"}));
40911
41112
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
40912
41113
  } else {
40913
41114
  nil
40914
41115
  };
40915
- 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')) + "\\-'.]*))?(?: +<([^>]+)>)?$"));
40916
- Opal.const_set($nesting[0], 'AuthorDelimiterRx', /;(?: |$)/);
40917
- Opal.const_set($nesting[0], 'RevisionInfoLineRx', new RegExp("" + "^(?:[^\\d{]*(" + ($$($nesting, 'CC_ANY')) + "*?),)? *(?!:)(" + ($$($nesting, 'CC_ANY')) + "*?)(?: *(?!^),?: *(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
40918
- Opal.const_set($nesting[0], 'ManpageTitleVolnumRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *\\( *(" + ($$($nesting, 'CC_ANY')) + "+?) *\\)$"));
40919
- Opal.const_set($nesting[0], 'ManpageNamePurposeRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) +- +(" + ($$($nesting, 'CC_ANY')) + "+)$"));
40920
- Opal.const_set($nesting[0], 'ConditionalDirectiveRx', new RegExp("" + "^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40921
- Opal.const_set($nesting[0], 'EvalExpressionRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *([=!><]=|[><]) *(" + ($$($nesting, 'CC_ANY')) + "+)$"));
40922
- Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\[][^\\[]*)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40923
- Opal.const_set($nesting[0], 'TagDirectiveRx', /\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m);
40924
- Opal.const_set($nesting[0], 'AttributeEntryRx', new RegExp("" + "^:(!?" + ($$($nesting, 'CG_WORD')) + "[^:]*):(?:[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
40925
- Opal.const_set($nesting[0], 'InvalidAttributeNameCharsRx', new RegExp("" + "[^-" + ($$($nesting, 'CC_WORD')) + "]"));
40926
- if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
40927
- Opal.const_set($nesting[0], 'AttributeEntryPassMacroRx', new RegExp("" + "^pass:([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*)\\]$"))
40928
- } else {
40929
- nil
40930
- };
40931
- Opal.const_set($nesting[0], 'AttributeReferenceRx', new RegExp("" + "(\\\\)?\\{(" + ($$($nesting, 'CG_WORD')) + "[-" + ($$($nesting, 'CC_WORD')) + "]*|(set|counter2?):" + ($$($nesting, 'CC_ANY')) + "+?)(\\\\)?\\}"));
40932
- Opal.const_set($nesting[0], 'BlockAnchorRx', new RegExp("" + "^\\[\\[(?:|([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?)\\]\\]$"));
40933
- Opal.const_set($nesting[0], 'BlockAttributeListRx', new RegExp("" + "^\\[(|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*)\\]$"));
40934
- Opal.const_set($nesting[0], 'BlockAttributeLineRx', new RegExp("" + "^\\[(?:|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*|\\[(?:|[" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*(?:, *" + ($$($nesting, 'CC_ANY')) + "+)?)\\])\\]$"));
40935
- Opal.const_set($nesting[0], 'BlockTitleRx', new RegExp("" + "^\\.(\\.?[^ \\t.]" + ($$($nesting, 'CC_ANY')) + "*)$"));
40936
- Opal.const_set($nesting[0], 'AdmonitionParagraphRx', new RegExp("" + "^(" + ($$($nesting, 'ADMONITION_STYLES').$to_a().$join("|")) + "):[ \\t]+"));
40937
- Opal.const_set($nesting[0], 'LiteralParagraphRx', new RegExp("" + "^([ \\t]+" + ($$($nesting, 'CC_ANY')) + "*)$"));
40938
- Opal.const_set($nesting[0], 'AtxSectionTitleRx', new RegExp("" + "^(=={0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
40939
- Opal.const_set($nesting[0], 'ExtAtxSectionTitleRx', new RegExp("" + "^(=={0,5}|#\\\#{0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
40940
- Opal.const_set($nesting[0], 'SetextSectionTitleRx', new RegExp("" + "^((?!\\.)" + ($$($nesting, 'CC_ANY')) + "*?" + ($$($nesting, 'CG_ALNUM')) + ($$($nesting, 'CC_ANY')) + "*)$"));
40941
- Opal.const_set($nesting[0], 'InlineSectionAnchorRx', new RegExp("" + " (\\\\)?\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?\\]\\]$"));
40942
- 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')) + "\\-.]+?"));
40943
- Opal.const_set($nesting[0], 'SectionLevelStyleRx', /^sect\d$/);
40944
- 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])"));
40945
- Opal.const_set($nesting[0], 'UnorderedListRx', new RegExp("" + "^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
40946
- Opal.const_set($nesting[0], 'OrderedListRx', new RegExp("" + "^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
40947
- Opal.const_set($nesting[0], 'OrderedListMarkerRxMap', $hash2(["arabic", "loweralpha", "lowerroman", "upperalpha", "upperroman"], {"arabic": /\d+\./, "loweralpha": /[a-z]\./, "lowerroman": /[ivx]+\)/, "upperalpha": /[A-Z]\./, "upperroman": /[IVX]+\)/}));
40948
- Opal.const_set($nesting[0], 'DescriptionListRx', new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(:::{0,2}|;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"));
40949
- 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')) + "*)$)")}));
40950
- Opal.const_set($nesting[0], 'CalloutListRx', new RegExp("" + "^<(\\d+|\\.)>[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
40951
- Opal.const_set($nesting[0], 'CalloutExtractRx', /((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/);
40952
- Opal.const_set($nesting[0], 'CalloutExtractRxt', "(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)");
40953
- Opal.const_set($nesting[0], 'CalloutExtractRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$11 = function(h, k){var self = $Asciidoctor$11.$$s || this;
40954
-
40955
-
40956
-
40957
- if (h == null) {
40958
- h = nil;
40959
- };
40960
-
40961
- if (k == null) {
40962
- k = nil;
40963
- };
40964
- $writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
40965
- return ""
40966
- } else {
40967
- return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
40968
- }; return nil; })()) + ")?" + ($$($nesting, 'CalloutExtractRxt')))];
40969
- $send(h, '[]=', Opal.to_a($writer));
40970
- return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$11.$$s = self, $Asciidoctor$11.$$arity = 2, $Asciidoctor$11)));
40971
- Opal.const_set($nesting[0], 'CalloutScanRx', new RegExp("" + "\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*" + ($$($nesting, 'CC_EOL')) + ")"));
40972
- Opal.const_set($nesting[0], 'CalloutSourceRx', new RegExp("" + "((?://|#|--|;;) ?)?(\\\\)?&lt;!?(|--)(\\d+|\\.)\\3&gt;(?=(?: ?\\\\?&lt;!?\\3(?:\\d+|\\.)\\3&gt;)*" + ($$($nesting, 'CC_EOL')) + ")"));
40973
- Opal.const_set($nesting[0], 'CalloutSourceRxt', "" + "(\\\\)?&lt;()(\\d+|\\.)&gt;(?=(?: ?\\\\?&lt;(?:\\d+|\\.)&gt;)*" + ($$($nesting, 'CC_EOL')) + ")");
40974
- Opal.const_set($nesting[0], 'CalloutSourceRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$12 = function(h, k){var self = $Asciidoctor$12.$$s || this;
40975
-
40976
-
40977
-
40978
- if (h == null) {
40979
- h = nil;
40980
- };
40981
-
40982
- if (k == null) {
40983
- k = nil;
40984
- };
40985
- $writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
40986
- return ""
40987
- } else {
40988
- return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
40989
- }; return nil; })()) + ")?" + ($$($nesting, 'CalloutSourceRxt')))];
40990
- $send(h, '[]=', Opal.to_a($writer));
40991
- return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$12.$$s = self, $Asciidoctor$12.$$arity = 2, $Asciidoctor$12)));
40992
- Opal.const_set($nesting[0], 'ListRxMap', $hash2(["ulist", "olist", "dlist", "colist"], {"ulist": $$($nesting, 'UnorderedListRx'), "olist": $$($nesting, 'OrderedListRx'), "dlist": $$($nesting, 'DescriptionListRx'), "colist": $$($nesting, 'CalloutListRx')}));
40993
- Opal.const_set($nesting[0], 'ColumnSpecRx', /^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/);
40994
- Opal.const_set($nesting[0], 'CellSpecStartRx', /^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
40995
- Opal.const_set($nesting[0], 'CellSpecEndRx', /[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
40996
- Opal.const_set($nesting[0], 'CustomBlockMacroRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[-" + ($$($nesting, 'CC_WORD')) + "]*)::(|\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40997
- Opal.const_set($nesting[0], 'BlockMediaMacroRx', new RegExp("" + "^(image|video|audio)::(\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40998
- Opal.const_set($nesting[0], 'BlockTocMacroRx', new RegExp("" + "^toc::\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
40999
- 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')) + "*?[^\\\\])\\]))"));
41000
- 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')) + "*?[^\\\\])\\])"));
41001
- Opal.const_set($nesting[0], 'LeadingInlineAnchorRx', new RegExp("" + "^\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]"));
41002
- Opal.const_set($nesting[0], 'InlineBiblioAnchorRx', new RegExp("" + "^\\[\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]\\]"));
41003
- 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"));
41004
- Opal.const_set($nesting[0], 'InlineFootnoteMacroRx', new RegExp("" + "\\\\?footnote(?:(ref):|:([\\w-]+)?)\\[(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))\\]", 'm'));
41005
- Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
41006
- Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
41007
- Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
41008
- Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|&lt;|[>\\(\\)\\[\\];])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])?", 'm'));
41009
- Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
41010
- Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[-" + ($$($nesting, 'CC_WORD')) + "]*$"));
41011
- Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
41012
- Opal.const_set($nesting[0], 'InlineMenuMacroRx', new RegExp("" + "\\\\?menu:(" + ($$($nesting, 'CG_WORD')) + "|[" + ($$($nesting, 'CC_WORD')) + "&][^\\n\\[]*[^\\s\\[])\\[ *(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])?\\]", 'm'));
41013
- Opal.const_set($nesting[0], 'InlineMenuRx', new RegExp("" + "\\\\?\"([" + ($$($nesting, 'CC_WORD')) + "&][^\"]*?[ \\n]+&gt;[ \\n]+[^\"]*)\""));
41014
- 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')]));
41015
- Opal.const_set($nesting[0], 'SinglePlusInlinePassRx', new RegExp("" + "^(\\\\)?\\+(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\+$", 'm'));
41016
- Opal.const_set($nesting[0], 'InlinePassMacroRx', new RegExp("" + "(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(" + ($$($nesting, 'CC_ALL')) + "*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])", 'm'));
41017
- 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'));
41018
- if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
41019
- Opal.const_set($nesting[0], 'HardLineBreakRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "*) \\+$", 'm'))
41020
- } else {
41021
- nil
41022
- };
41023
- Opal.const_set($nesting[0], 'MarkdownThematicBreakRx', /^ {0,3}([-*_])( *)\1\2\1$/);
41024
- Opal.const_set($nesting[0], 'ExtLayoutBreakRx', /^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/);
41025
- Opal.const_set($nesting[0], 'BlankLineRx', /\n{2,}/);
41026
- Opal.const_set($nesting[0], 'EscapedSpaceRx', /\\([ \t\n])/);
41027
- Opal.const_set($nesting[0], 'ReplaceableTextRx', /[&']|--|\.\.\.|\([CRT]M?\)/);
41028
- Opal.const_set($nesting[0], 'SpaceDelimiterRx', /([^\\])[ \t\n]+/);
41029
- Opal.const_set($nesting[0], 'SubModifierSniffRx', /[+-]/);
41030
- Opal.const_set($nesting[0], 'TrailingDigitsRx', /\d+$/);
41031
- Opal.const_set($nesting[0], 'UriSniffRx', new RegExp("" + "^" + ($$($nesting, 'CG_ALPHA')) + "[" + ($$($nesting, 'CC_ALNUM')) + ".+-]+:/{0,2}"));
41032
- Opal.const_set($nesting[0], 'XmlSanitizeRx', /<[^>]+>/);
41033
- 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": ">"}));
41034
41116
  Opal.const_set($nesting[0], 'QUOTE_SUBS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$13 = function(accum){var self = $Asciidoctor$13.$$s || this, normal = nil, compat = nil;
41035
41117
 
41036
41118
 
@@ -41076,6 +41158,7 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
41076
41158
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/core_ext");
41077
41159
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/helpers");
41078
41160
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/logging");
41161
+ self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/rx");
41079
41162
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/substitutors");
41080
41163
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/version");
41081
41164
  self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/abstract_node");
@@ -44132,6 +44215,12 @@ InlineMacroProcessor.prototype.getName = function () {
44132
44215
  InlineMacroProcessor.prototype.parseContentAs = function (value) {
44133
44216
  this.$parse_content_as(value)
44134
44217
  }
44218
+ /**
44219
+ * @memberof Extensions/InlineMacroProcessor
44220
+ */
44221
+ InlineMacroProcessor.prototype.matchFormat = function (value) {
44222
+ this.$match_format(value)
44223
+ }
44135
44224
 
44136
44225
  /**
44137
44226
  * @namespace
@@ -44556,7 +44645,7 @@ Html5Converter.prototype.convert = function (node, transform, opts) {
44556
44645
  }
44557
44646
 
44558
44647
 
44559
- var ASCIIDOCTOR_JS_VERSION = '2.0.2';
44648
+ var ASCIIDOCTOR_JS_VERSION = '2.0.3';
44560
44649
 
44561
44650
  /**
44562
44651
  * Get Asciidoctor.js version number.