@asciidoctor/core 2.2.5 → 2.2.7

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.2.5 | MIT | https://github.com/asciidoctor/asciidoctor.js
2
+ * @license Asciidoctor.js 2.2.7 | MIT | https://github.com/asciidoctor/asciidoctor.js
3
3
  */
4
4
  (function(undefined) {
5
5
  // @note
@@ -21179,6 +21179,30 @@ Opal.modules["asciidoctor/js/opal_ext/string"] = function(Opal) {
21179
21179
  })($nesting[0], null, $nesting)
21180
21180
  };
21181
21181
 
21182
+ /* Generated by Opal 0.11.99.dev */
21183
+ Opal.modules["asciidoctor/js/opal_ext/array"] = function(Opal) {
21184
+ var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass;
21185
+
21186
+ Opal.add_stubs(['$==', '$strict_encode64', '$_original_pack']);
21187
+ return (function($base, $super, $parent_nesting) {
21188
+ var self = $klass($base, $super, 'Array');
21189
+
21190
+ var $nesting = [self].concat($parent_nesting), $Array_pack$1;
21191
+
21192
+
21193
+ Opal.alias(self, "_original_pack", "pack");
21194
+ return (Opal.def(self, '$pack', $Array_pack$1 = function $$pack(format) {
21195
+ var self = this;
21196
+
21197
+ if (format['$==']("m0")) {
21198
+ return $$$('::', 'Base64').$strict_encode64(self)
21199
+ } else {
21200
+ return self.$_original_pack(self)
21201
+ }
21202
+ }, $Array_pack$1.$$arity = 1), nil) && 'pack';
21203
+ })($nesting[0], null, $nesting)
21204
+ };
21205
+
21182
21206
  /* Generated by Opal 0.11.99.dev */
21183
21207
  Opal.modules["asciidoctor/js/opal_ext/uri"] = function(Opal) {
21184
21208
  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;
@@ -21318,6 +21342,7 @@ Opal.modules["asciidoctor/js/opal_ext"] = function(Opal) {
21318
21342
  self.$require("asciidoctor/js/opal_ext/file");
21319
21343
  self.$require("asciidoctor/js/opal_ext/match_data");
21320
21344
  self.$require("asciidoctor/js/opal_ext/string");
21345
+ self.$require("asciidoctor/js/opal_ext/array");
21321
21346
  self.$require("asciidoctor/js/opal_ext/uri");
21322
21347
  self.$require("asciidoctor/js/opal_ext/base64");
21323
21348
  self.$require("asciidoctor/js/opal_ext/number");
@@ -21834,9 +21859,9 @@ Opal.modules["asciidoctor/core_ext/hash/merge"] = function(Opal) {
21834
21859
  function $rb_gt(lhs, rhs) {
21835
21860
  return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);
21836
21861
  }
21837
- var $$1, self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $send = Opal.send, $truthy = Opal.truthy, $hash2 = Opal.hash2;
21862
+ var $$1, self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $send = Opal.send, $truthy = Opal.truthy;
21838
21863
 
21839
- Opal.add_stubs(['$==', '$arity', '$instance_method', '$send', '$new', '$<', '$length', '$>', '$inject', '$merge', '$[]']);
21864
+ Opal.add_stubs(['$==', '$arity', '$instance_method', '$send', '$new', '$<', '$length', '$dup', '$>', '$inject', '$merge', '$[]']);
21840
21865
  if ($$($nesting, 'Hash').$instance_method("merge").$arity()['$=='](1)) {
21841
21866
  return $$($nesting, 'Hash').$send("prepend", $send($$($nesting, 'Module'), 'new', [], ($$1 = function(){var self = $$1.$$s || this, $merge$2;
21842
21867
 
@@ -21850,7 +21875,7 @@ Opal.modules["asciidoctor/core_ext/hash/merge"] = function(Opal) {
21850
21875
 
21851
21876
  args = $post_args;;
21852
21877
  if ($truthy($rb_lt((len = args.$length()), 1))) {
21853
- return $send(self, Opal.find_super_dispatcher(self, 'merge', $merge$2, false), [$hash2([], {})], null)
21878
+ return self.$dup()
21854
21879
  } else {
21855
21880
 
21856
21881
  if ($truthy($rb_gt(len, 1))) {
@@ -21927,7 +21952,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21927
21952
  }
21928
21953
  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;
21929
21954
 
21930
- 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_s', '$to_i', '$succ', '$class_for_name', '$const_get']);
21955
+ 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', '$<<', '$!', '$start_with?', '$match?', '$gsub', '$rindex', '$index', '$basename', '$extname', '$length', '$directory?', '$dirname', '$mkdir_p', '$mkdir', '$private_constant', '$join', '$divmod', '$*', '$+', '$to_s', '$to_i', '$succ', '$class_for_name', '$const_get']);
21931
21956
  return (function($base, $parent_nesting) {
21932
21957
  var self = $module($base, 'Asciidoctor');
21933
21958
 
@@ -21936,7 +21961,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
21936
21961
  (function($base, $parent_nesting) {
21937
21962
  var self = $module($base, 'Helpers');
21938
21963
 
21939
- var $nesting = [self].concat($parent_nesting), $Helpers_require_library$1, $Helpers_prepare_source_array$2, $Helpers_prepare_source_string$11, $Helpers_uriish$ques$16, $Helpers_encode_uri_component$17, $Helpers_encode_spaces_in_uri$18, $Helpers_rootname$19, $Helpers_basename$20, $Helpers_extname$ques$21, $Helpers_extname$22, $Helpers_extname$23, $Helpers_mkdir_p$24, $Helpers_int_to_roman$25, $Helpers_nextval$27, $Helpers_resolve_class$28, $Helpers_class_for_name$29;
21964
+ var $nesting = [self].concat($parent_nesting), $Helpers_require_library$1, $Helpers_prepare_source_array$2, $Helpers_prepare_source_string$11, $Helpers_uriish$ques$16, $Helpers_uriish$ques$17, $Helpers_encode_uri_component$18, $Helpers_encode_spaces_in_uri$19, $Helpers_rootname$20, $Helpers_basename$21, $Helpers_extname$ques$22, $Helpers_extname$23, $Helpers_extname$24, $Helpers_mkdir_p$25, $Helpers_int_to_roman$26, $Helpers_nextval$28, $Helpers_resolve_class$29, $Helpers_class_for_name$30;
21940
21965
 
21941
21966
 
21942
21967
  self.$module_function();
@@ -22165,15 +22190,24 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22165
22190
  return lines['$<<'](line.$chomp());}, $$15.$$s = self, $$15.$$arity = 1, $$15));}, $$14.$$s = self, $$14.$$arity = 1, $$14))
22166
22191
  };
22167
22192
  }, $Helpers_prepare_source_string$11.$$arity = -2);
22168
-
22169
- Opal.def(self, '$uriish?', $Helpers_uriish$ques$16 = function(str) {
22170
- var $a, self = this;
22193
+ if ($$$('::', 'RUBY_ENGINE')['$==']("jruby")) {
22194
+
22195
+ Opal.def(self, '$uriish?', $Helpers_uriish$ques$16 = function(str) {
22196
+ var $a, $b, self = this;
22171
22197
 
22172
- return ($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$match?'](str) : $a)
22173
- }, $Helpers_uriish$ques$16.$$arity = 1);
22198
+ return ($truthy($a = ($truthy($b = str['$include?'](":")) ? str['$start_with?']("uri:classloader:")['$!']() : $b)) ? $$($nesting, 'UriSniffRx')['$match?'](str) : $a)
22199
+ }, $Helpers_uriish$ques$16.$$arity = 1)
22200
+ } else {
22201
+
22202
+ Opal.def(self, '$uriish?', $Helpers_uriish$ques$17 = function(str) {
22203
+ var $a, self = this;
22204
+
22205
+ return ($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$match?'](str) : $a)
22206
+ }, $Helpers_uriish$ques$17.$$arity = 1)
22207
+ };
22174
22208
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
22175
22209
 
22176
- Opal.def(self, '$encode_uri_component', $Helpers_encode_uri_component$17 = function $$encode_uri_component(str) {
22210
+ Opal.def(self, '$encode_uri_component', $Helpers_encode_uri_component$18 = function $$encode_uri_component(str) {
22177
22211
  var self = this;
22178
22212
 
22179
22213
 
@@ -22181,12 +22215,12 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22181
22215
  return m === '%20' ? '+' : '%' + m.charCodeAt(0).toString(16)
22182
22216
  })
22183
22217
 
22184
- }, $Helpers_encode_uri_component$17.$$arity = 1)
22218
+ }, $Helpers_encode_uri_component$18.$$arity = 1)
22185
22219
  } else {
22186
22220
  nil
22187
22221
  };
22188
22222
 
22189
- Opal.def(self, '$encode_spaces_in_uri', $Helpers_encode_spaces_in_uri$18 = function $$encode_spaces_in_uri(str) {
22223
+ Opal.def(self, '$encode_spaces_in_uri', $Helpers_encode_spaces_in_uri$19 = function $$encode_spaces_in_uri(str) {
22190
22224
  var self = this;
22191
22225
 
22192
22226
  if ($truthy(str['$include?'](" "))) {
@@ -22195,9 +22229,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22195
22229
  } else {
22196
22230
  return str
22197
22231
  }
22198
- }, $Helpers_encode_spaces_in_uri$18.$$arity = 1);
22232
+ }, $Helpers_encode_spaces_in_uri$19.$$arity = 1);
22199
22233
 
22200
- Opal.def(self, '$rootname', $Helpers_rootname$19 = function $$rootname(filename) {
22234
+ Opal.def(self, '$rootname', $Helpers_rootname$20 = function $$rootname(filename) {
22201
22235
  var self = this, last_dot_idx = nil;
22202
22236
 
22203
22237
  if ($truthy((last_dot_idx = filename.$rindex(".")))) {
@@ -22210,9 +22244,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22210
22244
  } else {
22211
22245
  return filename
22212
22246
  }
22213
- }, $Helpers_rootname$19.$$arity = 1);
22247
+ }, $Helpers_rootname$20.$$arity = 1);
22214
22248
 
22215
- Opal.def(self, '$basename', $Helpers_basename$20 = function $$basename(filename, drop_ext) {
22249
+ Opal.def(self, '$basename', $Helpers_basename$21 = function $$basename(filename, drop_ext) {
22216
22250
  var self = this;
22217
22251
 
22218
22252
 
@@ -22230,16 +22264,16 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22230
22264
  } else {
22231
22265
  return $$$('::', 'File').$basename(filename)
22232
22266
  };
22233
- }, $Helpers_basename$20.$$arity = -2);
22267
+ }, $Helpers_basename$21.$$arity = -2);
22234
22268
 
22235
- Opal.def(self, '$extname?', $Helpers_extname$ques$21 = function(path) {
22269
+ Opal.def(self, '$extname?', $Helpers_extname$ques$22 = function(path) {
22236
22270
  var $a, self = this, last_dot_idx = nil;
22237
22271
 
22238
22272
  return ($truthy($a = (last_dot_idx = path.$rindex("."))) ? path.$index("/", last_dot_idx)['$!']() : $a)
22239
- }, $Helpers_extname$ques$21.$$arity = 1);
22273
+ }, $Helpers_extname$ques$22.$$arity = 1);
22240
22274
  if ($truthy($$$($$$('::', 'File'), 'ALT_SEPARATOR'))) {
22241
22275
 
22242
- Opal.def(self, '$extname', $Helpers_extname$22 = function $$extname(path, fallback) {
22276
+ Opal.def(self, '$extname', $Helpers_extname$23 = function $$extname(path, fallback) {
22243
22277
  var $a, self = this, last_dot_idx = nil;
22244
22278
 
22245
22279
 
@@ -22257,10 +22291,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22257
22291
  } else {
22258
22292
  return fallback
22259
22293
  };
22260
- }, $Helpers_extname$22.$$arity = -2)
22294
+ }, $Helpers_extname$23.$$arity = -2)
22261
22295
  } else {
22262
22296
 
22263
- Opal.def(self, '$extname', $Helpers_extname$23 = function $$extname(path, fallback) {
22297
+ Opal.def(self, '$extname', $Helpers_extname$24 = function $$extname(path, fallback) {
22264
22298
  var self = this, last_dot_idx = nil;
22265
22299
 
22266
22300
 
@@ -22278,10 +22312,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22278
22312
  } else {
22279
22313
  return fallback
22280
22314
  };
22281
- }, $Helpers_extname$23.$$arity = -2)
22315
+ }, $Helpers_extname$24.$$arity = -2)
22282
22316
  };
22283
22317
 
22284
- Opal.def(self, '$mkdir_p', $Helpers_mkdir_p$24 = function $$mkdir_p(dir) {
22318
+ Opal.def(self, '$mkdir_p', $Helpers_mkdir_p$25 = function $$mkdir_p(dir) {
22285
22319
  var self = this, parent_dir = nil;
22286
22320
 
22287
22321
  if ($truthy($$$('::', 'File')['$directory?'](dir))) {
@@ -22307,14 +22341,14 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22307
22341
  } else { throw $err; }
22308
22342
  };;
22309
22343
  }
22310
- }, $Helpers_mkdir_p$24.$$arity = 1);
22344
+ }, $Helpers_mkdir_p$25.$$arity = 1);
22311
22345
  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}));
22312
22346
  self.$private_constant("ROMAN_NUMERALS");
22313
22347
 
22314
- Opal.def(self, '$int_to_roman', $Helpers_int_to_roman$25 = function $$int_to_roman(val) {
22315
- var $$26, self = this;
22348
+ Opal.def(self, '$int_to_roman', $Helpers_int_to_roman$26 = function $$int_to_roman(val) {
22349
+ var $$27, self = this;
22316
22350
 
22317
- return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$26 = function(l, i){var self = $$26.$$s || this, $a, $b, repeat = nil;
22351
+ return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$27 = function(l, i){var self = $$27.$$s || this, $a, $b, repeat = nil;
22318
22352
 
22319
22353
 
22320
22354
 
@@ -22326,10 +22360,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22326
22360
  i = nil;
22327
22361
  };
22328
22362
  $b = val.$divmod(i), $a = Opal.to_ary($b), (repeat = ($a[0] == null ? nil : $a[0])), (val = ($a[1] == null ? nil : $a[1])), $b;
22329
- return $rb_times(l, repeat);}, $$26.$$s = self, $$26.$$arity = 2, $$26)).$join()
22330
- }, $Helpers_int_to_roman$25.$$arity = 1);
22363
+ return $rb_times(l, repeat);}, $$27.$$s = self, $$27.$$arity = 2, $$27)).$join()
22364
+ }, $Helpers_int_to_roman$26.$$arity = 1);
22331
22365
 
22332
- Opal.def(self, '$nextval', $Helpers_nextval$27 = function $$nextval(current) {
22366
+ Opal.def(self, '$nextval', $Helpers_nextval$28 = function $$nextval(current) {
22333
22367
  var self = this, intval = nil;
22334
22368
 
22335
22369
  if ($truthy($$$('::', 'Integer')['$==='](current))) {
@@ -22339,9 +22373,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22339
22373
  } else {
22340
22374
  return current.$succ()
22341
22375
  }
22342
- }, $Helpers_nextval$27.$$arity = 1);
22376
+ }, $Helpers_nextval$28.$$arity = 1);
22343
22377
 
22344
- Opal.def(self, '$resolve_class', $Helpers_resolve_class$28 = function $$resolve_class(object) {
22378
+ Opal.def(self, '$resolve_class', $Helpers_resolve_class$29 = function $$resolve_class(object) {
22345
22379
  var self = this;
22346
22380
 
22347
22381
  if ($truthy($$$('::', 'Class')['$==='](object))) {
@@ -22355,9 +22389,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22355
22389
  return nil
22356
22390
  };
22357
22391
  }
22358
- }, $Helpers_resolve_class$28.$$arity = 1);
22392
+ }, $Helpers_resolve_class$29.$$arity = 1);
22359
22393
 
22360
- Opal.def(self, '$class_for_name', $Helpers_class_for_name$29 = function $$class_for_name(qualified_name) {
22394
+ Opal.def(self, '$class_for_name', $Helpers_class_for_name$30 = function $$class_for_name(qualified_name) {
22361
22395
  var self = this, resolved = nil;
22362
22396
 
22363
22397
  try {
@@ -22374,7 +22408,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
22374
22408
  } finally { Opal.pop_exception() }
22375
22409
  } else { throw $err; }
22376
22410
  }
22377
- }, $Helpers_class_for_name$29.$$arity = 1);
22411
+ }, $Helpers_class_for_name$30.$$arity = 1);
22378
22412
  })($nesting[0], $nesting)
22379
22413
  })($nesting[0], $nesting)
22380
22414
  };
@@ -22744,9 +22778,11 @@ Opal.modules["asciidoctor/logging"] = function(Opal) {
22744
22778
  self.$attr_reader("messages");
22745
22779
 
22746
22780
  Opal.def(self, '$initialize', $MemoryLogger_initialize$6 = function $$initialize() {
22747
- var self = this, $writer = nil;
22781
+ var $iter = $MemoryLogger_initialize$6.$$p, $yield = $iter || nil, self = this, $writer = nil;
22748
22782
 
22783
+ if ($iter) $MemoryLogger_initialize$6.$$p = null;
22749
22784
 
22785
+ $send(self, Opal.find_super_dispatcher(self, 'initialize', $MemoryLogger_initialize$6, false), [nil], null);
22750
22786
 
22751
22787
  $writer = [$$($nesting, 'WARN')];
22752
22788
  $send(self, 'level=', Opal.to_a($writer));
@@ -22814,12 +22850,15 @@ Opal.modules["asciidoctor/logging"] = function(Opal) {
22814
22850
  self.$attr_reader("max_severity");
22815
22851
 
22816
22852
  Opal.def(self, '$initialize', $NullLogger_initialize$12 = function $$initialize() {
22817
- var self = this, $writer = nil;
22853
+ var $iter = $NullLogger_initialize$12.$$p, $yield = $iter || nil, self = this, $writer = nil;
22818
22854
 
22855
+ if ($iter) $NullLogger_initialize$12.$$p = null;
22856
+
22857
+ $send(self, Opal.find_super_dispatcher(self, 'initialize', $NullLogger_initialize$12, false), [nil], null);
22819
22858
 
22820
22859
  $writer = [$$($nesting, 'WARN')];
22821
22860
  $send(self, 'level=', Opal.to_a($writer));
22822
- return $writer[$rb_minus($writer["length"], 1)];
22861
+ return $writer[$rb_minus($writer["length"], 1)];;
22823
22862
  }, $NullLogger_initialize$12.$$arity = 0);
22824
22863
  return (Opal.def(self, '$add', $NullLogger_add$13 = function $$add(severity, message, progname) {
22825
22864
  var $a, self = this;
@@ -22948,7 +22987,7 @@ Opal.modules["asciidoctor/rx"] = function(Opal) {
22948
22987
  Opal.const_set($nesting[0], 'ManpageNamePurposeRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) +- +(" + ($$($nesting, 'CC_ANY')) + "+)$"));
22949
22988
  Opal.const_set($nesting[0], 'ConditionalDirectiveRx', new RegExp("" + "^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22950
22989
  Opal.const_set($nesting[0], 'EvalExpressionRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *([=!><]=|[><]) *(" + ($$($nesting, 'CC_ANY')) + "+)$"));
22951
- Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\[][^\\[]*)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22990
+ Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\s\\[](?:[^\\[]*[^\\s\\[])?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
22952
22991
  Opal.const_set($nesting[0], 'TagDirectiveRx', /\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m);
22953
22992
  Opal.const_set($nesting[0], 'AttributeEntryRx', new RegExp("" + "^:(!?" + ($$($nesting, 'CG_WORD')) + "[^:]*):(?:[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
22954
22993
  Opal.const_set($nesting[0], 'InvalidAttributeNameCharsRx', new RegExp("" + "[^" + ($$($nesting, 'CC_WORD')) + "-]"));
@@ -23034,14 +23073,13 @@ Opal.modules["asciidoctor/rx"] = function(Opal) {
23034
23073
  Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
23035
23074
  Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
23036
23075
  Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
23037
- Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|&lt;|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])?", 'm'));
23076
+ Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|\\\\?&lt;()|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\2([^\\s]*?)&gt;|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))", 'm'));
23038
23077
  Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
23039
23078
  Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*$"));
23040
23079
  Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
23041
23080
  Opal.const_set($nesting[0], 'InlineMenuMacroRx', new RegExp("" + "\\\\?menu:(" + ($$($nesting, 'CG_WORD')) + "|[" + ($$($nesting, 'CC_WORD')) + "&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))\\]", 'm'));
23042
23081
  Opal.const_set($nesting[0], 'InlineMenuRx', new RegExp("" + "\\\\?\"([" + ($$($nesting, 'CC_WORD')) + "&][^\"]*?[ \\n]+&gt;[ \\n]+[^\"]*)\""));
23043
- 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')]));
23044
- Opal.const_set($nesting[0], 'SinglePlusInlinePassRx', new RegExp("" + "^(\\\\)?\\+(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\+$", 'm'));
23082
+ Opal.const_set($nesting[0], 'InlinePassRx', $hash(false, ["+", "-]", new RegExp("" + "((?:^|[^" + ($$($nesting, 'CC_WORD')) + ";:\\\\])(?=(\\[)|\\+)|\\\\(?=\\[)|(?=\\\\\\+))(?:\\2(x-|[^\\]]+ x-)\\]|(?:\\[([^\\]]+)\\])?(?=(\\\\)?\\+))(\\5?(\\+|`)(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\7)(?!" + ($$($nesting, 'CG_WORD')) + ")", 'm')], true, ["`", nil, new RegExp("" + "(^|[^`" + ($$($nesting, 'CC_WORD')) + "])(?:(\\Z)()|\\[([^\\]]+)\\](?=(\\\\))?)?(\\5?(`)([^`\\s]|[^`\\s]" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\7)(?![`" + ($$($nesting, 'CC_WORD')) + "])", 'm')]));
23045
23083
  Opal.const_set($nesting[0], 'InlinePassMacroRx', new RegExp("" + "(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(" + ($$($nesting, 'CC_ALL')) + "*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])", 'm'));
23046
23084
  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'));
23047
23085
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
@@ -23057,7 +23095,11 @@ Opal.modules["asciidoctor/rx"] = function(Opal) {
23057
23095
  Opal.const_set($nesting[0], 'SpaceDelimiterRx', /([^\\])[ \t\n]+/);
23058
23096
  Opal.const_set($nesting[0], 'SubModifierSniffRx', /[+-]/);
23059
23097
  Opal.const_set($nesting[0], 'TrailingDigitsRx', /\d+$/);
23060
- Opal.const_set($nesting[0], 'UriSniffRx', new RegExp("" + "^" + ($$($nesting, 'CG_ALPHA')) + "[" + ($$($nesting, 'CC_ALNUM')) + ".+-]+:/{0,2}"));
23098
+ if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
23099
+ Opal.const_set($nesting[0], 'UriSniffRx', new RegExp("" + "^" + ($$($nesting, 'CG_ALPHA')) + "[" + ($$($nesting, 'CC_ALNUM')) + ".+-]+:/{0,2}"))
23100
+ } else {
23101
+ nil
23102
+ };
23061
23103
  Opal.const_set($nesting[0], 'XmlSanitizeRx', /<[^>]+>/);
23062
23104
  })($nesting[0], $nesting)
23063
23105
  };
@@ -23081,7 +23123,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
23081
23123
  }
23082
23124
  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, $hash = Opal.hash, $truthy = Opal.truthy, $send = Opal.send, $gvars = Opal.gvars;
23083
23125
 
23084
- Opal.add_stubs(['$freeze', '$+', '$keys', '$empty?', '$!', '$===', '$[]', '$join', '$include?', '$extract_passthroughs', '$each', '$sub_specialchars', '$sub_quotes', '$sub_attributes', '$sub_replacements', '$sub_macros', '$highlight_source', '$sub_callouts', '$sub_post_replacements', '$warn', '$logger', '$restore_passthroughs', '$clear', '$split', '$apply_subs', '$==', '$gsub', '$match?', '$compat_mode', '$convert_quoted_text', '$attributes', '$shift', '$store_attribute', '$!=', '$attribute_undefined', '$counter', '$key?', '$downcase', '$attribute_missing', '$info', '$squeeze', '$delete', '$reject', '$start_with?', '$do_replacement', '$extensions', '$inline_macros?', '$inline_macros', '$regexp', '$instance', '$slice', '$length', '$names', '$config', '$merge', '$[]=', '$-', '$normalize_text', '$parse_attributes', '$process_method', '$expand_subs', '$text', '$text=', '$convert', '$class', '$strip', '$>', '$index', '$min', '$compact', '$end_with?', '$map', '$chop', '$new', '$pop', '$rstrip', '$register', '$tr', '$basename', '$parse', '$lstrip', '$split_simple_csv', '$partition', '$extract_attributes_from_text', '$sub', '$encode_uri_component', '$style', '$extname?', '$rindex', '$info?', '$catalog', '$fetch', '$outfilesuffix', '$natural_xrefs', '$resolve_id', '$find', '$footnotes', '$id', '$<', '$size', '$<<', '$attr?', '$attr', '$to_s', '$read_next_id', '$callouts', '$syntax_highlighter', '$highlight?', '$sub_source', '$extract_callouts', '$name', '$to_sym', '$to_i', '$resolve_lines_to_highlight', '$highlight', '$nil_or_empty?', '$restore_callouts', '$count', '$to_a', '$|', '$sort', '$*', '$parse_quoted_text_attributes', '$resolve_pass_subs', '$extract_inner_passthrough', '$basebackend?', '$error', '$chr', '$drop', '$&', '$resolve_subs', '$resolve_block_subs', '$parse_into', '$private', '$=~', '$shorthand_property_syntax', '$each_char']);
23126
+ Opal.add_stubs(['$freeze', '$+', '$keys', '$empty?', '$!', '$===', '$[]', '$join', '$include?', '$extract_passthroughs', '$each', '$sub_specialchars', '$sub_quotes', '$sub_attributes', '$sub_replacements', '$sub_macros', '$highlight_source', '$sub_callouts', '$sub_post_replacements', '$warn', '$logger', '$restore_passthroughs', '$clear', '$split', '$apply_subs', '$==', '$gsub', '$match?', '$compat_mode', '$convert_quoted_text', '$attributes', '$shift', '$store_attribute', '$!=', '$attribute_undefined', '$counter', '$key?', '$downcase', '$attribute_missing', '$info', '$squeeze', '$delete', '$reject', '$start_with?', '$do_replacement', '$extensions', '$inline_macros?', '$inline_macros', '$regexp', '$instance', '$slice', '$length', '$names', '$config', '$merge', '$[]=', '$-', '$normalize_text', '$parse_attributes', '$process_method', '$expand_subs', '$text', '$text=', '$convert', '$class', '$strip', '$>', '$index', '$min', '$compact', '$end_with?', '$map', '$chop', '$new', '$pop', '$rstrip', '$register', '$tr', '$basename', '$parse', '$<<', '$lstrip', '$split_simple_csv', '$partition', '$sub', '$extract_attributes_from_text', '$encode_uri_component', '$style', '$extname?', '$rindex', '$info?', '$catalog', '$fetch', '$outfilesuffix', '$natural_xrefs', '$resolve_id', '$find', '$footnotes', '$id', '$<', '$size', '$attr?', '$attr', '$to_s', '$read_next_id', '$callouts', '$syntax_highlighter', '$highlight?', '$sub_source', '$extract_callouts', '$name', '$to_sym', '$to_i', '$resolve_lines_to_highlight', '$highlight', '$nil_or_empty?', '$restore_callouts', '$count', '$to_a', '$|', '$sort', '$*', '$parse_quoted_text_attributes', '$resolve_pass_subs', '$basebackend?', '$error', '$chr', '$drop', '$&', '$resolve_subs', '$resolve_block_subs', '$parse_into', '$private', '$shorthand_property_syntax', '$each_char']);
23085
23127
  return (function($base, $parent_nesting) {
23086
23128
  var self = $module($base, 'Asciidoctor');
23087
23129
 
@@ -23090,7 +23132,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
23090
23132
  (function($base, $parent_nesting) {
23091
23133
  var self = $module($base, 'Substitutors');
23092
23134
 
23093
- var $nesting = [self].concat($parent_nesting), $Substitutors_apply_subs$1, $Substitutors_apply_normal_subs$3, $Substitutors_apply_header_subs$4, $Substitutors_apply_reftext_subs$5, $Substitutors_sub_specialchars$6, $Substitutors_sub_quotes$7, $Substitutors_sub_attributes$10, $Substitutors_sub_replacements$16, $Substitutors_sub_macros$19, $Substitutors_sub_post_replacements$42, $Substitutors_sub_source$45, $Substitutors_sub_callouts$46, $Substitutors_highlight_source$48, $Substitutors_resolve_lines_to_highlight$49, $Substitutors_extract_passthroughs$52, $Substitutors_restore_passthroughs$56, $Substitutors_resolve_subs$58, $Substitutors_resolve_block_subs$60, $Substitutors_resolve_pass_subs$61, $Substitutors_expand_subs$62, $Substitutors_commit_subs$64, $Substitutors_parse_attributes$65, $Substitutors_extract_attributes_from_text$66, $Substitutors_extract_callouts$67, $Substitutors_restore_callouts$70, $Substitutors_extract_inner_passthrough$73, $Substitutors_convert_quoted_text$74, $Substitutors_do_replacement$75, $Substitutors_parse_quoted_text_attributes$76, $Substitutors_normalize_text$77, $Substitutors_split_simple_csv$78;
23135
+ var $nesting = [self].concat($parent_nesting), $Substitutors_apply_subs$1, $Substitutors_apply_normal_subs$3, $Substitutors_apply_header_subs$4, $Substitutors_apply_reftext_subs$5, $Substitutors_sub_specialchars$6, $Substitutors_sub_quotes$7, $Substitutors_sub_attributes$10, $Substitutors_sub_replacements$16, $Substitutors_sub_macros$19, $Substitutors_sub_post_replacements$42, $Substitutors_sub_source$45, $Substitutors_sub_callouts$46, $Substitutors_highlight_source$48, $Substitutors_resolve_lines_to_highlight$49, $Substitutors_extract_passthroughs$52, $Substitutors_restore_passthroughs$56, $Substitutors_resolve_subs$58, $Substitutors_resolve_block_subs$60, $Substitutors_resolve_pass_subs$61, $Substitutors_expand_subs$62, $Substitutors_commit_subs$64, $Substitutors_parse_attributes$65, $Substitutors_extract_attributes_from_text$66, $Substitutors_extract_callouts$67, $Substitutors_restore_callouts$70, $Substitutors_convert_quoted_text$73, $Substitutors_do_replacement$74, $Substitutors_parse_quoted_text_attributes$75, $Substitutors_normalize_text$76, $Substitutors_split_simple_csv$77;
23094
23136
 
23095
23137
 
23096
23138
  Opal.const_set($nesting[0], 'SpecialCharsRx', /[<&>]/);
@@ -23586,7 +23628,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
23586
23628
  ($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)]));
23587
23629
  return $$($nesting, 'Inline').$new(self, "image", nil, $hash2(["type", "target", "attributes"], {"type": type, "target": target, "attributes": attrs})).$convert();}, $$30.$$s = self, $$30.$$arity = 0, $$30))};
23588
23630
  if ($truthy(($truthy($a = ($truthy($b = text['$include?']("((")) ? text['$include?']("))") : $b)) ? $a : ($truthy($b = found_macroish_short) ? text['$include?']("dexterm") : $b)))) {
23589
- text = $send(text, 'gsub', [$$($nesting, 'InlineIndextermMacroRx')], ($$31 = function(){var self = $$31.$$s || this, $c, $$32, $d, $$33, $case = nil, attrlist = nil, primary = nil, attrs = nil, $writer = nil, see_also = nil, term = nil, encl_text = nil, visible = nil, before = nil, after = nil, _ = nil, see = nil, subbed_term = nil, terms = nil;
23631
+ text = $send(text, 'gsub', [$$($nesting, 'InlineIndextermMacroRx')], ($$31 = function(){var self = $$31.$$s || this, $c, $$32, $d, $$33, $case = nil, attrlist = nil, primary = nil, attrs = nil, terms = nil, secondary = nil, tertiary = nil, $writer = nil, see_also = nil, term = nil, encl_text = nil, visible = nil, before = nil, after = nil, _ = nil, see = nil, subbed_term = nil;
23590
23632
 
23591
23633
  return (function() {$case = (($c = $gvars['~']) === nil ? nil : $c['$[]'](1));
23592
23634
  if ("indexterm"['$===']($case)) {
@@ -23595,8 +23637,14 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
23595
23637
  if ($truthy((attrlist = self.$normalize_text((($c = $gvars['~']) === nil ? nil : $c['$[]'](2)), true, true))['$include?']("="))) {
23596
23638
  if ($truthy((primary = (attrs = $$($nesting, 'AttributeList').$new(attrlist, self).$parse())['$[]'](1)))) {
23597
23639
 
23640
+ terms = [primary];
23641
+ if ($truthy((secondary = attrs['$[]'](2)))) {
23642
+
23643
+ terms['$<<'](secondary);
23644
+ if ($truthy((tertiary = attrs['$[]'](3)))) {
23645
+ terms['$<<'](tertiary)};};
23598
23646
 
23599
- $writer = ["terms", [primary]];
23647
+ $writer = ["terms", terms];
23600
23648
  $send(attrs, '[]=', Opal.to_a($writer));
23601
23649
  $writer[$rb_minus($writer["length"], 1)];;
23602
23650
  if ($truthy((see_also = attrs['$[]']("see-also")))) {
@@ -23709,78 +23757,93 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
23709
23757
  return subbed_term
23710
23758
  };}})()}, $$31.$$s = self, $$31.$$arity = 0, $$31))};
23711
23759
  if ($truthy(($truthy($a = found_colon) ? text['$include?']("://") : $a))) {
23712
- text = $send(text, 'gsub', [$$($nesting, 'InlineLinkRx')], ($$34 = function(){var self = $$34.$$s || this, $c, $d, target = nil, prefix = nil, suffix = nil, link_text = nil, $case = nil, attrs = nil, link_opts = nil, new_link_text = nil, $writer = nil, bare = nil;
23760
+ text = $send(text, 'gsub', [$$($nesting, 'InlineLinkRx')], ($$34 = function(){var self = $$34.$$s || this, $c, $d, $e, target = nil, link_text = nil, prefix = nil, suffix = nil, $case = nil, link_opts = nil, new_link_text = nil, attrs = nil, $writer = nil, bare = nil;
23713
23761
 
23714
-
23715
- if ($truthy((target = (($c = $gvars['~']) === nil ? nil : $c['$[]'](2)))['$start_with?']($$($nesting, 'RS')))) {
23716
- return "" + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))) + (target.$slice(1, target.$length())) + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](4)));};
23717
- $c = [(($d = $gvars['~']) === nil ? nil : $d['$[]'](1)), ""], (prefix = $c[0]), (suffix = $c[1]), $c;
23718
- if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](4)))) {
23762
+ if ($truthy(($truthy($c = (($d = $gvars['~']) === nil ? nil : $d['$[]'](2))) ? (($d = $gvars['~']) === nil ? nil : $d['$[]'](5))['$!']() : $c))) {
23719
23763
 
23720
- if (prefix['$==']("link:")) {
23721
- prefix = ""};
23722
- if ($truthy((link_text = (($c = $gvars['~']) === nil ? nil : $c['$[]'](4)))['$empty?']())) {
23723
- link_text = nil};
23764
+ if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))['$start_with?']($$($nesting, 'RS')))) {
23765
+ return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$slice(1, (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$length());};
23766
+ if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](3))['$start_with?']($$($nesting, 'RS')))) {
23767
+ return "" + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))) + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$slice($rb_plus((($c = $gvars['~']) === nil ? nil : $c['$[]'](1)).$length(), 1), (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$length()));};
23768
+ target = $rb_plus((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)), (($c = $gvars['~']) === nil ? nil : $c['$[]'](6)));
23769
+ if (target['$==']((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)))) {
23770
+ return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};
23771
+ doc.$register("links", target);
23772
+ link_text = (function() {if ($truthy(doc_attrs['$key?']("hide-uri-scheme"))) {
23773
+
23774
+ return target.$sub($$($nesting, 'UriSniffRx'), "");
23775
+ } else {
23776
+ return target
23777
+ }; return nil; })();
23778
+ return $$($nesting, 'Inline').$new(self, "anchor", link_text, $hash2(["type", "target", "attributes"], {"type": "link", "target": target, "attributes": $hash2(["role"], {"role": "bare"})})).$convert();
23724
23779
  } else {
23725
23780
 
23726
- $case = prefix;
23727
- if ("link:"['$===']($case) || "\""['$===']($case) || "'"['$===']($case)) {return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};
23728
- $case = (($c = $gvars['~']) === nil ? nil : $c['$[]'](3));
23729
- if (")"['$===']($case) || "?"['$===']($case) || "!"['$===']($case)) {
23730
- target = target.$chop();
23731
- if ($truthy((($c = (suffix = (($d = $gvars['~']) === nil ? nil : $d['$[]'](3)))['$=='](")")) ? target['$end_with?'](".", "?", "!") : (suffix = (($d = $gvars['~']) === nil ? nil : $d['$[]'](3)))['$=='](")")))) {
23732
-
23733
- suffix = $rb_plus(target['$[]'](-1), suffix);
23734
- target = target.$chop();};
23735
- if ($truthy(target['$end_with?']("://"))) {
23736
- return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};}
23737
- else if (";"['$===']($case)) {
23738
- if ($truthy(($truthy($c = prefix['$start_with?']("&lt;")) ? target['$end_with?']("&gt;") : $c))) {
23781
+ if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](3))['$start_with?']($$($nesting, 'RS')))) {
23782
+ return "" + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))) + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$slice($rb_plus((($c = $gvars['~']) === nil ? nil : $c['$[]'](1)).$length(), 1), (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$length()));};
23783
+ $c = [(($d = $gvars['~']) === nil ? nil : $d['$[]'](1)), $rb_plus((($d = $gvars['~']) === nil ? nil : $d['$[]'](3)), ($truthy($d = (($e = $gvars['~']) === nil ? nil : $e['$[]'](4))) ? $d : (($e = $gvars['~']) === nil ? nil : $e['$[]'](7)))), ""], (prefix = $c[0]), (target = $c[1]), (suffix = $c[2]), $c;
23784
+ if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](5)))) {
23739
23785
 
23740
- prefix = prefix.$slice(4, prefix.$length());
23741
- target = target.$slice(0, $rb_minus(target.$length(), 4));
23742
- } else if ($truthy((target = target.$chop())['$end_with?'](")"))) {
23743
-
23744
- target = target.$chop();
23745
- suffix = ");";
23786
+ if (prefix['$==']("link:")) {
23787
+ prefix = ""};
23788
+ if ($truthy((link_text = (($c = $gvars['~']) === nil ? nil : $c['$[]'](5)))['$empty?']())) {
23789
+ link_text = nil};
23746
23790
  } else {
23747
- suffix = ";"
23748
- };
23749
- if ($truthy(target['$end_with?']("://"))) {
23750
- return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};}
23751
- else if (":"['$===']($case)) {
23752
- if ($truthy((target = target.$chop())['$end_with?'](")"))) {
23753
23791
 
23754
- target = target.$chop();
23755
- suffix = "):";
23756
- } else {
23757
- suffix = ":"
23792
+ $case = prefix;
23793
+ if ("link:"['$===']($case) || "\""['$===']($case) || "'"['$===']($case)) {return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};
23794
+ $case = (($c = $gvars['~']) === nil ? nil : $c['$[]'](8));
23795
+ if (";"['$===']($case)) {
23796
+ if ($truthy((target = target.$chop())['$end_with?'](")"))) {
23797
+
23798
+ target = target.$chop();
23799
+ suffix = ");";
23800
+ } else {
23801
+ suffix = ";"
23802
+ };
23803
+ if (target['$==']((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)))) {
23804
+ return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};}
23805
+ else if (":"['$===']($case)) {
23806
+ if ($truthy((target = target.$chop())['$end_with?'](")"))) {
23807
+
23808
+ target = target.$chop();
23809
+ suffix = "):";
23810
+ } else {
23811
+ suffix = ":"
23812
+ };
23813
+ if (target['$==']((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)))) {
23814
+ return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};};
23758
23815
  };
23759
- if ($truthy(target['$end_with?']("://"))) {
23760
- return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};};
23761
- };
23762
- $c = [nil, $hash2(["type"], {"type": "link"})], (attrs = $c[0]), (link_opts = $c[1]), $c;
23763
- if ($truthy(link_text)) {
23764
-
23765
- if ($truthy(link_text['$include?']($$($nesting, 'R_SB')))) {
23766
- new_link_text = (link_text = link_text.$gsub($$($nesting, 'ESC_R_SB'), $$($nesting, 'R_SB')))};
23767
- if ($truthy(($truthy($c = doc.$compat_mode()['$!']()) ? link_text['$include?']("=") : $c))) {
23816
+ link_opts = $hash2(["type"], {"type": "link"});
23817
+ if ($truthy(link_text)) {
23768
23818
 
23769
- $d = self.$extract_attributes_from_text(link_text, ""), $c = Opal.to_ary($d), (link_text = ($c[0] == null ? nil : $c[0])), (attrs = ($c[1] == null ? nil : $c[1])), $d;
23770
- new_link_text = link_text;
23771
-
23772
- $writer = ["id", attrs['$[]']("id")];
23773
- $send(link_opts, '[]=', Opal.to_a($writer));
23774
- $writer[$rb_minus($writer["length"], 1)];;};
23775
- if ($truthy(link_text['$end_with?']("^"))) {
23776
-
23777
- new_link_text = (link_text = link_text.$chop());
23778
- if ($truthy(attrs)) {
23779
- ($truthy($c = attrs['$[]']("window")) ? $c : (($writer = ["window", "_blank"]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))
23780
- } else {
23781
- attrs = $hash2(["window"], {"window": "_blank"})
23782
- };};
23783
- if ($truthy(($truthy($c = new_link_text) ? new_link_text['$empty?']() : $c))) {
23819
+ if ($truthy(link_text['$include?']($$($nesting, 'R_SB')))) {
23820
+ new_link_text = (link_text = link_text.$gsub($$($nesting, 'ESC_R_SB'), $$($nesting, 'R_SB')))};
23821
+ if ($truthy(($truthy($c = doc.$compat_mode()['$!']()) ? link_text['$include?']("=") : $c))) {
23822
+
23823
+ $d = self.$extract_attributes_from_text(link_text, ""), $c = Opal.to_ary($d), (link_text = ($c[0] == null ? nil : $c[0])), (attrs = ($c[1] == null ? nil : $c[1])), $d;
23824
+ new_link_text = link_text;
23825
+
23826
+ $writer = ["id", attrs['$[]']("id")];
23827
+ $send(link_opts, '[]=', Opal.to_a($writer));
23828
+ $writer[$rb_minus($writer["length"], 1)];;};
23829
+ if ($truthy(link_text['$end_with?']("^"))) {
23830
+
23831
+ new_link_text = (link_text = link_text.$chop());
23832
+ if ($truthy(attrs)) {
23833
+ ($truthy($c = attrs['$[]']("window")) ? $c : (($writer = ["window", "_blank"]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))
23834
+ } else {
23835
+ attrs = $hash2(["window"], {"window": "_blank"})
23836
+ };};
23837
+ if ($truthy(($truthy($c = new_link_text) ? new_link_text['$empty?']() : $c))) {
23838
+
23839
+ link_text = (function() {if ($truthy(doc_attrs['$key?']("hide-uri-scheme"))) {
23840
+
23841
+ return target.$sub($$($nesting, 'UriSniffRx'), "");
23842
+ } else {
23843
+ return target
23844
+ }; return nil; })();
23845
+ bare = true;};
23846
+ } else {
23784
23847
 
23785
23848
  link_text = (function() {if ($truthy(doc_attrs['$key?']("hide-uri-scheme"))) {
23786
23849
 
@@ -23788,37 +23851,29 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
23788
23851
  } else {
23789
23852
  return target
23790
23853
  }; return nil; })();
23791
- bare = true;};
23792
- } else {
23793
-
23794
- link_text = (function() {if ($truthy(doc_attrs['$key?']("hide-uri-scheme"))) {
23795
-
23796
- return target.$sub($$($nesting, 'UriSniffRx'), "");
23797
- } else {
23798
- return target
23799
- }; return nil; })();
23800
- bare = true;
23801
- };
23802
- if ($truthy(bare)) {
23854
+ bare = true;
23855
+ };
23856
+ if ($truthy(bare)) {
23857
+ if ($truthy(attrs)) {
23858
+
23859
+ $writer = ["role", (function() {if ($truthy(attrs['$key?']("role"))) {
23860
+ return "" + "bare " + (attrs['$[]']("role"))
23861
+ } else {
23862
+ return "bare"
23863
+ }; return nil; })()];
23864
+ $send(attrs, '[]=', Opal.to_a($writer));
23865
+ $writer[$rb_minus($writer["length"], 1)];
23866
+ } else {
23867
+ attrs = $hash2(["role"], {"role": "bare"})
23868
+ }};
23869
+ doc.$register("links", (($writer = ["target", target]), $send(link_opts, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
23803
23870
  if ($truthy(attrs)) {
23804
23871
 
23805
- $writer = ["role", (function() {if ($truthy(attrs['$key?']("role"))) {
23806
- return "" + "bare " + (attrs['$[]']("role"))
23807
- } else {
23808
- return "bare"
23809
- }; return nil; })()];
23810
- $send(attrs, '[]=', Opal.to_a($writer));
23811
- $writer[$rb_minus($writer["length"], 1)];
23812
- } else {
23813
- attrs = $hash2(["role"], {"role": "bare"})
23814
- }};
23815
- doc.$register("links", (($writer = ["target", target]), $send(link_opts, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
23816
- if ($truthy(attrs)) {
23817
-
23818
- $writer = ["attributes", attrs];
23819
- $send(link_opts, '[]=', Opal.to_a($writer));
23820
- $writer[$rb_minus($writer["length"], 1)];};
23821
- return "" + (prefix) + ($$($nesting, 'Inline').$new(self, "anchor", link_text, link_opts).$convert()) + (suffix);}, $$34.$$s = self, $$34.$$arity = 0, $$34))};
23872
+ $writer = ["attributes", attrs];
23873
+ $send(link_opts, '[]=', Opal.to_a($writer));
23874
+ $writer[$rb_minus($writer["length"], 1)];};
23875
+ return "" + (prefix) + ($$($nesting, 'Inline').$new(self, "anchor", link_text, link_opts).$convert()) + (suffix);
23876
+ }}, $$34.$$s = self, $$34.$$arity = 0, $$34))};
23822
23877
  if ($truthy(($truthy($a = found_macroish) ? ($truthy($b = text['$include?']("link:")) ? $b : text['$include?']("ilto:")) : $a))) {
23823
23878
  text = $send(text, 'gsub', [$$($nesting, 'InlineLinkMacroRx')], ($$35 = function(){var self = $$35.$$s || this, $c, $d, mailto = nil, target = nil, mailto_text = nil, attrs = nil, link_opts = nil, link_text = nil, $writer = nil;
23824
23879
 
@@ -23956,7 +24011,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
23956
24011
  };
23957
24012
  if ($truthy(doc.$compat_mode())) {
23958
24013
  fragment = refid
23959
- } else if ($truthy((hash_idx = refid.$index("#")))) {
24014
+ } else if ($truthy(($truthy($c = (hash_idx = refid.$index("#"))) ? refid['$[]']($rb_minus(hash_idx, 1))['$!=']("&") : $c))) {
23960
24015
  if ($truthy($rb_gt(hash_idx, 0))) {
23961
24016
 
23962
24017
  if ($truthy($rb_gt((fragment_len = $rb_minus($rb_minus(refid.$length(), 1), hash_idx)), 0))) {
@@ -24307,13 +24362,20 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
24307
24362
  return "" + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))) + "[" + (attrlist) + "]" + ($rb_times($$($nesting, 'RS'), $rb_minus(escape_count, 1))) + (boundary) + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](5))) + (boundary);
24308
24363
  } else if ((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))['$==']($$($nesting, 'RS'))) {
24309
24364
  preceding = "" + "[" + (attrlist) + "]"
24310
- } else {
24311
-
24312
- if ($truthy((($c = boundary['$==']("++")) ? attrlist['$end_with?']("x-") : boundary['$==']("++")))) {
24365
+ } else if (boundary['$==']("++")) {
24366
+ if (attrlist['$==']("x-")) {
24313
24367
 
24314
24368
  old_behavior = true;
24315
- attrlist = attrlist.$slice(0, $rb_minus(attrlist.$length(), 2));};
24316
- attributes = self.$parse_quoted_text_attributes(attrlist);
24369
+ attributes = $hash2([], {});
24370
+ } else if ($truthy(attrlist['$end_with?'](" x-"))) {
24371
+
24372
+ old_behavior = true;
24373
+ attributes = self.$parse_quoted_text_attributes(attrlist.$slice(0, $rb_minus(attrlist.$length(), 3)));
24374
+ } else {
24375
+ attributes = self.$parse_quoted_text_attributes(attrlist)
24376
+ }
24377
+ } else {
24378
+ attributes = self.$parse_quoted_text_attributes(attrlist)
24317
24379
  }
24318
24380
  } else if ($truthy($rb_gt((escape_count = (($c = $gvars['~']) === nil ? nil : $c['$[]'](3)).$length()), 0))) {
24319
24381
  return "" + ($rb_times($$($nesting, 'RS'), $rb_minus(escape_count, 1))) + (boundary) + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](5))) + (boundary);};
@@ -24359,33 +24421,42 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
24359
24421
  return "" + (($truthy($c = preceding) ? $c : "")) + ($$($nesting, 'PASS_START')) + (passthru_key) + ($$($nesting, 'PASS_END'));}, $$53.$$s = self, $$53.$$arity = 0, $$53))};
24360
24422
  $b = $$($nesting, 'InlinePassRx')['$[]'](compat_mode), $a = Opal.to_ary($b), (pass_inline_char1 = ($a[0] == null ? nil : $a[0])), (pass_inline_char2 = ($a[1] == null ? nil : $a[1])), (pass_inline_rx = ($a[2] == null ? nil : $a[2])), $b;
24361
24423
  if ($truthy(($truthy($a = text['$include?'](pass_inline_char1)) ? $a : ($truthy($b = pass_inline_char2) ? text['$include?'](pass_inline_char2) : $b)))) {
24362
- text = $send(text, 'gsub', [pass_inline_rx], ($$54 = function(){var self = $$54.$$s || this, $c, preceding = nil, attrlist = nil, quoted_text = nil, escape_mark = nil, format_mark = nil, content = nil, old_behavior = nil, attributes = nil, $writer = nil, passthru_key = nil, subs = nil;
24424
+ text = $send(text, 'gsub', [pass_inline_rx], ($$54 = function(){var self = $$54.$$s || this, $c, $d, preceding = nil, attrlist = nil, escaped = nil, quoted_text = nil, format_mark = nil, content = nil, old_behavior = nil, old_behavior_forced = nil, attributes = nil, $writer = nil, passthru_key = nil, subs = nil;
24363
24425
 
24364
24426
 
24365
24427
  preceding = (($c = $gvars['~']) === nil ? nil : $c['$[]'](1));
24366
- attrlist = (($c = $gvars['~']) === nil ? nil : $c['$[]'](2));
24367
- if ($truthy((quoted_text = (($c = $gvars['~']) === nil ? nil : $c['$[]'](3)))['$start_with?']($$($nesting, 'RS')))) {
24368
- escape_mark = $$($nesting, 'RS')};
24369
- format_mark = (($c = $gvars['~']) === nil ? nil : $c['$[]'](4));
24370
- content = (($c = $gvars['~']) === nil ? nil : $c['$[]'](5));
24428
+ attrlist = ($truthy($c = (($d = $gvars['~']) === nil ? nil : $d['$[]'](4))) ? $c : (($d = $gvars['~']) === nil ? nil : $d['$[]'](3)));
24429
+ if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](5)))) {
24430
+ escaped = true};
24431
+ quoted_text = (($c = $gvars['~']) === nil ? nil : $c['$[]'](6));
24432
+ format_mark = (($c = $gvars['~']) === nil ? nil : $c['$[]'](7));
24433
+ content = (($c = $gvars['~']) === nil ? nil : $c['$[]'](8));
24371
24434
  if ($truthy(compat_mode)) {
24372
24435
  old_behavior = true
24373
- } else if ($truthy((old_behavior = ($truthy($c = attrlist) ? attrlist['$end_with?']("x-") : $c)))) {
24374
- attrlist = attrlist.$slice(0, $rb_minus(attrlist.$length(), 2))};
24436
+ } else if ($truthy(($truthy($c = attrlist) ? ($truthy($d = attrlist['$==']("x-")) ? $d : attrlist['$end_with?'](" x-")) : $c))) {
24437
+ old_behavior = (old_behavior_forced = true)};
24375
24438
  if ($truthy(attrlist)) {
24376
- if ($truthy((($c = format_mark['$==']("`")) ? old_behavior['$!']() : format_mark['$==']("`")))) {
24377
- return self.$extract_inner_passthrough(content, "" + (preceding) + "[" + (attrlist) + "]" + (escape_mark));
24378
- } else if ($truthy(escape_mark)) {
24439
+ if ($truthy(escaped)) {
24379
24440
  return "" + (preceding) + "[" + (attrlist) + "]" + (quoted_text.$slice(1, quoted_text.$length()));
24380
24441
  } else if (preceding['$==']($$($nesting, 'RS'))) {
24381
- preceding = "" + "[" + (attrlist) + "]"
24442
+
24443
+ if ($truthy(($truthy($c = old_behavior_forced) ? format_mark['$==']("`") : $c))) {
24444
+ return "" + (preceding) + "[" + (attrlist) + "]" + (quoted_text);};
24445
+ preceding = "" + "[" + (attrlist) + "]";
24446
+ } else if ($truthy(old_behavior_forced)) {
24447
+ attributes = (function() {if (attrlist['$==']("x-")) {
24448
+ return $hash2([], {})
24449
+ } else {
24450
+
24451
+ return self.$parse_quoted_text_attributes(attrlist.$slice(0, $rb_minus(attrlist.$length(), 3)));
24452
+ }; return nil; })()
24382
24453
  } else {
24383
24454
  attributes = self.$parse_quoted_text_attributes(attrlist)
24384
24455
  }
24385
- } else if ($truthy((($c = format_mark['$==']("`")) ? old_behavior['$!']() : format_mark['$==']("`")))) {
24386
- return self.$extract_inner_passthrough(content, "" + (preceding) + (escape_mark));
24387
- } else if ($truthy(escape_mark)) {
24388
- return "" + (preceding) + (quoted_text.$slice(1, quoted_text.$length()));};
24456
+ } else if ($truthy(escaped)) {
24457
+ return "" + (preceding) + (quoted_text.$slice(1, quoted_text.$length()));
24458
+ } else if ($truthy(($truthy($c = compat_mode) ? preceding['$==']($$($nesting, 'RS')) : $c))) {
24459
+ return quoted_text;};
24389
24460
  if ($truthy(compat_mode)) {
24390
24461
 
24391
24462
  $writer = [(passthru_key = passthrus.$size()), $hash2(["text", "subs", "attributes", "type"], {"text": content, "subs": $$($nesting, 'BASIC_SUBS'), "attributes": attributes, "type": "monospaced"})];
@@ -24819,27 +24890,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
24819
24890
  };}, $$71.$$s = self, $$71.$$arity = 1, $$71)).$join($$($nesting, 'LF')));
24820
24891
  }, $Substitutors_restore_callouts$70.$$arity = -3);
24821
24892
 
24822
- Opal.def(self, '$extract_inner_passthrough', $Substitutors_extract_inner_passthrough$73 = function $$extract_inner_passthrough(text, pre) {
24823
- var $a, $b, self = this, $writer = nil, passthru_key = nil;
24824
- if (self.passthroughs == null) self.passthroughs = nil;
24825
-
24826
- if ($truthy(($truthy($a = ($truthy($b = text['$end_with?']("+")) ? text['$start_with?']("+", "\\+") : $b)) ? $$($nesting, 'SinglePlusInlinePassRx')['$=~'](text) : $a))) {
24827
- if ($truthy((($a = $gvars['~']) === nil ? nil : $a['$[]'](1)))) {
24828
- return "" + (pre) + "`+" + ((($a = $gvars['~']) === nil ? nil : $a['$[]'](2))) + "+`"
24829
- } else {
24830
-
24831
-
24832
- $writer = [(passthru_key = self.passthroughs.$size()), $hash2(["text", "subs"], {"text": (($a = $gvars['~']) === nil ? nil : $a['$[]'](2)), "subs": $$($nesting, 'BASIC_SUBS')})];
24833
- $send(self.passthroughs, '[]=', Opal.to_a($writer));
24834
- $writer[$rb_minus($writer["length"], 1)];;
24835
- return "" + (pre) + "`" + ($$($nesting, 'PASS_START')) + (passthru_key) + ($$($nesting, 'PASS_END')) + "`";
24836
- }
24837
- } else {
24838
- return "" + (pre) + "`" + (text) + "`"
24839
- }
24840
- }, $Substitutors_extract_inner_passthrough$73.$$arity = 2);
24841
-
24842
- Opal.def(self, '$convert_quoted_text', $Substitutors_convert_quoted_text$74 = function $$convert_quoted_text(match, type, scope) {
24893
+ Opal.def(self, '$convert_quoted_text', $Substitutors_convert_quoted_text$73 = function $$convert_quoted_text(match, type, scope) {
24843
24894
  var $a, self = this, attrs = nil, unescaped_attrs = nil, attrlist = nil, id = nil, attributes = nil;
24844
24895
 
24845
24896
 
@@ -24870,9 +24921,9 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
24870
24921
  type = "unquoted"};};
24871
24922
  return $$($nesting, 'Inline').$new(self, "quoted", match['$[]'](2), $hash2(["type", "id", "attributes"], {"type": type, "id": id, "attributes": attributes})).$convert();
24872
24923
  };
24873
- }, $Substitutors_convert_quoted_text$74.$$arity = 3);
24924
+ }, $Substitutors_convert_quoted_text$73.$$arity = 3);
24874
24925
 
24875
- Opal.def(self, '$do_replacement', $Substitutors_do_replacement$75 = function $$do_replacement(m, replacement, restore) {
24926
+ Opal.def(self, '$do_replacement', $Substitutors_do_replacement$74 = function $$do_replacement(m, replacement, restore) {
24876
24927
  var self = this, captured = nil, $case = nil;
24877
24928
 
24878
24929
  if ($truthy((captured = m['$[]'](0))['$include?']($$($nesting, 'RS')))) {
@@ -24883,13 +24934,13 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
24883
24934
  else if ("bounding"['$===']($case)) {return $rb_plus($rb_plus(m['$[]'](1), replacement), m['$[]'](2))}
24884
24935
  else {return $rb_plus(m['$[]'](1), replacement)}})()
24885
24936
  }
24886
- }, $Substitutors_do_replacement$75.$$arity = 3);
24937
+ }, $Substitutors_do_replacement$74.$$arity = 3);
24887
24938
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
24888
24939
  } else {
24889
24940
  nil
24890
24941
  };
24891
24942
 
24892
- Opal.def(self, '$parse_quoted_text_attributes', $Substitutors_parse_quoted_text_attributes$76 = function $$parse_quoted_text_attributes(str) {
24943
+ Opal.def(self, '$parse_quoted_text_attributes', $Substitutors_parse_quoted_text_attributes$75 = function $$parse_quoted_text_attributes(str) {
24893
24944
  var $a, $b, self = this, before = nil, _ = nil, after = nil, attrs = nil, $writer = nil, id = nil, roles = nil;
24894
24945
 
24895
24946
 
@@ -24941,9 +24992,9 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
24941
24992
  } else {
24942
24993
  return $hash2(["role"], {"role": str})
24943
24994
  };
24944
- }, $Substitutors_parse_quoted_text_attributes$76.$$arity = 1);
24995
+ }, $Substitutors_parse_quoted_text_attributes$75.$$arity = 1);
24945
24996
 
24946
- Opal.def(self, '$normalize_text', $Substitutors_normalize_text$77 = function $$normalize_text(text, normalize_whitespace, unescape_closing_square_brackets) {
24997
+ Opal.def(self, '$normalize_text', $Substitutors_normalize_text$76 = function $$normalize_text(text, normalize_whitespace, unescape_closing_square_brackets) {
24947
24998
  var $a, self = this;
24948
24999
 
24949
25000
 
@@ -24964,10 +25015,10 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
24964
25015
  text = text.$gsub($$($nesting, 'ESC_R_SB'), $$($nesting, 'R_SB'))};
24965
25016
  };
24966
25017
  return text;
24967
- }, $Substitutors_normalize_text$77.$$arity = -2);
25018
+ }, $Substitutors_normalize_text$76.$$arity = -2);
24968
25019
 
24969
- Opal.def(self, '$split_simple_csv', $Substitutors_split_simple_csv$78 = function $$split_simple_csv(str) {
24970
- var $$79, $$80, self = this, values = nil, accum = nil, quote_open = nil;
25020
+ Opal.def(self, '$split_simple_csv', $Substitutors_split_simple_csv$77 = function $$split_simple_csv(str) {
25021
+ var $$78, $$79, self = this, values = nil, accum = nil, quote_open = nil;
24971
25022
 
24972
25023
  if ($truthy(str['$empty?']())) {
24973
25024
  return []
@@ -24976,7 +25027,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
24976
25027
  values = [];
24977
25028
  accum = "";
24978
25029
  quote_open = nil;
24979
- $send(str, 'each_char', [], ($$79 = function(c){var self = $$79.$$s || this, $case = nil;
25030
+ $send(str, 'each_char', [], ($$78 = function(c){var self = $$78.$$s || this, $case = nil;
24980
25031
 
24981
25032
 
24982
25033
 
@@ -24992,19 +25043,19 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
24992
25043
  return (accum = "");
24993
25044
  }}
24994
25045
  else if ("\""['$===']($case)) {return (quote_open = quote_open['$!']())}
24995
- else {return (accum = $rb_plus(accum, c))}})();}, $$79.$$s = self, $$79.$$arity = 1, $$79));
25046
+ else {return (accum = $rb_plus(accum, c))}})();}, $$78.$$s = self, $$78.$$arity = 1, $$78));
24996
25047
  return values['$<<'](accum.$strip());
24997
25048
  } else {
24998
- return $send(str.$split(","), 'map', [], ($$80 = function(it){var self = $$80.$$s || this;
25049
+ return $send(str.$split(","), 'map', [], ($$79 = function(it){var self = $$79.$$s || this;
24999
25050
 
25000
25051
 
25001
25052
 
25002
25053
  if (it == null) {
25003
25054
  it = nil;
25004
25055
  };
25005
- return it.$strip();}, $$80.$$s = self, $$80.$$arity = 1, $$80))
25056
+ return it.$strip();}, $$79.$$s = self, $$79.$$arity = 1, $$79))
25006
25057
  }
25007
- }, $Substitutors_split_simple_csv$78.$$arity = 1);
25058
+ }, $Substitutors_split_simple_csv$77.$$arity = 1);
25008
25059
  })($nesting[0], $nesting)
25009
25060
  })($nesting[0], $nesting)
25010
25061
  };
@@ -25018,7 +25069,7 @@ Opal.modules["asciidoctor/version"] = function(Opal) {
25018
25069
 
25019
25070
  var $nesting = [self].concat($parent_nesting);
25020
25071
 
25021
- Opal.const_set($nesting[0], 'VERSION', "2.0.16")
25072
+ Opal.const_set($nesting[0], 'VERSION', "2.0.22")
25022
25073
  })($nesting[0], $nesting)
25023
25074
  };
25024
25075
 
@@ -25032,7 +25083,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
25032
25083
  }
25033
25084
  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;
25034
25085
 
25035
- 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?', '$===', '$join', '$empty?', '$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']);
25086
+ 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?', '$===', '$join', '$empty?', '$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?', '$pack', '$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']);
25036
25087
  return (function($base, $parent_nesting) {
25037
25088
  var self = $module($base, 'Asciidoctor');
25038
25089
 
@@ -25437,7 +25488,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
25437
25488
  image_path = self.$normalize_system_path(target_image)
25438
25489
  };
25439
25490
  if ($truthy($$$('::', 'File')['$readable?'](image_path))) {
25440
- return "" + "data:" + (mimetype) + ";base64," + ($$$('::', 'Base64').$strict_encode64($$$('::', 'File').$binread(image_path)))
25491
+ return "" + "data:" + (mimetype) + ";base64," + ([$$$('::', 'File').$binread(image_path)].$pack("m0"))
25441
25492
  } else {
25442
25493
 
25443
25494
  self.$logger().$warn("" + "image to embed not found or not readable: " + (image_path));
@@ -25468,7 +25519,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
25468
25519
  f = nil;
25469
25520
  };
25470
25521
  return [f.$content_type(), f.$read()];}, $$30.$$s = self, $$30.$$arity = 1, $$30)), $a = Opal.to_ary($b), (mimetype = ($a[0] == null ? nil : $a[0])), (bindata = ($a[1] == null ? nil : $a[1])), $b;
25471
- return "" + "data:" + (mimetype) + ";base64," + ($$$('::', 'Base64').$strict_encode64(bindata));
25522
+ return "" + "data:" + (mimetype) + ";base64," + ([bindata].$pack("m0"));
25472
25523
  } catch ($err) {
25473
25524
  if (Opal.rescue($err, [$$($nesting, 'StandardError')])) {
25474
25525
  try {
@@ -25644,15 +25695,12 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25644
25695
  function $rb_minus(lhs, rhs) {
25645
25696
  return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);
25646
25697
  }
25647
- function $rb_gt(lhs, rhs) {
25648
- return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);
25649
- }
25650
25698
  function $rb_plus(lhs, rhs) {
25651
25699
  return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs + rhs : lhs['$+'](rhs);
25652
25700
  }
25653
25701
  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;
25654
25702
 
25655
- 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', '$!', '$nil_or_empty?', '$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']);
25703
+ 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', '$!', '$nil_or_empty?', '$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']);
25656
25704
  return (function($base, $parent_nesting) {
25657
25705
  var self = $module($base, 'Asciidoctor');
25658
25706
 
@@ -25663,7 +25711,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25663
25711
 
25664
25712
  var $nesting = [self].concat($parent_nesting), $AbstractBlock_initialize$1, $AbstractBlock_block$ques$2, $AbstractBlock_inline$ques$3, $AbstractBlock_file$4, $AbstractBlock_lineno$5, $AbstractBlock_convert$6, $AbstractBlock_content$7, $AbstractBlock_context$eq$9, $AbstractBlock_$lt$lt$10, $AbstractBlock_blocks$ques$11, $AbstractBlock_sections$ques$12, $AbstractBlock_number$13, $AbstractBlock_number$eq$14, $AbstractBlock_find_by$15, $AbstractBlock_next_adjacent_block$16, $AbstractBlock_sections$18, $AbstractBlock_alt$20, $AbstractBlock_caption$21, $AbstractBlock_captioned_title$22, $AbstractBlock_list_marker_keyword$23, $AbstractBlock_title$24, $AbstractBlock_title$ques$25, $AbstractBlock_title$eq$26, $AbstractBlock_sub$ques$27, $AbstractBlock_remove_sub$28, $AbstractBlock_xreftext$29, $AbstractBlock_assign_caption$30, $AbstractBlock_assign_numeral$31, $AbstractBlock_reindex_sections$32, $AbstractBlock_find_by_internal$34;
25665
25713
 
25666
- self.$$prototype.source_location = self.$$prototype.document = self.$$prototype.attributes = self.$$prototype.blocks = self.$$prototype.next_section_index = self.$$prototype.numeral = self.$$prototype.context = self.$$prototype.parent = self.$$prototype.caption = self.$$prototype.style = self.$$prototype.converted_title = self.$$prototype.title = self.$$prototype.subs = self.$$prototype.next_section_ordinal = self.$$prototype.id = self.$$prototype.header = nil;
25714
+ self.$$prototype.source_location = self.$$prototype.document = self.$$prototype.attributes = self.$$prototype.blocks = self.$$prototype.numeral = self.$$prototype.context = self.$$prototype.parent = self.$$prototype.caption = self.$$prototype.style = self.$$prototype.converted_title = self.$$prototype.title = self.$$prototype.subs = self.$$prototype.next_section_index = self.$$prototype.next_section_ordinal = self.$$prototype.id = self.$$prototype.header = nil;
25667
25715
 
25668
25716
  self.$attr_reader("blocks");
25669
25717
  self.$attr_writer("caption");
@@ -25784,7 +25832,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
25784
25832
  Opal.def(self, '$sections?', $AbstractBlock_sections$ques$12 = function() {
25785
25833
  var self = this;
25786
25834
 
25787
- return $rb_gt(self.next_section_index, 0)
25835
+ return false
25788
25836
  }, $AbstractBlock_sections$ques$12.$$arity = 0);
25789
25837
 
25790
25838
  Opal.def(self, '$number', $AbstractBlock_number$13 = function $$number() {
@@ -26599,7 +26647,7 @@ Opal.modules["asciidoctor/block"] = function(Opal) {
26599
26647
  else if ("verbatim"['$===']($case) || "raw"['$===']($case)) {
26600
26648
  result = self.$apply_subs(self.lines, self.subs);
26601
26649
  if ($truthy($rb_lt(result.$size(), 2))) {
26602
- return result['$[]'](0)
26650
+ return ($truthy($a = result['$[]'](0)) ? $a : "")
26603
26651
  } else {
26604
26652
 
26605
26653
  while ($truthy(($truthy($b = (first = result['$[]'](0))) ? first.$rstrip()['$empty?']() : $b))) {
@@ -26613,7 +26661,7 @@ Opal.modules["asciidoctor/block"] = function(Opal) {
26613
26661
  else {
26614
26662
  if (self.content_model['$==']("empty")) {
26615
26663
  } else {
26616
- self.$logger().$warn("" + "Unknown content model '" + (self.content_model) + "' for block: " + (self))
26664
+ self.$logger().$warn("" + "unknown content model '" + (self.content_model) + "' for block: " + (self))
26617
26665
  };
26618
26666
  return nil;}})()
26619
26667
  }, $Block_content$2.$$arity = 0);
@@ -26766,7 +26814,7 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26766
26814
  }
26767
26815
  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;
26768
26816
 
26769
- 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', '$send', '$extend', '$private_class_method', '$node_name', '$+', '$receiver', '$name', '$warn', '$logger', '$respond_to?', '$content']);
26817
+ 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', '$send', '$extend', '$private_class_method', '$node_name', '$+', '$receiver', '$name', '$warn', '$logger', '$respond_to?', '$content']);
26770
26818
  return (function($base, $parent_nesting) {
26771
26819
  var self = $module($base, 'Asciidoctor');
26772
26820
 
@@ -26779,7 +26827,10 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
26779
26827
 
26780
26828
 
26781
26829
  self.$autoload("CompositeConverter", "" + (self.$__dir__()) + "/converter/composite");
26782
- self.$autoload("TemplateConverter", "" + (self.$__dir__()) + "/converter/template");
26830
+ if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
26831
+ } else {
26832
+ nil
26833
+ };
26783
26834
  self.$attr_reader("backend");
26784
26835
 
26785
26836
  Opal.def(self, '$initialize', $Converter_initialize$1 = function $$initialize(backend, opts) {
@@ -27307,7 +27358,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
27307
27358
  }
27308
27359
  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, $hash = Opal.hash, $gvars = Opal.gvars;
27309
27360
 
27310
- Opal.add_stubs(['$new', '$attr_reader', '$nil?', '$<<', '$[]', '$[]=', '$-', '$include?', '$strip', '$squeeze', '$gsub', '$empty?', '$!', '$rpartition', '$attr_accessor', '$delete', '$base_dir', '$options', '$merge', '$catalog', '$instance_variable_get', '$attributes', '$safe', '$compat_mode', '$outfilesuffix', '$sourcemap', '$path_resolver', '$converter', '$extensions', '$syntax_highlighter', '$each', '$end_with?', '$start_with?', '$slice', '$length', '$chop', '$==', '$downcase', '$===', '$extname', '$value_for_name', '$key?', '$freeze', '$attribute_undefined', '$attribute_missing', '$update', '$&', '$keys', '$name_for_value', '$expand_path', '$pwd', '$to_s', '$>=', '$+', '$abs', '$to_i', '$delete_if', '$update_doctype_attributes', '$cursor', '$parse', '$restore_attributes', '$update_backend_attributes', '$fetch', '$fill_datetime_attributes', '$activate', '$groups', '$create', '$to_proc', '$preprocessors?', '$preprocessors', '$process_method', '$tree_processors?', '$tree_processors', '$!=', '$counter', '$attribute_locked?', '$nil_or_empty?', '$nextval', '$value', '$save_to', '$register', '$tap', '$xreftext', '$source', '$source_lines', '$doctitle', '$sectname=', '$title=', '$first_section', '$title', '$reftext', '$>', '$<', '$find', '$context', '$assign_numeral', '$clear_playback_attributes', '$save_attributes', '$name', '$negate', '$rewind', '$replace', '$apply_attribute_value_subs', '$delete?', '$start', '$doctype', '$content_model', '$warn', '$logger', '$content', '$convert', '$postprocessors?', '$postprocessors', '$record', '$write', '$respond_to?', '$chomp', '$class', '$write_alternate_pages', '$map', '$split', '$resolve_docinfo_subs', '$normalize_system_path', '$read_asset', '$apply_subs', '$docinfo_processors?', '$join', '$concat', '$compact', '$docinfo_processors', '$object_id', '$inspect', '$size', '$private', '$=~', '$resolve_pass_subs', '$apply_header_subs', '$limit_bytesize', '$bytesize', '$valid_encoding?', '$byteslice', '$resolve_subs', '$utc', '$at', '$Integer', '$now', '$index', '$strftime', '$year', '$utc_offset', '$partition', '$create_converter', '$basebackend', '$filetype', '$htmlsyntax', '$derive_backend_traits', '$raise']);
27361
+ Opal.add_stubs(['$new', '$attr_reader', '$nil?', '$<<', '$[]', '$[]=', '$-', '$include?', '$strip', '$squeeze', '$gsub', '$empty?', '$!', '$rpartition', '$attr_accessor', '$delete', '$base_dir', '$options', '$merge', '$catalog', '$instance_variable_get', '$attributes', '$safe', '$compat_mode', '$outfilesuffix', '$sourcemap', '$path_resolver', '$converter', '$extensions', '$syntax_highlighter', '$each', '$end_with?', '$start_with?', '$slice', '$length', '$chop', '$==', '$downcase', '$===', '$extname', '$value_for_name', '$key?', '$freeze', '$attribute_undefined', '$attribute_missing', '$update', '$&', '$keys', '$name_for_value', '$expand_path', '$pwd', '$to_s', '$>=', '$+', '$abs', '$to_i', '$delete_if', '$update_doctype_attributes', '$cursor', '$parse', '$restore_attributes', '$update_backend_attributes', '$fetch', '$fill_datetime_attributes', '$activate', '$groups', '$create', '$to_proc', '$preprocessors?', '$preprocessors', '$process_method', '$tree_processors?', '$tree_processors', '$!=', '$counter', '$attribute_locked?', '$nil_or_empty?', '$nextval', '$value', '$save_to', '$register', '$tap', '$xreftext', '$>', '$source', '$source_lines', '$doctitle', '$sectname=', '$title=', '$first_section', '$title', '$reftext', '$<', '$find', '$context', '$assign_numeral', '$clear_playback_attributes', '$save_attributes', '$name', '$negate', '$rewind', '$replace', '$apply_attribute_value_subs', '$delete?', '$start', '$doctype', '$content_model', '$warn', '$logger', '$content', '$convert', '$postprocessors?', '$postprocessors', '$record', '$write', '$respond_to?', '$chomp', '$class', '$write_alternate_pages', '$map', '$split', '$resolve_docinfo_subs', '$normalize_system_path', '$read_asset', '$apply_subs', '$docinfo_processors?', '$join', '$concat', '$compact', '$docinfo_processors', '$object_id', '$inspect', '$size', '$private', '$=~', '$resolve_pass_subs', '$apply_header_subs', '$limit_bytesize', '$bytesize', '$valid_encoding?', '$byteslice', '$resolve_subs', '$utc', '$at', '$Integer', '$now', '$index', '$strftime', '$year', '$utc_offset', '$partition', '$create_converter', '$basebackend', '$filetype', '$htmlsyntax', '$derive_backend_traits', '$raise']);
27311
27362
  return (function($base, $parent_nesting) {
27312
27363
  var self = $module($base, 'Asciidoctor');
27313
27364
 
@@ -27316,9 +27367,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
27316
27367
  (function($base, $super, $parent_nesting) {
27317
27368
  var self = $klass($base, $super, 'Document');
27318
27369
 
27319
- var $nesting = [self].concat($parent_nesting), $Document$1, $Document_initialize$8, $Document_parse$11, $Document_parsed$ques$14, $Document_counter$15, $Document_increment_and_store_counter$16, $Document_register$17, $Document_resolve_id$18, $Document_footnotes$ques$22, $Document_footnotes$23, $Document_callouts$24, $Document_nested$ques$25, $Document_embedded$ques$26, $Document_extensions$ques$27, $Document_source$28, $Document_source_lines$29, $Document_basebackend$ques$30, $Document_title$31, $Document_title$eq$32, $Document_doctitle$33, $Document_xreftext$34, $Document_author$35, $Document_authors$36, $Document_revdate$37, $Document_notitle$38, $Document_noheader$39, $Document_nofooter$40, $Document_first_section$41, $Document_header$ques$43, $Document_$lt$lt$44, $Document_finalize_header$45, $Document_playback_attributes$46, $Document_restore_attributes$48, $Document_set_attribute$49, $Document_delete_attribute$50, $Document_attribute_locked$ques$51, $Document_set_header_attribute$52, $Document_convert$53, $Document_write$55, $Document_content$56, $Document_docinfo$57, $Document_docinfo_processors$ques$60, $Document_to_s$61, $Document_apply_attribute_value_subs$62, $Document_limit_bytesize$63, $Document_resolve_docinfo_subs$64, $Document_create_converter$65, $Document_clear_playback_attributes$66, $Document_save_attributes$67, $Document_fill_datetime_attributes$69, $Document_update_backend_attributes$70, $Document_update_doctype_attributes$71;
27370
+ var $nesting = [self].concat($parent_nesting), $Document$1, $Document_initialize$8, $Document_parse$11, $Document_parsed$ques$14, $Document_counter$15, $Document_increment_and_store_counter$16, $Document_register$17, $Document_resolve_id$18, $Document_sections$ques$22, $Document_footnotes$ques$23, $Document_footnotes$24, $Document_callouts$25, $Document_nested$ques$26, $Document_embedded$ques$27, $Document_extensions$ques$28, $Document_source$29, $Document_source_lines$30, $Document_basebackend$ques$31, $Document_title$32, $Document_title$eq$33, $Document_doctitle$34, $Document_xreftext$35, $Document_author$36, $Document_authors$37, $Document_revdate$38, $Document_notitle$39, $Document_noheader$40, $Document_nofooter$41, $Document_first_section$42, $Document_header$ques$44, $Document_$lt$lt$45, $Document_finalize_header$46, $Document_playback_attributes$47, $Document_restore_attributes$49, $Document_set_attribute$50, $Document_delete_attribute$51, $Document_attribute_locked$ques$52, $Document_set_header_attribute$53, $Document_convert$54, $Document_write$56, $Document_content$57, $Document_docinfo$58, $Document_docinfo_processors$ques$61, $Document_to_s$62, $Document_apply_attribute_value_subs$63, $Document_limit_bytesize$64, $Document_resolve_docinfo_subs$65, $Document_create_converter$66, $Document_clear_playback_attributes$67, $Document_save_attributes$68, $Document_fill_datetime_attributes$70, $Document_update_backend_attributes$71, $Document_update_doctype_attributes$72;
27320
27371
 
27321
- self.$$prototype.attributes = self.$$prototype.safe = self.$$prototype.sourcemap = self.$$prototype.reader = self.$$prototype.base_dir = self.$$prototype.parsed = self.$$prototype.parent_document = self.$$prototype.extensions = self.$$prototype.options = self.$$prototype.counters = self.$$prototype.catalog = self.$$prototype.reftexts = self.$$prototype.header = self.$$prototype.blocks = self.$$prototype.header_attributes = self.$$prototype.attributes_modified = self.$$prototype.backend = self.$$prototype.attribute_overrides = self.$$prototype.timings = self.$$prototype.converter = self.$$prototype.outfilesuffix = self.$$prototype.docinfo_processor_extensions = self.$$prototype.document = self.$$prototype.max_attribute_value_size = self.$$prototype.id = self.$$prototype.doctype = nil;
27372
+ self.$$prototype.attributes = self.$$prototype.safe = self.$$prototype.sourcemap = self.$$prototype.reader = self.$$prototype.base_dir = self.$$prototype.parsed = self.$$prototype.parent_document = self.$$prototype.extensions = self.$$prototype.options = self.$$prototype.counters = self.$$prototype.catalog = self.$$prototype.reftexts = self.$$prototype.next_section_index = self.$$prototype.header = self.$$prototype.blocks = self.$$prototype.header_attributes = self.$$prototype.attributes_modified = self.$$prototype.backend = self.$$prototype.attribute_overrides = self.$$prototype.timings = self.$$prototype.converter = self.$$prototype.outfilesuffix = self.$$prototype.docinfo_processor_extensions = self.$$prototype.document = self.$$prototype.max_attribute_value_size = self.$$prototype.id = self.$$prototype.doctype = nil;
27322
27373
 
27323
27374
  Opal.const_set($nesting[0], 'ImageReference', $send($$$('::', 'Struct'), 'new', ["target", "imagesdir"], ($Document$1 = function(){var self = $Document$1.$$s || this;
27324
27375
 
@@ -27452,6 +27503,11 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
27452
27503
  $writer = ["catalog_assets", true];
27453
27504
  $send(options, '[]=', Opal.to_a($writer));
27454
27505
  $writer[$rb_minus($writer["length"], 1)];};
27506
+ if ($truthy(parent_doc.$options()['$[]']("to_dir"))) {
27507
+
27508
+ $writer = ["to_dir", parent_doc.$options()['$[]']("to_dir")];
27509
+ $send(options, '[]=', Opal.to_a($writer));
27510
+ $writer[$rb_minus($writer["length"], 1)];};
27455
27511
  self.catalog = parent_doc.$catalog().$merge($hash2(["footnotes"], {"footnotes": []}));
27456
27512
  self.attribute_overrides = (attr_overrides = parent_doc.$instance_variable_get("@attribute_overrides").$merge(parent_doc.$attributes()));
27457
27513
  attr_overrides.$delete("compat-mode");
@@ -27952,7 +28008,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
27952
28008
  }
27953
28009
  }, $Document_resolve_id$18.$$arity = 1);
27954
28010
 
27955
- Opal.def(self, '$footnotes?', $Document_footnotes$ques$22 = function() {
28011
+ Opal.def(self, '$sections?', $Document_sections$ques$22 = function() {
28012
+ var self = this;
28013
+
28014
+ return $rb_gt(self.next_section_index, 0)
28015
+ }, $Document_sections$ques$22.$$arity = 0);
28016
+
28017
+ Opal.def(self, '$footnotes?', $Document_footnotes$ques$23 = function() {
27956
28018
  var self = this;
27957
28019
 
27958
28020
  if ($truthy(self.catalog['$[]']("footnotes")['$empty?']())) {
@@ -27960,21 +28022,21 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
27960
28022
  } else {
27961
28023
  return true
27962
28024
  }
27963
- }, $Document_footnotes$ques$22.$$arity = 0);
28025
+ }, $Document_footnotes$ques$23.$$arity = 0);
27964
28026
 
27965
- Opal.def(self, '$footnotes', $Document_footnotes$23 = function $$footnotes() {
28027
+ Opal.def(self, '$footnotes', $Document_footnotes$24 = function $$footnotes() {
27966
28028
  var self = this;
27967
28029
 
27968
28030
  return self.catalog['$[]']("footnotes")
27969
- }, $Document_footnotes$23.$$arity = 0);
28031
+ }, $Document_footnotes$24.$$arity = 0);
27970
28032
 
27971
- Opal.def(self, '$callouts', $Document_callouts$24 = function $$callouts() {
28033
+ Opal.def(self, '$callouts', $Document_callouts$25 = function $$callouts() {
27972
28034
  var self = this;
27973
28035
 
27974
28036
  return self.catalog['$[]']("callouts")
27975
- }, $Document_callouts$24.$$arity = 0);
28037
+ }, $Document_callouts$25.$$arity = 0);
27976
28038
 
27977
- Opal.def(self, '$nested?', $Document_nested$ques$25 = function() {
28039
+ Opal.def(self, '$nested?', $Document_nested$ques$26 = function() {
27978
28040
  var self = this;
27979
28041
 
27980
28042
  if ($truthy(self.parent_document)) {
@@ -27982,15 +28044,15 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
27982
28044
  } else {
27983
28045
  return false
27984
28046
  }
27985
- }, $Document_nested$ques$25.$$arity = 0);
28047
+ }, $Document_nested$ques$26.$$arity = 0);
27986
28048
 
27987
- Opal.def(self, '$embedded?', $Document_embedded$ques$26 = function() {
28049
+ Opal.def(self, '$embedded?', $Document_embedded$ques$27 = function() {
27988
28050
  var self = this;
27989
28051
 
27990
28052
  return self.attributes['$key?']("embedded")
27991
- }, $Document_embedded$ques$26.$$arity = 0);
28053
+ }, $Document_embedded$ques$27.$$arity = 0);
27992
28054
 
27993
- Opal.def(self, '$extensions?', $Document_extensions$ques$27 = function() {
28055
+ Opal.def(self, '$extensions?', $Document_extensions$ques$28 = function() {
27994
28056
  var self = this;
27995
28057
 
27996
28058
  if ($truthy(self.extensions)) {
@@ -27998,9 +28060,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
27998
28060
  } else {
27999
28061
  return false
28000
28062
  }
28001
- }, $Document_extensions$ques$27.$$arity = 0);
28063
+ }, $Document_extensions$ques$28.$$arity = 0);
28002
28064
 
28003
- Opal.def(self, '$source', $Document_source$28 = function $$source() {
28065
+ Opal.def(self, '$source', $Document_source$29 = function $$source() {
28004
28066
  var self = this;
28005
28067
 
28006
28068
  if ($truthy(self.reader)) {
@@ -28008,9 +28070,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28008
28070
  } else {
28009
28071
  return nil
28010
28072
  }
28011
- }, $Document_source$28.$$arity = 0);
28073
+ }, $Document_source$29.$$arity = 0);
28012
28074
 
28013
- Opal.def(self, '$source_lines', $Document_source_lines$29 = function $$source_lines() {
28075
+ Opal.def(self, '$source_lines', $Document_source_lines$30 = function $$source_lines() {
28014
28076
  var self = this;
28015
28077
 
28016
28078
  if ($truthy(self.reader)) {
@@ -28018,21 +28080,21 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28018
28080
  } else {
28019
28081
  return nil
28020
28082
  }
28021
- }, $Document_source_lines$29.$$arity = 0);
28083
+ }, $Document_source_lines$30.$$arity = 0);
28022
28084
 
28023
- Opal.def(self, '$basebackend?', $Document_basebackend$ques$30 = function(base) {
28085
+ Opal.def(self, '$basebackend?', $Document_basebackend$ques$31 = function(base) {
28024
28086
  var self = this;
28025
28087
 
28026
28088
  return self.attributes['$[]']("basebackend")['$=='](base)
28027
- }, $Document_basebackend$ques$30.$$arity = 1);
28089
+ }, $Document_basebackend$ques$31.$$arity = 1);
28028
28090
 
28029
- Opal.def(self, '$title', $Document_title$31 = function $$title() {
28091
+ Opal.def(self, '$title', $Document_title$32 = function $$title() {
28030
28092
  var self = this;
28031
28093
 
28032
28094
  return self.$doctitle()
28033
- }, $Document_title$31.$$arity = 0);
28095
+ }, $Document_title$32.$$arity = 0);
28034
28096
 
28035
- Opal.def(self, '$title=', $Document_title$eq$32 = function(title) {
28097
+ Opal.def(self, '$title=', $Document_title$eq$33 = function(title) {
28036
28098
  var self = this, sect = nil, $writer = nil;
28037
28099
 
28038
28100
 
@@ -28047,9 +28109,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28047
28109
  $writer = [title];
28048
28110
  $send(sect, 'title=', Opal.to_a($writer));
28049
28111
  return $writer[$rb_minus($writer["length"], 1)];;
28050
- }, $Document_title$eq$32.$$arity = 1);
28112
+ }, $Document_title$eq$33.$$arity = 1);
28051
28113
 
28052
- Opal.def(self, '$doctitle', $Document_doctitle$33 = function $$doctitle(opts) {
28114
+ Opal.def(self, '$doctitle', $Document_doctitle$34 = function $$doctitle(opts) {
28053
28115
  var $a, self = this, val = nil, sect = nil, separator = nil;
28054
28116
 
28055
28117
 
@@ -28073,10 +28135,10 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28073
28135
  } else {
28074
28136
  return val
28075
28137
  };
28076
- }, $Document_doctitle$33.$$arity = -1);
28138
+ }, $Document_doctitle$34.$$arity = -1);
28077
28139
  Opal.alias(self, "name", "doctitle");
28078
28140
 
28079
- Opal.def(self, '$xreftext', $Document_xreftext$34 = function $$xreftext(xrefstyle) {
28141
+ Opal.def(self, '$xreftext', $Document_xreftext$35 = function $$xreftext(xrefstyle) {
28080
28142
  var $a, self = this, val = nil;
28081
28143
 
28082
28144
 
@@ -28089,15 +28151,15 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28089
28151
  } else {
28090
28152
  return self.$title()
28091
28153
  };
28092
- }, $Document_xreftext$34.$$arity = -1);
28154
+ }, $Document_xreftext$35.$$arity = -1);
28093
28155
 
28094
- Opal.def(self, '$author', $Document_author$35 = function $$author() {
28156
+ Opal.def(self, '$author', $Document_author$36 = function $$author() {
28095
28157
  var self = this;
28096
28158
 
28097
28159
  return self.attributes['$[]']("author")
28098
- }, $Document_author$35.$$arity = 0);
28160
+ }, $Document_author$36.$$arity = 0);
28099
28161
 
28100
- Opal.def(self, '$authors', $Document_authors$36 = function $$authors() {
28162
+ Opal.def(self, '$authors', $Document_authors$37 = function $$authors() {
28101
28163
  var $a, self = this, attrs = nil, authors = nil, num_authors = nil, idx = nil;
28102
28164
 
28103
28165
  if ($truthy((attrs = self.attributes)['$key?']("author"))) {
@@ -28115,46 +28177,46 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28115
28177
  } else {
28116
28178
  return []
28117
28179
  }
28118
- }, $Document_authors$36.$$arity = 0);
28180
+ }, $Document_authors$37.$$arity = 0);
28119
28181
 
28120
- Opal.def(self, '$revdate', $Document_revdate$37 = function $$revdate() {
28182
+ Opal.def(self, '$revdate', $Document_revdate$38 = function $$revdate() {
28121
28183
  var self = this;
28122
28184
 
28123
28185
  return self.attributes['$[]']("revdate")
28124
- }, $Document_revdate$37.$$arity = 0);
28186
+ }, $Document_revdate$38.$$arity = 0);
28125
28187
 
28126
- Opal.def(self, '$notitle', $Document_notitle$38 = function $$notitle() {
28188
+ Opal.def(self, '$notitle', $Document_notitle$39 = function $$notitle() {
28127
28189
  var self = this;
28128
28190
 
28129
28191
  return self.attributes['$key?']("notitle")
28130
- }, $Document_notitle$38.$$arity = 0);
28192
+ }, $Document_notitle$39.$$arity = 0);
28131
28193
 
28132
- Opal.def(self, '$noheader', $Document_noheader$39 = function $$noheader() {
28194
+ Opal.def(self, '$noheader', $Document_noheader$40 = function $$noheader() {
28133
28195
  var self = this;
28134
28196
 
28135
28197
  return self.attributes['$key?']("noheader")
28136
- }, $Document_noheader$39.$$arity = 0);
28198
+ }, $Document_noheader$40.$$arity = 0);
28137
28199
 
28138
- Opal.def(self, '$nofooter', $Document_nofooter$40 = function $$nofooter() {
28200
+ Opal.def(self, '$nofooter', $Document_nofooter$41 = function $$nofooter() {
28139
28201
  var self = this;
28140
28202
 
28141
28203
  return self.attributes['$key?']("nofooter")
28142
- }, $Document_nofooter$40.$$arity = 0);
28204
+ }, $Document_nofooter$41.$$arity = 0);
28143
28205
 
28144
- Opal.def(self, '$first_section', $Document_first_section$41 = function $$first_section() {
28145
- var $a, $$42, self = this;
28206
+ Opal.def(self, '$first_section', $Document_first_section$42 = function $$first_section() {
28207
+ var $a, $$43, self = this;
28146
28208
 
28147
- return ($truthy($a = self.header) ? $a : $send(self.blocks, 'find', [], ($$42 = function(e){var self = $$42.$$s || this;
28209
+ return ($truthy($a = self.header) ? $a : $send(self.blocks, 'find', [], ($$43 = function(e){var self = $$43.$$s || this;
28148
28210
 
28149
28211
 
28150
28212
 
28151
28213
  if (e == null) {
28152
28214
  e = nil;
28153
28215
  };
28154
- return e.$context()['$==']("section");}, $$42.$$s = self, $$42.$$arity = 1, $$42)))
28155
- }, $Document_first_section$41.$$arity = 0);
28216
+ return e.$context()['$==']("section");}, $$43.$$s = self, $$43.$$arity = 1, $$43)))
28217
+ }, $Document_first_section$42.$$arity = 0);
28156
28218
 
28157
- Opal.def(self, '$header?', $Document_header$ques$43 = function() {
28219
+ Opal.def(self, '$header?', $Document_header$ques$44 = function() {
28158
28220
  var self = this;
28159
28221
 
28160
28222
  if ($truthy(self.header)) {
@@ -28162,13 +28224,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28162
28224
  } else {
28163
28225
  return false
28164
28226
  }
28165
- }, $Document_header$ques$43.$$arity = 0);
28227
+ }, $Document_header$ques$44.$$arity = 0);
28166
28228
  Opal.alias(self, "has_header?", "header?");
28167
28229
 
28168
- Opal.def(self, '$<<', $Document_$lt$lt$44 = function(block) {
28169
- var $iter = $Document_$lt$lt$44.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
28230
+ Opal.def(self, '$<<', $Document_$lt$lt$45 = function(block) {
28231
+ var $iter = $Document_$lt$lt$45.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
28170
28232
 
28171
- if ($iter) $Document_$lt$lt$44.$$p = null;
28233
+ if ($iter) $Document_$lt$lt$45.$$p = null;
28172
28234
  // Prepare super implicit arguments
28173
28235
  for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
28174
28236
  $zuper[$zuper_i] = arguments[$zuper_i];
@@ -28176,10 +28238,10 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28176
28238
 
28177
28239
  if (block.$context()['$==']("section")) {
28178
28240
  self.$assign_numeral(block)};
28179
- return $send(self, Opal.find_super_dispatcher(self, '<<', $Document_$lt$lt$44, false), $zuper, $iter);
28180
- }, $Document_$lt$lt$44.$$arity = 1);
28241
+ return $send(self, Opal.find_super_dispatcher(self, '<<', $Document_$lt$lt$45, false), $zuper, $iter);
28242
+ }, $Document_$lt$lt$45.$$arity = 1);
28181
28243
 
28182
- Opal.def(self, '$finalize_header', $Document_finalize_header$45 = function $$finalize_header(unrooted_attributes, header_valid) {
28244
+ Opal.def(self, '$finalize_header', $Document_finalize_header$46 = function $$finalize_header(unrooted_attributes, header_valid) {
28183
28245
  var self = this, $writer = nil;
28184
28246
 
28185
28247
 
@@ -28197,13 +28259,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28197
28259
  $writer[$rb_minus($writer["length"], 1)];
28198
28260
  };
28199
28261
  return unrooted_attributes;
28200
- }, $Document_finalize_header$45.$$arity = -2);
28262
+ }, $Document_finalize_header$46.$$arity = -2);
28201
28263
 
28202
- Opal.def(self, '$playback_attributes', $Document_playback_attributes$46 = function $$playback_attributes(block_attributes) {
28203
- var $$47, self = this;
28264
+ Opal.def(self, '$playback_attributes', $Document_playback_attributes$47 = function $$playback_attributes(block_attributes) {
28265
+ var $$48, self = this;
28204
28266
 
28205
28267
  if ($truthy(block_attributes['$key?']("attribute_entries"))) {
28206
- return $send(block_attributes['$[]']("attribute_entries"), 'each', [], ($$47 = function(entry){var self = $$47.$$s || this, name = nil, $writer = nil;
28268
+ return $send(block_attributes['$[]']("attribute_entries"), 'each', [], ($$48 = function(entry){var self = $$48.$$s || this, name = nil, $writer = nil;
28207
28269
  if (self.attributes == null) self.attributes = nil;
28208
28270
 
28209
28271
 
@@ -28231,13 +28293,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28231
28293
  } else {
28232
28294
  return nil
28233
28295
  };
28234
- };}, $$47.$$s = self, $$47.$$arity = 1, $$47))
28296
+ };}, $$48.$$s = self, $$48.$$arity = 1, $$48))
28235
28297
  } else {
28236
28298
  return nil
28237
28299
  }
28238
- }, $Document_playback_attributes$46.$$arity = 1);
28300
+ }, $Document_playback_attributes$47.$$arity = 1);
28239
28301
 
28240
- Opal.def(self, '$restore_attributes', $Document_restore_attributes$48 = function $$restore_attributes() {
28302
+ Opal.def(self, '$restore_attributes', $Document_restore_attributes$49 = function $$restore_attributes() {
28241
28303
  var self = this;
28242
28304
 
28243
28305
 
@@ -28246,9 +28308,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28246
28308
  self.catalog['$[]']("callouts").$rewind()
28247
28309
  };
28248
28310
  return self.attributes.$replace(self.header_attributes);
28249
- }, $Document_restore_attributes$48.$$arity = 0);
28311
+ }, $Document_restore_attributes$49.$$arity = 0);
28250
28312
 
28251
- Opal.def(self, '$set_attribute', $Document_set_attribute$49 = function $$set_attribute(name, value) {
28313
+ Opal.def(self, '$set_attribute', $Document_set_attribute$50 = function $$set_attribute(name, value) {
28252
28314
  var $a, self = this, $writer = nil, $case = nil;
28253
28315
 
28254
28316
 
@@ -28282,9 +28344,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28282
28344
  };
28283
28345
  return value;
28284
28346
  };
28285
- }, $Document_set_attribute$49.$$arity = -2);
28347
+ }, $Document_set_attribute$50.$$arity = -2);
28286
28348
 
28287
- Opal.def(self, '$delete_attribute', $Document_delete_attribute$50 = function $$delete_attribute(name) {
28349
+ Opal.def(self, '$delete_attribute', $Document_delete_attribute$51 = function $$delete_attribute(name) {
28288
28350
  var self = this;
28289
28351
 
28290
28352
  if ($truthy(self['$attribute_locked?'](name))) {
@@ -28295,15 +28357,15 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28295
28357
  self.attributes_modified['$<<'](name);
28296
28358
  return true;
28297
28359
  }
28298
- }, $Document_delete_attribute$50.$$arity = 1);
28360
+ }, $Document_delete_attribute$51.$$arity = 1);
28299
28361
 
28300
- Opal.def(self, '$attribute_locked?', $Document_attribute_locked$ques$51 = function(name) {
28362
+ Opal.def(self, '$attribute_locked?', $Document_attribute_locked$ques$52 = function(name) {
28301
28363
  var self = this;
28302
28364
 
28303
28365
  return self.attribute_overrides['$key?'](name)
28304
- }, $Document_attribute_locked$ques$51.$$arity = 1);
28366
+ }, $Document_attribute_locked$ques$52.$$arity = 1);
28305
28367
 
28306
- Opal.def(self, '$set_header_attribute', $Document_set_header_attribute$52 = function $$set_header_attribute(name, value, overwrite) {
28368
+ Opal.def(self, '$set_header_attribute', $Document_set_header_attribute$53 = function $$set_header_attribute(name, value, overwrite) {
28307
28369
  var $a, self = this, attrs = nil, $writer = nil;
28308
28370
 
28309
28371
 
@@ -28326,10 +28388,10 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28326
28388
  $writer[$rb_minus($writer["length"], 1)];;
28327
28389
  return true;
28328
28390
  };
28329
- }, $Document_set_header_attribute$52.$$arity = -2);
28391
+ }, $Document_set_header_attribute$53.$$arity = -2);
28330
28392
 
28331
- Opal.def(self, '$convert', $Document_convert$53 = function $$convert(opts) {
28332
- var $a, $$54, self = this, $writer = nil, block = nil, output = nil, transform = nil, exts = nil;
28393
+ Opal.def(self, '$convert', $Document_convert$54 = function $$convert(opts) {
28394
+ var $a, $$55, self = this, $writer = nil, block = nil, output = nil, transform = nil, exts = nil;
28333
28395
 
28334
28396
 
28335
28397
 
@@ -28386,21 +28448,21 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28386
28448
  };
28387
28449
  if ($truthy(self.parent_document)) {
28388
28450
  } else if ($truthy(($truthy($a = (exts = self.extensions)) ? exts['$postprocessors?']() : $a))) {
28389
- $send(exts.$postprocessors(), 'each', [], ($$54 = function(ext){var self = $$54.$$s || this;
28451
+ $send(exts.$postprocessors(), 'each', [], ($$55 = function(ext){var self = $$55.$$s || this;
28390
28452
 
28391
28453
 
28392
28454
 
28393
28455
  if (ext == null) {
28394
28456
  ext = nil;
28395
28457
  };
28396
- return (output = ext.$process_method()['$[]'](self, output));}, $$54.$$s = self, $$54.$$arity = 1, $$54))};
28458
+ return (output = ext.$process_method()['$[]'](self, output));}, $$55.$$s = self, $$55.$$arity = 1, $$55))};
28397
28459
  if ($truthy(self.timings)) {
28398
28460
  self.timings.$record("convert")};
28399
28461
  return output;
28400
- }, $Document_convert$53.$$arity = -1);
28462
+ }, $Document_convert$54.$$arity = -1);
28401
28463
  Opal.alias(self, "render", "convert");
28402
28464
 
28403
- Opal.def(self, '$write', $Document_write$55 = function $$write(output, target) {
28465
+ Opal.def(self, '$write', $Document_write$56 = function $$write(output, target) {
28404
28466
  var $a, $b, self = this;
28405
28467
 
28406
28468
 
@@ -28426,23 +28488,23 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28426
28488
  if ($truthy(self.timings)) {
28427
28489
  self.timings.$record("write")};
28428
28490
  return nil;
28429
- }, $Document_write$55.$$arity = 2);
28491
+ }, $Document_write$56.$$arity = 2);
28430
28492
 
28431
- Opal.def(self, '$content', $Document_content$56 = function $$content() {
28432
- var $iter = $Document_content$56.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
28493
+ Opal.def(self, '$content', $Document_content$57 = function $$content() {
28494
+ var $iter = $Document_content$57.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
28433
28495
 
28434
- if ($iter) $Document_content$56.$$p = null;
28496
+ if ($iter) $Document_content$57.$$p = null;
28435
28497
  // Prepare super implicit arguments
28436
28498
  for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
28437
28499
  $zuper[$zuper_i] = arguments[$zuper_i];
28438
28500
  }
28439
28501
 
28440
28502
  self.attributes.$delete("title");
28441
- return $send(self, Opal.find_super_dispatcher(self, 'content', $Document_content$56, false), $zuper, $iter);
28442
- }, $Document_content$56.$$arity = 0);
28503
+ return $send(self, Opal.find_super_dispatcher(self, 'content', $Document_content$57, false), $zuper, $iter);
28504
+ }, $Document_content$57.$$arity = 0);
28443
28505
 
28444
- Opal.def(self, '$docinfo', $Document_docinfo$57 = function $$docinfo(location, suffix) {
28445
- var $a, $$58, $$59, self = this, qualifier = nil, docinfo = nil, content = nil, docinfo_file = nil, docinfo_dir = nil, docinfo_subs = nil, docinfo_path = nil, shared_docinfo = nil, private_docinfo = nil;
28506
+ Opal.def(self, '$docinfo', $Document_docinfo$58 = function $$docinfo(location, suffix) {
28507
+ var $a, $$59, $$60, self = this, qualifier = nil, docinfo = nil, content = nil, docinfo_file = nil, docinfo_dir = nil, docinfo_subs = nil, docinfo_path = nil, shared_docinfo = nil, private_docinfo = nil;
28446
28508
 
28447
28509
 
28448
28510
 
@@ -28473,14 +28535,14 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28473
28535
  }; return nil; })()
28474
28536
  }
28475
28537
  } else {
28476
- docinfo = $send(docinfo.$split(","), 'map', [], ($$58 = function(it){var self = $$58.$$s || this;
28538
+ docinfo = $send(docinfo.$split(","), 'map', [], ($$59 = function(it){var self = $$59.$$s || this;
28477
28539
 
28478
28540
 
28479
28541
 
28480
28542
  if (it == null) {
28481
28543
  it = nil;
28482
28544
  };
28483
- return it.$strip();}, $$58.$$s = self, $$58.$$arity = 1, $$58))
28545
+ return it.$strip();}, $$59.$$s = self, $$59.$$arity = 1, $$59))
28484
28546
  };
28485
28547
  if ($truthy(docinfo)) {
28486
28548
 
@@ -28501,22 +28563,22 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28501
28563
  content['$<<'](self.$apply_subs(private_docinfo, docinfo_subs))};
28502
28564
  };};};
28503
28565
  if ($truthy(($truthy($a = self.extensions) ? self['$docinfo_processors?'](location) : $a))) {
28504
- return ($truthy($a = content) ? $a : []).$concat($send(self.docinfo_processor_extensions['$[]'](location), 'map', [], ($$59 = function(ext){var self = $$59.$$s || this;
28566
+ return ($truthy($a = content) ? $a : []).$concat($send(self.docinfo_processor_extensions['$[]'](location), 'map', [], ($$60 = function(ext){var self = $$60.$$s || this;
28505
28567
 
28506
28568
 
28507
28569
 
28508
28570
  if (ext == null) {
28509
28571
  ext = nil;
28510
28572
  };
28511
- return ext.$process_method()['$[]'](self);}, $$59.$$s = self, $$59.$$arity = 1, $$59)).$compact()).$join($$($nesting, 'LF'))
28573
+ return ext.$process_method()['$[]'](self);}, $$60.$$s = self, $$60.$$arity = 1, $$60)).$compact()).$join($$($nesting, 'LF'))
28512
28574
  } else if ($truthy(content)) {
28513
28575
  return content.$join($$($nesting, 'LF'))
28514
28576
  } else {
28515
28577
  return ""
28516
28578
  };
28517
- }, $Document_docinfo$57.$$arity = -1);
28579
+ }, $Document_docinfo$58.$$arity = -1);
28518
28580
 
28519
- Opal.def(self, '$docinfo_processors?', $Document_docinfo_processors$ques$60 = function(location) {
28581
+ Opal.def(self, '$docinfo_processors?', $Document_docinfo_processors$ques$61 = function(location) {
28520
28582
  var $a, self = this, $writer = nil;
28521
28583
 
28522
28584
 
@@ -28534,16 +28596,16 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28534
28596
  $send(self.docinfo_processor_extensions, '[]=', Opal.to_a($writer));
28535
28597
  return $writer[$rb_minus($writer["length"], 1)];
28536
28598
  };
28537
- }, $Document_docinfo_processors$ques$60.$$arity = -1);
28599
+ }, $Document_docinfo_processors$ques$61.$$arity = -1);
28538
28600
 
28539
- Opal.def(self, '$to_s', $Document_to_s$61 = function $$to_s() {
28601
+ Opal.def(self, '$to_s', $Document_to_s$62 = function $$to_s() {
28540
28602
  var $a, self = this;
28541
28603
 
28542
28604
  return "" + "#<" + (self.$class()) + "@" + (self.$object_id()) + " {doctype: " + (self.$doctype().$inspect()) + ", doctitle: " + (($truthy($a = self.header) ? self.header.$title() : $a).$inspect()) + ", blocks: " + (self.blocks.$size()) + "}>"
28543
- }, $Document_to_s$61.$$arity = 0);
28605
+ }, $Document_to_s$62.$$arity = 0);
28544
28606
  self.$private();
28545
28607
 
28546
- Opal.def(self, '$apply_attribute_value_subs', $Document_apply_attribute_value_subs$62 = function $$apply_attribute_value_subs(value) {
28608
+ Opal.def(self, '$apply_attribute_value_subs', $Document_apply_attribute_value_subs$63 = function $$apply_attribute_value_subs(value) {
28547
28609
  var $a, self = this;
28548
28610
 
28549
28611
 
@@ -28561,9 +28623,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28561
28623
  } else {
28562
28624
  return value
28563
28625
  };
28564
- }, $Document_apply_attribute_value_subs$62.$$arity = 1);
28626
+ }, $Document_apply_attribute_value_subs$63.$$arity = 1);
28565
28627
 
28566
- Opal.def(self, '$limit_bytesize', $Document_limit_bytesize$63 = function $$limit_bytesize(str, max) {
28628
+ Opal.def(self, '$limit_bytesize', $Document_limit_bytesize$64 = function $$limit_bytesize(str, max) {
28567
28629
  var $a, self = this;
28568
28630
 
28569
28631
 
@@ -28572,9 +28634,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28572
28634
  max = $rb_minus(max, 1)
28573
28635
  }};
28574
28636
  return str;
28575
- }, $Document_limit_bytesize$63.$$arity = 2);
28637
+ }, $Document_limit_bytesize$64.$$arity = 2);
28576
28638
 
28577
- Opal.def(self, '$resolve_docinfo_subs', $Document_resolve_docinfo_subs$64 = function $$resolve_docinfo_subs() {
28639
+ Opal.def(self, '$resolve_docinfo_subs', $Document_resolve_docinfo_subs$65 = function $$resolve_docinfo_subs() {
28578
28640
  var self = this;
28579
28641
 
28580
28642
  if ($truthy(self.attributes['$key?']("docinfosubs"))) {
@@ -28583,9 +28645,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28583
28645
  } else {
28584
28646
  return ["attributes"]
28585
28647
  }
28586
- }, $Document_resolve_docinfo_subs$64.$$arity = 0);
28648
+ }, $Document_resolve_docinfo_subs$65.$$arity = 0);
28587
28649
 
28588
- Opal.def(self, '$create_converter', $Document_create_converter$65 = function $$create_converter(backend, delegate_backend) {
28650
+ Opal.def(self, '$create_converter', $Document_create_converter$66 = function $$create_converter(backend, delegate_backend) {
28589
28651
  var $a, self = this, converter_opts = nil, template_dirs = nil, opts = nil, $writer = nil, converter = nil;
28590
28652
 
28591
28653
 
@@ -28626,16 +28688,16 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28626
28688
  } else {
28627
28689
  return opts.$fetch("converter_factory", $$($nesting, 'Converter')).$create(backend, converter_opts)
28628
28690
  };
28629
- }, $Document_create_converter$65.$$arity = 2);
28691
+ }, $Document_create_converter$66.$$arity = 2);
28630
28692
 
28631
- Opal.def(self, '$clear_playback_attributes', $Document_clear_playback_attributes$66 = function $$clear_playback_attributes(attributes) {
28693
+ Opal.def(self, '$clear_playback_attributes', $Document_clear_playback_attributes$67 = function $$clear_playback_attributes(attributes) {
28632
28694
  var self = this;
28633
28695
 
28634
28696
  return attributes.$delete("attribute_entries")
28635
- }, $Document_clear_playback_attributes$66.$$arity = 1);
28697
+ }, $Document_clear_playback_attributes$67.$$arity = 1);
28636
28698
 
28637
- Opal.def(self, '$save_attributes', $Document_save_attributes$67 = function $$save_attributes() {
28638
- var $a, $$68, self = this, attrs = nil, doctitle_val = nil, $writer = nil, toc_val = nil, toc_position_val = nil, toc_placement_val = nil, default_toc_position = nil, default_toc_class = nil, position = nil, $case = nil, icons_val = nil, basebackend = nil, syntax_hl_name = nil, syntax_hl_factory = nil, syntax_hls = nil;
28699
+ Opal.def(self, '$save_attributes', $Document_save_attributes$68 = function $$save_attributes() {
28700
+ var $a, $$69, self = this, attrs = nil, doctitle_val = nil, $writer = nil, toc_val = nil, toc_position_val = nil, toc_placement_val = nil, default_toc_position = nil, default_toc_class = nil, position = nil, $case = nil, icons_val = nil, basebackend = nil, syntax_hl_name = nil, syntax_hl_factory = nil, syntax_hls = nil;
28639
28701
 
28640
28702
 
28641
28703
  if ($truthy(($truthy($a = (attrs = self.attributes)['$key?']("doctitle")) ? $a : (doctitle_val = self.$doctitle())['$!']()))) {
@@ -28762,7 +28824,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28762
28824
  $writer[$rb_minus($writer["length"], 1)];
28763
28825
  };};
28764
28826
  self.outfilesuffix = attrs['$[]']("outfilesuffix");
28765
- $send($$($nesting, 'FLEXIBLE_ATTRIBUTES'), 'each', [], ($$68 = function(name){var self = $$68.$$s || this, $b;
28827
+ $send($$($nesting, 'FLEXIBLE_ATTRIBUTES'), 'each', [], ($$69 = function(name){var self = $$69.$$s || this, $b;
28766
28828
  if (self.attribute_overrides == null) self.attribute_overrides = nil;
28767
28829
 
28768
28830
 
@@ -28774,12 +28836,12 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28774
28836
  return self.attribute_overrides.$delete(name)
28775
28837
  } else {
28776
28838
  return nil
28777
- };}, $$68.$$s = self, $$68.$$arity = 1, $$68));
28839
+ };}, $$69.$$s = self, $$69.$$arity = 1, $$69));
28778
28840
  };
28779
28841
  return (self.header_attributes = attrs.$merge());
28780
- }, $Document_save_attributes$67.$$arity = 0);
28842
+ }, $Document_save_attributes$68.$$arity = 0);
28781
28843
 
28782
- Opal.def(self, '$fill_datetime_attributes', $Document_fill_datetime_attributes$69 = function $$fill_datetime_attributes(attrs, input_mtime) {
28844
+ Opal.def(self, '$fill_datetime_attributes', $Document_fill_datetime_attributes$70 = function $$fill_datetime_attributes(attrs, input_mtime) {
28783
28845
  var $a, $b, self = this, now = nil, source_date_epoch = nil, localdate = nil, $writer = nil, localtime = nil, docdate = nil, doctime = nil;
28784
28846
 
28785
28847
 
@@ -28827,9 +28889,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28827
28889
  }; return nil; })()))]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
28828
28890
  ($truthy($a = attrs['$[]']("docdatetime")) ? $a : (($writer = ["docdatetime", "" + (docdate) + " " + (doctime)]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
28829
28891
  return nil;
28830
- }, $Document_fill_datetime_attributes$69.$$arity = 2);
28892
+ }, $Document_fill_datetime_attributes$70.$$arity = 2);
28831
28893
 
28832
- Opal.def(self, '$update_backend_attributes', $Document_update_backend_attributes$70 = function $$update_backend_attributes(new_backend, init) {
28894
+ Opal.def(self, '$update_backend_attributes', $Document_update_backend_attributes$71 = function $$update_backend_attributes(new_backend, init) {
28833
28895
  var $a, $b, self = this, current_backend = nil, current_basebackend = nil, attrs = nil, current_doctype = nil, actual_backend = nil, _ = nil, $writer = nil, delegate_backend = nil, converter = nil, new_basebackend = nil, new_filetype = nil, htmlsyntax = nil, backend_traits = nil, current_filetype = nil, page_width = nil;
28834
28896
 
28835
28897
 
@@ -28957,8 +29019,8 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
28957
29019
  } else {
28958
29020
  return nil
28959
29021
  };
28960
- }, $Document_update_backend_attributes$70.$$arity = -2);
28961
- return (Opal.def(self, '$update_doctype_attributes', $Document_update_doctype_attributes$71 = function $$update_doctype_attributes(new_doctype) {
29022
+ }, $Document_update_backend_attributes$71.$$arity = -2);
29023
+ return (Opal.def(self, '$update_doctype_attributes', $Document_update_doctype_attributes$72 = function $$update_doctype_attributes(new_doctype) {
28962
29024
  var $a, self = this, attrs = nil, current_backend = nil, current_basebackend = nil, current_doctype = nil, $writer = nil;
28963
29025
 
28964
29026
  if ($truthy(($truthy($a = new_doctype) ? new_doctype['$!='](self.doctype) : $a))) {
@@ -29002,7 +29064,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
29002
29064
  } else {
29003
29065
  return nil
29004
29066
  }
29005
- }, $Document_update_doctype_attributes$71.$$arity = 1), nil) && 'update_doctype_attributes';
29067
+ }, $Document_update_doctype_attributes$72.$$arity = 1), nil) && 'update_doctype_attributes';
29006
29068
  })($nesting[0], $$($nesting, 'AbstractBlock'), $nesting)
29007
29069
  })($nesting[0], $nesting)
29008
29070
  };
@@ -29265,7 +29327,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29265
29327
  }
29266
29328
  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;
29267
29329
 
29268
- 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', '$skip_blank_lines', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$finalize_header', '$nil_or_empty?', '$title=', '$-', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$include?', '$sub_specialchars', '$[]=', '$sub_attributes', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$==', '$!', '$register', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$save', '$update', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$split', '$title', '$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', '$source_location', '$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', '$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', '$apply_header_subs', '$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', '$has_header_option=', '$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', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
29330
+ Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$extend', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$skip_blank_lines', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$[]=', '$-', '$finalize_header', '$nil_or_empty?', '$title=', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$include?', '$sub_specialchars', '$sub_attributes', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$==', '$!', '$register', '$process_authors', '$update', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$save', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$split', '$title', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$style=', '$parent=', '$content_model', '$content_model=', '$lines', '$subs', '$size', '$context=', '$shift', '$unwrap_standalone_preamble', '$source_location', '$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?', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$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?', '$apply_header_subs', '$rstrip', '$each_with_index', '$compact', '$to_h', '$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', '$has_header_option=', '$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', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
29269
29331
  return (function($base, $parent_nesting) {
29270
29332
  var self = $module($base, 'Asciidoctor');
29271
29333
 
@@ -29307,20 +29369,23 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29307
29369
  return ($truthy($a = ($truthy($b = self['$is_delimited_block?'](l)) ? $b : ($truthy($c = l['$start_with?']("[")) ? $$($nesting, 'BlockAttributeLineRx')['$match?'](l) : $c))) ? $a : $$($nesting, 'AnyListRx')['$match?'](l));}, $Parser$3.$$s = self, $Parser$3.$$arity = 1, $Parser$3)));
29308
29370
  Opal.const_set($nesting[0], 'NoOp', nil);
29309
29371
  Opal.const_set($nesting[0], 'AuthorKeys', ["author", "authorinitials", "firstname", "middlename", "lastname", "email"]);
29372
+ Opal.const_set($nesting[0], 'ListContinuationMarker', $$$('::', 'Module').$new());
29373
+ Opal.const_set($nesting[0], 'ListContinuationPlaceholder', $$$('::', 'String').$new().$extend($$($nesting, 'ListContinuationMarker')));
29374
+ Opal.const_set($nesting[0], 'ListContinuationString', $$$('::', 'String').$new($$($nesting, 'LIST_CONTINUATION')).$extend($$($nesting, 'ListContinuationMarker')));
29310
29375
  Opal.const_set($nesting[0], 'TableCellHorzAlignments', $hash2(["<", ">", "^"], {"<": "left", ">": "right", "^": "center"}));
29311
29376
  Opal.const_set($nesting[0], 'TableCellVertAlignments', $hash2(["<", ">", "^"], {"<": "top", ">": "bottom", "^": "middle"}));
29312
29377
  Opal.const_set($nesting[0], 'TableCellStyles', $hash2(["d", "s", "e", "m", "h", "l", "a"], {"d": "none", "s": "strong", "e": "emphasis", "m": "monospaced", "h": "header", "l": "literal", "a": "asciidoc"}));
29313
29378
  self.$private_class_method("new");
29314
29379
  Opal.defs(self, '$parse', $Parser_parse$4 = function $$parse(reader, document, options) {
29315
- var $a, $b, $c, self = this, block_attributes = nil, new_section = nil;
29380
+ var $a, $b, $c, self = this, block_attributes = nil, header_only = nil, new_section = nil;
29316
29381
 
29317
29382
 
29318
29383
 
29319
29384
  if (options == null) {
29320
29385
  options = $hash2([], {});
29321
29386
  };
29322
- block_attributes = self.$parse_document_header(reader, document);
29323
- if ($truthy(options['$[]']("header_only"))) {
29387
+ block_attributes = self.$parse_document_header(reader, document, (header_only = options['$[]']("header_only")));
29388
+ if ($truthy(header_only)) {
29324
29389
  } else {
29325
29390
  while ($truthy(reader['$has_more_lines?']())) {
29326
29391
 
@@ -29333,10 +29398,14 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29333
29398
  };
29334
29399
  return document;
29335
29400
  }, $Parser_parse$4.$$arity = -3);
29336
- Opal.defs(self, '$parse_document_header', $Parser_parse_document_header$5 = function $$parse_document_header(reader, document) {
29337
- var $a, $b, self = this, block_attrs = nil, doc_attrs = nil, implicit_doctitle = nil, val = nil, $writer = nil, doctitle_attr_val = nil, source_location = nil, _ = nil, l0_section_title = nil, atx = nil, separator = nil, doc_id = nil, role = nil, reftext = nil, modified_attrs = nil;
29401
+ Opal.defs(self, '$parse_document_header', $Parser_parse_document_header$5 = function $$parse_document_header(reader, document, header_only) {
29402
+ var $a, $b, self = this, block_attrs = nil, doc_attrs = nil, implicit_doctitle = nil, $writer = nil, val = nil, doctitle_attr_val = nil, source_location = nil, _ = nil, l0_section_title = nil, atx = nil, separator = nil, doc_id = nil, role = nil, reftext = nil, modified_attrs = nil, author = nil, author_metadata = nil;
29338
29403
 
29339
29404
 
29405
+
29406
+ if (header_only == null) {
29407
+ header_only = false;
29408
+ };
29340
29409
  block_attrs = (function() {if ($truthy(reader.$skip_blank_lines())) {
29341
29410
 
29342
29411
  return self.$parse_block_metadata_lines(reader, document);
@@ -29345,7 +29414,12 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29345
29414
  }; return nil; })();
29346
29415
  doc_attrs = document.$attributes();
29347
29416
  if ($truthy(($truthy($a = (implicit_doctitle = self['$is_next_line_doctitle?'](reader, block_attrs, doc_attrs['$[]']("leveloffset")))) ? block_attrs['$[]']("title") : $a))) {
29348
- return document.$finalize_header(block_attrs, false)};
29417
+
29418
+
29419
+ $writer = ["authorcount", 0];
29420
+ $send(doc_attrs, '[]=', Opal.to_a($writer));
29421
+ $writer[$rb_minus($writer["length"], 1)];;
29422
+ return document.$finalize_header(block_attrs, false);};
29349
29423
  if ($truthy((val = doc_attrs['$[]']("doctitle"))['$nil_or_empty?']())) {
29350
29424
  } else {
29351
29425
 
@@ -29412,7 +29486,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29412
29486
  $writer[$rb_minus($writer["length"], 1)];};
29413
29487
  block_attrs.$clear();
29414
29488
  (modified_attrs = document.$instance_variable_get("@attributes_modified")).$delete("doctitle");
29415
- self.$parse_header_metadata(reader, document);
29489
+ self.$parse_header_metadata(reader, document, nil);
29416
29490
  if ($truthy(modified_attrs['$include?']("doctitle"))) {
29417
29491
  if ($truthy(($truthy($a = (val = doc_attrs['$[]']("doctitle"))['$nil_or_empty?']()) ? $a : val['$=='](doctitle_attr_val)))) {
29418
29492
 
@@ -29428,15 +29502,35 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29428
29502
  } else if ($truthy(l0_section_title['$!']())) {
29429
29503
  modified_attrs['$<<']("doctitle")};
29430
29504
  if ($truthy(doc_id)) {
29431
- document.$register("refs", [doc_id, document])};};
29505
+ document.$register("refs", [doc_id, document])};
29506
+ } else if ($truthy((author = doc_attrs['$[]']("author")))) {
29507
+
29508
+ author_metadata = self.$process_authors(author, true, false);
29509
+ if ($truthy(doc_attrs['$[]']("authorinitials"))) {
29510
+ author_metadata.$delete("authorinitials")};
29511
+ doc_attrs.$update(author_metadata);
29512
+ } else if ($truthy((author = doc_attrs['$[]']("authors")))) {
29513
+
29514
+ author_metadata = self.$process_authors(author, true);
29515
+ doc_attrs.$update(author_metadata);
29516
+ } else {
29517
+
29518
+ $writer = ["authorcount", 0];
29519
+ $send(doc_attrs, '[]=', Opal.to_a($writer));
29520
+ $writer[$rb_minus($writer["length"], 1)];
29521
+ };
29432
29522
  if (document.$doctype()['$==']("manpage")) {
29433
- self.$parse_manpage_header(reader, document, block_attrs)};
29523
+ self.$parse_manpage_header(reader, document, block_attrs, header_only)};
29434
29524
  return document.$finalize_header(block_attrs);
29435
- }, $Parser_parse_document_header$5.$$arity = 2);
29436
- Opal.defs(self, '$parse_manpage_header', $Parser_parse_manpage_header$6 = function $$parse_manpage_header(reader, document, block_attributes) {
29525
+ }, $Parser_parse_document_header$5.$$arity = -3);
29526
+ Opal.defs(self, '$parse_manpage_header', $Parser_parse_manpage_header$6 = function $$parse_manpage_header(reader, document, block_attributes, header_only) {
29437
29527
  var $a, $b, $$7, $$8, self = this, doc_attrs = nil, $writer = nil, manvolnum = nil, mantitle = nil, manname = nil, name_section_level = nil, name_section = nil, name_section_buffer = nil, mannames = nil, manpurpose = nil, error_msg = nil;
29438
29528
 
29439
29529
 
29530
+
29531
+ if (header_only == null) {
29532
+ header_only = false;
29533
+ };
29440
29534
  if ($truthy($$($nesting, 'ManpageTitleVolnumRx')['$=~']((doc_attrs = document.$attributes())['$[]']("doctitle")))) {
29441
29535
 
29442
29536
 
@@ -29481,6 +29575,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29481
29575
  $writer = ["outfilesuffix", "" + "." + (manvolnum)];
29482
29576
  $send(doc_attrs, '[]=', Opal.to_a($writer));
29483
29577
  $writer[$rb_minus($writer["length"], 1)];;};
29578
+ } else if ($truthy(header_only)) {
29484
29579
  } else {
29485
29580
 
29486
29581
  reader.$skip_blank_lines();
@@ -29580,7 +29675,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29580
29675
  };
29581
29676
  };
29582
29677
  return nil;
29583
- }, $Parser_parse_manpage_header$6.$$arity = 3);
29678
+ }, $Parser_parse_manpage_header$6.$$arity = -4);
29584
29679
  Opal.defs(self, '$next_section', $Parser_next_section$9 = function $$next_section(reader, parent, attributes) {
29585
29680
  var $a, $b, $c, $d, self = this, preamble = nil, intro = nil, part = nil, has_header = nil, book = nil, document = nil, $writer = nil, section = nil, current_level = nil, expected_next_level = nil, expected_next_level_alt = nil, title = nil, sectname = nil, next_level = nil, expected_condition = nil, new_section = nil, block_cursor = nil, new_block = nil, first_block = nil, child_block = nil;
29586
29681
 
@@ -29679,16 +29774,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29679
29774
  if ($truthy(part)) {
29680
29775
  if ($truthy(section['$blocks?']()['$!']())) {
29681
29776
  if ($truthy(new_block.$style()['$!=']("partintro"))) {
29682
- if (new_block.$context()['$==']("paragraph")) {
29683
-
29684
-
29685
- $writer = ["open"];
29686
- $send(new_block, 'context=', Opal.to_a($writer));
29687
- $writer[$rb_minus($writer["length"], 1)];;
29777
+ if ($truthy((($b = new_block.$style()['$==']("open")) ? new_block.$context()['$==']("open") : new_block.$style()['$==']("open")))) {
29688
29778
 
29689
29779
  $writer = ["partintro"];
29690
29780
  $send(new_block, 'style=', Opal.to_a($writer));
29691
- $writer[$rb_minus($writer["length"], 1)];;
29781
+ $writer[$rb_minus($writer["length"], 1)];
29692
29782
  } else {
29693
29783
 
29694
29784
 
@@ -29700,7 +29790,16 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29700
29790
  $send(intro, 'style=', Opal.to_a($writer));
29701
29791
  $writer[$rb_minus($writer["length"], 1)];;
29702
29792
  section.$blocks()['$<<'](intro);
29703
- }}
29793
+ }
29794
+ } else if (new_block.$content_model()['$==']("simple")) {
29795
+
29796
+
29797
+ $writer = ["compound"];
29798
+ $send(new_block, 'content_model=', Opal.to_a($writer));
29799
+ $writer[$rb_minus($writer["length"], 1)];;
29800
+ new_block['$<<']($$($nesting, 'Block').$new(new_block, "paragraph", $hash2(["source", "subs"], {"source": new_block.$lines(), "subs": new_block.$subs()})));
29801
+ new_block.$lines().$clear();
29802
+ new_block.$subs().$clear();}
29704
29803
  } else if (section.$blocks().$size()['$=='](1)) {
29705
29804
 
29706
29805
  first_block = section.$blocks()['$[]'](0);
@@ -29712,12 +29811,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29712
29811
  $writer = [(intro = $$($nesting, 'Block').$new(section, "open", $hash2(["content_model"], {"content_model": "compound"})))];
29713
29812
  $send(new_block, 'parent=', Opal.to_a($writer));
29714
29813
  $writer[$rb_minus($writer["length"], 1)];;
29715
-
29716
- $writer = ["partintro"];
29717
- $send(intro, 'style=', Opal.to_a($writer));
29718
- $writer[$rb_minus($writer["length"], 1)];;
29719
- section.$blocks().$shift();
29720
- if (first_block.$style()['$==']("partintro")) {
29814
+ if (first_block.$style()['$==']((($writer = ["partintro"]), $send(intro, 'style=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))) {
29721
29815
 
29722
29816
 
29723
29817
  $writer = ["paragraph"];
@@ -29727,6 +29821,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29727
29821
  $writer = [nil];
29728
29822
  $send(first_block, 'style=', Opal.to_a($writer));
29729
29823
  $writer[$rb_minus($writer["length"], 1)];;};
29824
+ section.$blocks().$shift();
29730
29825
  intro['$<<'](first_block);
29731
29826
  section.$blocks()['$<<'](intro);};}};
29732
29827
  ($truthy($b = intro) ? $b : section).$blocks()['$<<'](new_block);
@@ -29829,6 +29924,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29829
29924
  if ($truthy(($truthy($b = ($truthy($c = style) ? $$($nesting, 'Compliance').$strict_verbatim_paragraphs() : $c)) ? $$($nesting, 'VERBATIM_STYLES')['$include?'](style) : $b))) {
29830
29925
 
29831
29926
  block_context = style.$to_sym();
29927
+ cloaked_context = "paragraph";
29832
29928
  reader.$unshift_line(this_line);
29833
29929
  break;;};
29834
29930
  if ($truthy(text_only)) {
@@ -29963,7 +30059,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
29963
30059
  old_v = nil;
29964
30060
  };
29965
30061
  return old_v;}, $$11.$$s = self, $$11.$$arity = 2, $$11))};
29966
- if ($truthy((block = extension.$process_method()['$[]'](parent, target, attributes)))) {
30062
+ if ($truthy(($truthy($b = (block = extension.$process_method()['$[]'](parent, target, attributes))) ? block['$!='](parent) : $b))) {
29967
30063
 
29968
30064
  attributes.$replace(block.$attributes());
29969
30065
  break;;
@@ -30195,7 +30291,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30195
30291
  } else {
30196
30292
  $case = block_context;
30197
30293
  if ("listing"['$===']($case) || "source"['$===']($case)) {
30198
- if ($truthy(($truthy($a = block_context['$==']("source")) ? $a : ($truthy($b = attributes['$[]'](1)['$!']()) ? (language = ($truthy($c = attributes['$[]'](2)) ? $c : doc_attrs['$[]']("source-language"))) : $b)))) {
30294
+ if ($truthy(($truthy($a = block_context['$==']("source")) ? $a : (language = (function() {if ($truthy(attributes['$[]'](1))) {
30295
+ return nil
30296
+ } else {
30297
+ return ($truthy($b = attributes['$[]'](2)) ? $b : doc_attrs['$[]']("source-language"))
30298
+ }; return nil; })())))) {
30199
30299
 
30200
30300
  if ($truthy(language)) {
30201
30301
 
@@ -30217,6 +30317,13 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30217
30317
  $writer = ["language", doc_attrs['$[]']("source-language")];
30218
30318
  $send(attributes, '[]=', Opal.to_a($writer));
30219
30319
  $writer[$rb_minus($writer["length"], 1)];};
30320
+ if (cloaked_context['$==']("listing")) {
30321
+ } else {
30322
+
30323
+ $writer = ["cloaked-context", cloaked_context];
30324
+ $send(attributes, '[]=', Opal.to_a($writer));
30325
+ $writer[$rb_minus($writer["length"], 1)];
30326
+ };
30220
30327
  };
30221
30328
  if ($truthy(attributes['$key?']("linenums"))) {
30222
30329
  } else if ($truthy(($truthy($a = attributes['$[]']("linenums-option")) ? $a : doc_attrs['$[]']("source-linenums-option")))) {
@@ -30266,6 +30373,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30266
30373
  $send(attributes, '[]=', Opal.to_a($writer));
30267
30374
  $writer[$rb_minus($writer["length"], 1)];
30268
30375
  };
30376
+
30377
+ $writer = ["cloaked-context", cloaked_context];
30378
+ $send(attributes, '[]=', Opal.to_a($writer));
30379
+ $writer[$rb_minus($writer["length"], 1)];;
30269
30380
  if ($truthy(attributes['$key?']("linenums"))) {
30270
30381
  } else if ($truthy(($truthy($a = attributes['$[]']("linenums-option")) ? $a : doc_attrs['$[]']("source-linenums-option")))) {
30271
30382
 
@@ -30498,7 +30609,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30498
30609
  };
30499
30610
  }, $Parser_is_delimited_block$ques$15.$$arity = -2);
30500
30611
  Opal.defs(self, '$build_block', $Parser_build_block$16 = function $$build_block(block_context, content_model, terminator, parent, reader, attributes, options) {
30501
- var $a, self = this, $case = nil, skip_processing = nil, parse_as_content_model = nil, lines = nil, block_reader = nil, block_cursor = nil, tab_size = nil, indent = nil, extension = nil, block = nil;
30612
+ var $a, $b, self = this, $case = nil, skip_processing = nil, parse_as_content_model = nil, lines = nil, block_reader = nil, block_cursor = nil, tab_size = nil, indent = nil, extension = nil, block = nil;
30502
30613
 
30503
30614
 
30504
30615
 
@@ -30545,10 +30656,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30545
30656
  if ($truthy((extension = options['$[]']("extension")))) {
30546
30657
 
30547
30658
  attributes.$delete("style");
30548
- if ($truthy((block = extension.$process_method()['$[]'](parent, ($truthy($a = block_reader) ? $a : $$($nesting, 'Reader').$new(lines)), attributes.$merge())))) {
30659
+ if ($truthy(($truthy($a = (block = extension.$process_method()['$[]'](parent, ($truthy($b = block_reader) ? $b : $$($nesting, 'Reader').$new(lines)), attributes.$merge()))) ? block['$!='](parent) : $a))) {
30549
30660
 
30550
30661
  attributes.$replace(block.$attributes());
30551
- if ($truthy((($a = block.$content_model()['$==']("compound")) ? (lines = block.$lines())['$empty?']()['$!']() : block.$content_model()['$==']("compound")))) {
30662
+ if ($truthy(($truthy($a = (($b = block.$content_model()['$==']("compound")) ? $$($nesting, 'Block')['$==='](block) : block.$content_model()['$==']("compound"))) ? (lines = block.$lines())['$empty?']()['$!']() : $a))) {
30552
30663
 
30553
30664
  content_model = "compound";
30554
30665
  block_reader = $$($nesting, 'Reader').$new(lines);};
@@ -30660,8 +30771,9 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30660
30771
  reftext = reftext.$gsub("\\]", "]");
30661
30772
  if ($truthy(reftext['$include?']($$($nesting, 'ATTR_REF_HEAD')))) {
30662
30773
  reftext = document.$sub_attributes(reftext)};
30663
- } else if ($truthy(($truthy($b = reftext['$include?']($$($nesting, 'ATTR_REF_HEAD'))) ? (reftext = document.$sub_attributes(reftext))['$empty?']() : $b))) {
30664
- return nil;}};
30774
+ } else if ($truthy(reftext['$include?']($$($nesting, 'ATTR_REF_HEAD')))) {
30775
+ if ($truthy((reftext = document.$sub_attributes(reftext))['$empty?']())) {
30776
+ reftext = nil}}};
30665
30777
  };
30666
30778
  if ($truthy(document.$register("refs", [id, $$($nesting, 'Inline').$new(block, "anchor", reftext, $hash2(["type", "id"], {"type": "ref", "id": id}))]))) {
30667
30779
  return nil
@@ -30885,7 +30997,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30885
30997
  };
30886
30998
  }, $Parser_parse_list_item$27.$$arity = -5);
30887
30999
  Opal.defs(self, '$read_lines_for_list_item', $Parser_read_lines_for_list_item$28 = function $$read_lines_for_list_item(reader, list_type, sibling_trait, has_text) {
30888
- var $a, $b, $c, $$29, $$30, $$31, $$32, $$33, self = this, buffer = nil, continuation = nil, within_nested_list = nil, detached_continuation = nil, dlist = nil, this_line = nil, prev_line = nil, $writer = nil, match = nil, nested_list_type = nil, last_line = nil;
31000
+ var $a, $b, $c, $d, $$29, $$30, $$31, $$32, $$33, self = this, buffer = nil, continuation = nil, within_nested_list = nil, detached_continuation = nil, dlist = nil, this_line = nil, prev_line = nil, $writer = nil, match = nil, block_attribute_lines = nil, next_line = nil, interrupt = nil, ch0 = nil, nested_list_type = nil, last_line = nil;
30889
31001
 
30890
31002
 
30891
31003
 
@@ -30906,12 +31018,14 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30906
31018
  this_line = reader.$read_line();
30907
31019
  if ($truthy(self['$is_sibling_list_item?'](this_line, list_type, sibling_trait))) {
30908
31020
  break;};
31021
+ if (this_line['$==']($$($nesting, 'LIST_CONTINUATION'))) {
31022
+ this_line = $$($nesting, 'ListContinuationString')};
30909
31023
  prev_line = (function() {if ($truthy(buffer['$empty?']())) {
30910
31024
  return nil
30911
31025
  } else {
30912
31026
  return buffer['$[]'](-1)
30913
31027
  }; return nil; })();
30914
- if (prev_line['$==']($$($nesting, 'LIST_CONTINUATION'))) {
31028
+ if ($truthy($$($nesting, 'ListContinuationMarker')['$==='](prev_line))) {
30915
31029
 
30916
31030
  if (continuation['$==']("inactive")) {
30917
31031
 
@@ -30920,11 +31034,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30920
31034
  if ($truthy(within_nested_list)) {
30921
31035
  } else {
30922
31036
 
30923
- $writer = [-1, ""];
31037
+ $writer = [-1, $$($nesting, 'ListContinuationPlaceholder')];
30924
31038
  $send(buffer, '[]=', Opal.to_a($writer));
30925
31039
  $writer[$rb_minus($writer["length"], 1)];
30926
31040
  };};
30927
- if (this_line['$==']($$($nesting, 'LIST_CONTINUATION'))) {
31041
+ if ($truthy($$($nesting, 'ListContinuationMarker')['$==='](this_line))) {
30928
31042
 
30929
31043
  if ($truthy(continuation['$!=']("frozen"))) {
30930
31044
 
@@ -30933,16 +31047,36 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30933
31047
  this_line = nil;
30934
31048
  continue;;};};
30935
31049
  if ($truthy((match = self['$is_delimited_block?'](this_line, true)))) {
31050
+
30936
31051
  if (continuation['$==']("active")) {
30937
-
30938
- buffer['$<<'](this_line);
30939
- buffer.$concat(reader.$read_lines_until($hash2(["terminator", "read_last_line", "context"], {"terminator": match.$terminator(), "read_last_line": true, "context": nil})));
30940
- continuation = "inactive";
30941
31052
  } else {
30942
31053
  break;
30943
- }
30944
- } else if ($truthy(($truthy($b = ($truthy($c = dlist) ? continuation['$!=']("active") : $c)) ? $$($nesting, 'BlockAttributeLineRx')['$match?'](this_line) : $b))) {
30945
- break;
31054
+ };
31055
+ buffer['$<<'](this_line);
31056
+ buffer.$concat(reader.$read_lines_until($hash2(["terminator", "read_last_line", "context"], {"terminator": match.$terminator(), "read_last_line": true, "context": nil})));
31057
+ continuation = "inactive";
31058
+ } else if ($truthy(($truthy($b = ($truthy($c = ($truthy($d = dlist) ? continuation['$!=']("active") : $d)) ? this_line['$start_with?']("[") : $c)) ? $$($nesting, 'BlockAttributeLineRx')['$match?'](this_line) : $b))) {
31059
+
31060
+ block_attribute_lines = [this_line];
31061
+ while ($truthy((next_line = reader.$peek_line()))) {
31062
+
31063
+ if ($truthy(self['$is_delimited_block?'](next_line))) {
31064
+ interrupt = true
31065
+ } else if ($truthy(($truthy($c = next_line['$empty?']()) ? $c : ($truthy($d = next_line['$start_with?']("[")) ? $$($nesting, 'BlockAttributeLineRx')['$match?'](next_line) : $d)))) {
31066
+
31067
+ block_attribute_lines['$<<'](reader.$read_line());
31068
+ continue;;
31069
+ } else if ($truthy(($truthy($c = $$($nesting, 'AnyListRx')['$match?'](next_line)) ? self['$is_sibling_list_item?'](next_line, list_type, sibling_trait)['$!']() : $c))) {
31070
+ buffer.$concat(block_attribute_lines)
31071
+ } else {
31072
+ interrupt = true
31073
+ };
31074
+ break;;
31075
+ };
31076
+ if ($truthy(interrupt)) {
31077
+
31078
+ reader.$unshift_lines(block_attribute_lines);
31079
+ break;;};
30946
31080
  } else if ($truthy((($b = continuation['$==']("active")) ? this_line['$empty?']()['$!']() : continuation['$==']("active")))) {
30947
31081
  if ($truthy($$($nesting, 'LiteralParagraphRx')['$match?'](this_line))) {
30948
31082
 
@@ -30960,7 +31094,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30960
31094
  buffer.$concat(reader.$read_lines_until($hash2(["preserve_last_line", "break_on_blank_lines", "break_on_list_continuation"], {"preserve_last_line": true, "break_on_blank_lines": true, "break_on_list_continuation": true})))
30961
31095
  };
30962
31096
  continuation = "inactive";
30963
- } else if ($truthy(($truthy($b = ($truthy($c = $$($nesting, 'BlockTitleRx')['$match?'](this_line)) ? $c : $$($nesting, 'BlockAttributeLineRx')['$match?'](this_line))) ? $b : $$($nesting, 'AttributeEntryRx')['$match?'](this_line)))) {
31097
+ } else if ($truthy(($truthy($b = ($truthy($c = (($d = (ch0 = this_line.$chr())['$=='](".")) ? $$($nesting, 'BlockTitleRx')['$match?'](this_line) : (ch0 = this_line.$chr())['$==']("."))) ? $c : (($d = ch0['$==']("[")) ? $$($nesting, 'BlockAttributeLineRx')['$match?'](this_line) : ch0['$==']("[")))) ? $b : (($c = ch0['$=='](":")) ? $$($nesting, 'AttributeEntryRx')['$match?'](this_line) : ch0['$=='](":"))))) {
30964
31098
  buffer['$<<'](this_line)
30965
31099
  } else {
30966
31100
 
@@ -30975,7 +31109,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30975
31109
  if (ctx == null) {
30976
31110
  ctx = nil;
30977
31111
  };
30978
- return $$($nesting, 'ListRxMap')['$[]'](ctx)['$match?'](this_line);}, $$30.$$s = self, $$30.$$arity = 1, $$30))))) {
31112
+ return $$($nesting, 'ListRxMap')['$[]'](ctx)['$=~'](this_line);}, $$30.$$s = self, $$30.$$arity = 1, $$30))))) {
30979
31113
 
30980
31114
  within_nested_list = true;
30981
31115
  if ($truthy((($b = nested_list_type['$==']("dlist")) ? (($c = $gvars['~']) === nil ? nil : $c['$[]'](3))['$nil_or_empty?']() : nested_list_type['$==']("dlist")))) {
@@ -30996,7 +31130,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
30996
31130
  if (this_line['$==']($$($nesting, 'LIST_CONTINUATION'))) {
30997
31131
 
30998
31132
  detached_continuation = buffer.$size();
30999
- buffer['$<<'](this_line);
31133
+ buffer['$<<']($$($nesting, 'ListContinuationString'));
31000
31134
  } else if ($truthy(has_text)) {
31001
31135
  if ($truthy(self['$is_sibling_list_item?'](this_line, list_type, sibling_trait))) {
31002
31136
  break;
@@ -31040,6 +31174,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
31040
31174
  buffer['$<<'](this_line);
31041
31175
  has_text = true;
31042
31176
  };
31177
+ } else if ($truthy($$($nesting, 'ListContinuationMarker')['$==='](this_line))) {
31178
+
31179
+ has_text = true;
31180
+ buffer['$<<'](this_line);
31043
31181
  } else {
31044
31182
 
31045
31183
  if ($truthy(this_line['$empty?']())) {
@@ -31070,17 +31208,18 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
31070
31208
  reader.$unshift_line(this_line)};
31071
31209
  if ($truthy(detached_continuation)) {
31072
31210
 
31073
- $writer = [detached_continuation, ""];
31211
+ $writer = [detached_continuation, $$($nesting, 'ListContinuationPlaceholder')];
31074
31212
  $send(buffer, '[]=', Opal.to_a($writer));
31075
31213
  $writer[$rb_minus($writer["length"], 1)];};
31076
31214
  while (!($truthy(buffer['$empty?']()))) {
31077
- if ($truthy((last_line = buffer['$[]'](-1))['$empty?']())) {
31078
- buffer.$pop()
31079
- } else {
31215
+ if ($truthy($$($nesting, 'ListContinuationMarker')['$===']((last_line = buffer['$[]'](-1))))) {
31080
31216
 
31081
- if (last_line['$==']($$($nesting, 'LIST_CONTINUATION'))) {
31082
- buffer.$pop()};
31217
+ buffer.$pop();
31083
31218
  break;;
31219
+ } else if ($truthy(last_line['$empty?']())) {
31220
+ buffer.$pop()
31221
+ } else {
31222
+ break;
31084
31223
  }
31085
31224
  };
31086
31225
  return buffer;
@@ -31291,60 +31430,58 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
31291
31430
  sect_level = 0};};
31292
31431
  return [sect_id, sect_reftext, sect_title, sect_level, atx];
31293
31432
  }, $Parser_parse_section_title$40.$$arity = -3);
31294
- Opal.defs(self, '$parse_header_metadata', $Parser_parse_header_metadata$41 = function $$parse_header_metadata(reader, document) {
31295
- var $a, $$42, $$43, $$44, self = this, doc_attrs = nil, implicit_authors = nil, metadata = nil, implicit_author = nil, implicit_authorinitials = nil, author_metadata = nil, rev_metadata = nil, rev_line = nil, match = nil, $writer = nil, component = nil, author_line = nil, authors = nil, author_idx = nil, author_key = nil, explicit = nil, sparse = nil, author_override = nil;
31433
+ Opal.defs(self, '$parse_header_metadata', $Parser_parse_header_metadata$41 = function $$parse_header_metadata(reader, document, retrieve) {
31434
+ var $a, $$42, $$43, $$44, self = this, doc_attrs = nil, authorcount = nil, implicit_author_metadata = nil, $writer = nil, implicit_author = nil, implicit_authorinitials = nil, implicit_authors = nil, rev_line = nil, match = nil, rev_metadata = nil, component = nil, author_line = nil, author_metadata = nil, authors = nil, author_idx = nil, author_key = nil, explicit = nil, sparse = nil, author_override = nil;
31296
31435
 
31297
31436
 
31298
31437
 
31299
31438
  if (document == null) {
31300
31439
  document = nil;
31301
31440
  };
31441
+
31442
+ if (retrieve == null) {
31443
+ retrieve = true;
31444
+ };
31302
31445
  doc_attrs = ($truthy($a = document) ? document.$attributes() : $a);
31303
31446
  self.$process_attribute_entries(reader, document);
31304
- $a = [(implicit_authors = $hash2([], {})), nil, nil], (metadata = $a[0]), (implicit_author = $a[1]), (implicit_authorinitials = $a[2]), $a;
31305
31447
  if ($truthy(($truthy($a = reader['$has_more_lines?']()) ? reader['$next_line_empty?']()['$!']() : $a))) {
31306
31448
 
31307
- if ($truthy((author_metadata = self.$process_authors(reader.$read_line()))['$empty?']())) {
31308
- } else {
31449
+ authorcount = (implicit_author_metadata = self.$process_authors(reader.$read_line())).$delete("authorcount");
31450
+ if ($truthy(($truthy($a = document) ? $rb_gt((($writer = ["authorcount", authorcount]), $send(doc_attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]), 0) : $a))) {
31309
31451
 
31310
- if ($truthy(document)) {
31311
-
31312
- $send(author_metadata, 'each', [], ($$42 = function(key, val){var self = $$42.$$s || this, $writer = nil;
31452
+ $send(implicit_author_metadata, 'each', [], ($$42 = function(key, val){var self = $$42.$$s || this;
31313
31453
 
31454
+
31314
31455
 
31456
+ if (key == null) {
31457
+ key = nil;
31458
+ };
31459
+
31460
+ if (val == null) {
31461
+ val = nil;
31462
+ };
31463
+ if ($truthy(doc_attrs['$key?'](key))) {
31464
+ return nil
31465
+ } else {
31315
31466
 
31316
- if (key == null) {
31317
- key = nil;
31318
- };
31319
-
31320
- if (val == null) {
31321
- val = nil;
31322
- };
31323
- if ($truthy(doc_attrs['$key?'](key))) {
31324
- return nil
31325
- } else {
31326
-
31327
- $writer = [key, (function() {if ($truthy($$$('::', 'String')['$==='](val))) {
31328
-
31329
- return document.$apply_header_subs(val);
31330
- } else {
31331
- return val
31332
- }; return nil; })()];
31333
- $send(doc_attrs, '[]=', Opal.to_a($writer));
31334
- return $writer[$rb_minus($writer["length"], 1)];
31335
- };}, $$42.$$s = self, $$42.$$arity = 2, $$42));
31336
- implicit_author = doc_attrs['$[]']("author");
31337
- implicit_authorinitials = doc_attrs['$[]']("authorinitials");
31338
- implicit_authors = doc_attrs['$[]']("authors");};
31339
- metadata = author_metadata;
31340
- };
31467
+ $writer = [key, document.$apply_header_subs(val)];
31468
+ $send(doc_attrs, '[]=', Opal.to_a($writer));
31469
+ return $writer[$rb_minus($writer["length"], 1)];
31470
+ };}, $$42.$$s = self, $$42.$$arity = 2, $$42));
31471
+ implicit_author = doc_attrs['$[]']("author");
31472
+ implicit_authorinitials = doc_attrs['$[]']("authorinitials");
31473
+ implicit_authors = doc_attrs['$[]']("authors");};
31474
+
31475
+ $writer = ["authorcount", authorcount];
31476
+ $send(implicit_author_metadata, '[]=', Opal.to_a($writer));
31477
+ $writer[$rb_minus($writer["length"], 1)];;
31341
31478
  self.$process_attribute_entries(reader, document);
31342
- rev_metadata = $hash2([], {});
31343
31479
  if ($truthy(($truthy($a = reader['$has_more_lines?']()) ? reader['$next_line_empty?']()['$!']() : $a))) {
31344
31480
 
31345
31481
  rev_line = reader.$read_line();
31346
31482
  if ($truthy((match = $$($nesting, 'RevisionInfoLineRx').$match(rev_line)))) {
31347
31483
 
31484
+ rev_metadata = $hash2([], {});
31348
31485
  if ($truthy(match['$[]'](1))) {
31349
31486
 
31350
31487
  $writer = ["revnumber", match['$[]'](1).$rstrip()];
@@ -31367,38 +31504,33 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
31367
31504
  $writer = ["revremark", match['$[]'](3).$rstrip()];
31368
31505
  $send(rev_metadata, '[]=', Opal.to_a($writer));
31369
31506
  $writer[$rb_minus($writer["length"], 1)];};
31370
- } else {
31371
- reader.$unshift_line(rev_line)
31372
- };};
31373
- if ($truthy(rev_metadata['$empty?']())) {
31374
- } else {
31375
-
31376
- if ($truthy(document)) {
31377
- $send(rev_metadata, 'each', [], ($$43 = function(key, val){var self = $$43.$$s || this;
31507
+ if ($truthy(($truthy($a = document) ? rev_metadata['$empty?']()['$!']() : $a))) {
31508
+ $send(rev_metadata, 'each', [], ($$43 = function(key, val){var self = $$43.$$s || this;
31378
31509
 
31379
-
31380
-
31381
- if (key == null) {
31382
- key = nil;
31383
- };
31384
31510
 
31385
- if (val == null) {
31386
- val = nil;
31387
- };
31388
- if ($truthy(doc_attrs['$key?'](key))) {
31389
- return nil
31390
- } else {
31391
31511
 
31392
- $writer = [key, document.$apply_header_subs(val)];
31393
- $send(doc_attrs, '[]=', Opal.to_a($writer));
31394
- return $writer[$rb_minus($writer["length"], 1)];
31395
- };}, $$43.$$s = self, $$43.$$arity = 2, $$43))};
31396
- metadata.$update(rev_metadata);
31397
- };
31512
+ if (key == null) {
31513
+ key = nil;
31514
+ };
31515
+
31516
+ if (val == null) {
31517
+ val = nil;
31518
+ };
31519
+ if ($truthy(doc_attrs['$key?'](key))) {
31520
+ return nil
31521
+ } else {
31522
+
31523
+ $writer = [key, document.$apply_header_subs(val)];
31524
+ $send(doc_attrs, '[]=', Opal.to_a($writer));
31525
+ return $writer[$rb_minus($writer["length"], 1)];
31526
+ };}, $$43.$$s = self, $$43.$$arity = 2, $$43))};
31527
+ } else {
31528
+ reader.$unshift_line(rev_line)
31529
+ };};
31398
31530
  self.$process_attribute_entries(reader, document);
31399
31531
  reader.$skip_blank_lines();
31400
31532
  } else {
31401
- author_metadata = $hash2([], {})
31533
+ implicit_author_metadata = $hash2([], {})
31402
31534
  };
31403
31535
  if ($truthy(document)) {
31404
31536
 
@@ -31414,7 +31546,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
31414
31546
  $a = [[], 1, "author_1", false, false], (authors = $a[0]), (author_idx = $a[1]), (author_key = $a[2]), (explicit = $a[3]), (sparse = $a[4]), $a;
31415
31547
  while ($truthy(doc_attrs['$key?'](author_key))) {
31416
31548
 
31417
- if ((author_override = doc_attrs['$[]'](author_key))['$=='](author_metadata['$[]'](author_key))) {
31549
+ if ((author_override = doc_attrs['$[]'](author_key))['$=='](implicit_author_metadata['$[]'](author_key))) {
31418
31550
 
31419
31551
  authors['$<<'](nil);
31420
31552
  sparse = true;
@@ -31442,7 +31574,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
31442
31574
  if ($truthy(author)) {
31443
31575
  return nil;};
31444
31576
 
31445
- $writer = [idx, $send([author_metadata['$[]']("" + "firstname_" + ((name_idx = $rb_plus(idx, 1)))), author_metadata['$[]']("" + "middlename_" + (name_idx)), author_metadata['$[]']("" + "lastname_" + (name_idx))].$compact(), 'map', [], ($$45 = function(it){var self = $$45.$$s || this;
31577
+ $writer = [idx, $send([implicit_author_metadata['$[]']("" + "firstname_" + ((name_idx = $rb_plus(idx, 1)))), implicit_author_metadata['$[]']("" + "middlename_" + (name_idx)), implicit_author_metadata['$[]']("" + "lastname_" + (name_idx))].$compact(), 'map', [], ($$45 = function(it){var self = $$45.$$s || this;
31446
31578
 
31447
31579
 
31448
31580
 
@@ -31454,11 +31586,18 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
31454
31586
  return $writer[$rb_minus($writer["length"], 1)];;}, $$44.$$s = self, $$44.$$arity = 2, $$44))};
31455
31587
  author_metadata = self.$process_authors(authors, true, false);
31456
31588
  } else {
31457
- author_metadata = $hash2([], {})
31589
+ author_metadata = $hash2(["authorcount"], {"authorcount": 0})
31458
31590
  };
31459
31591
  };
31460
- if ($truthy(author_metadata['$empty?']())) {
31461
- ($truthy($a = metadata['$[]']("authorcount")) ? $a : (($writer = ["authorcount", (($writer = ["authorcount", 0]), $send(doc_attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)])]), $send(metadata, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))
31592
+ if (author_metadata['$[]']("authorcount")['$=='](0)) {
31593
+ if ($truthy(authorcount)) {
31594
+ author_metadata = nil
31595
+ } else {
31596
+
31597
+ $writer = ["authorcount", 0];
31598
+ $send(doc_attrs, '[]=', Opal.to_a($writer));
31599
+ $writer[$rb_minus($writer["length"], 1)];
31600
+ }
31462
31601
  } else {
31463
31602
 
31464
31603
  doc_attrs.$update(author_metadata);
@@ -31468,7 +31607,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
31468
31607
  $send(doc_attrs, '[]=', Opal.to_a($writer));
31469
31608
  $writer[$rb_minus($writer["length"], 1)];};
31470
31609
  };};
31471
- return metadata;
31610
+ if ($truthy(retrieve)) {
31611
+ return implicit_author_metadata.$merge(rev_metadata.$to_h(), author_metadata.$to_h())
31612
+ } else {
31613
+ return nil
31614
+ };
31472
31615
  }, $Parser_parse_header_metadata$41.$$arity = -2);
31473
31616
  Opal.defs(self, '$process_authors', $Parser_process_authors$46 = function $$process_authors(author_line, names_only, multiple) {
31474
31617
  var $a, $$47, self = this, author_metadata = nil, author_idx = nil, $writer = nil;
@@ -32563,7 +32706,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32563
32706
  (function($base, $super, $parent_nesting) {
32564
32707
  var self = $klass($base, $super, 'PathResolver');
32565
32708
 
32566
- 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;
32709
+ var $nesting = [self].concat($parent_nesting), $PathResolver_initialize$1, $PathResolver_absolute_path$ques$2, $a, $PathResolver_root$ques$3, $PathResolver_root$ques$4, $PathResolver_unc$ques$5, $PathResolver_web_root$ques$6, $PathResolver_descends_from$ques$7, $PathResolver_relative_path$8, $PathResolver_posixify$9, $PathResolver_expand_path$10, $PathResolver_partition_path$12, $PathResolver_join_path$13, $PathResolver_system_path$14, $PathResolver_web_path$17, $PathResolver_extract_uri_prefix$19;
32567
32710
 
32568
32711
  self.$$prototype.file_separator = self.$$prototype._partition_path_web = self.$$prototype._partition_path_sys = self.$$prototype.working_dir = nil;
32569
32712
 
@@ -32574,6 +32717,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32574
32717
  Opal.const_set($nesting[0], 'SLASH', "/");
32575
32718
  Opal.const_set($nesting[0], 'BACKSLASH', "\\");
32576
32719
  Opal.const_set($nesting[0], 'DOUBLE_SLASH', "//");
32720
+ Opal.const_set($nesting[0], 'URI_CLASSLOADER', "uri:classloader:");
32577
32721
  Opal.const_set($nesting[0], 'WindowsRootRx', /^(?:[a-zA-Z]:)?[\\\/]/);
32578
32722
  self.$attr_accessor("file_separator");
32579
32723
  self.$attr_accessor("working_dir");
@@ -32619,23 +32763,30 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32619
32763
 
32620
32764
  return ($truthy($a = self['$absolute_path?'](path)) ? $a : path['$start_with?']("file://", "http://", "https://"))
32621
32765
  }, $PathResolver_root$ques$3.$$arity = 1)
32766
+ } else if ($$$('::', 'RUBY_ENGINE')['$==']("jruby")) {
32767
+
32768
+ Opal.def(self, '$root?', $PathResolver_root$ques$4 = function(path) {
32769
+ var $a, self = this;
32770
+
32771
+ return ($truthy($a = self['$absolute_path?'](path)) ? $a : path['$start_with?']($$($nesting, 'URI_CLASSLOADER')))
32772
+ }, $PathResolver_root$ques$4.$$arity = 1)
32622
32773
  } else {
32623
32774
  Opal.alias(self, "root?", "absolute_path?")
32624
32775
  };
32625
32776
 
32626
- Opal.def(self, '$unc?', $PathResolver_unc$ques$4 = function(path) {
32777
+ Opal.def(self, '$unc?', $PathResolver_unc$ques$5 = function(path) {
32627
32778
  var self = this;
32628
32779
 
32629
32780
  return path['$start_with?']($$($nesting, 'DOUBLE_SLASH'))
32630
- }, $PathResolver_unc$ques$4.$$arity = 1);
32781
+ }, $PathResolver_unc$ques$5.$$arity = 1);
32631
32782
 
32632
- Opal.def(self, '$web_root?', $PathResolver_web_root$ques$5 = function(path) {
32783
+ Opal.def(self, '$web_root?', $PathResolver_web_root$ques$6 = function(path) {
32633
32784
  var self = this;
32634
32785
 
32635
32786
  return path['$start_with?']($$($nesting, 'SLASH'))
32636
- }, $PathResolver_web_root$ques$5.$$arity = 1);
32787
+ }, $PathResolver_web_root$ques$6.$$arity = 1);
32637
32788
 
32638
- Opal.def(self, '$descends_from?', $PathResolver_descends_from$ques$6 = function(path, base) {
32789
+ Opal.def(self, '$descends_from?', $PathResolver_descends_from$ques$7 = function(path, base) {
32639
32790
  var $a, self = this;
32640
32791
 
32641
32792
  if (base['$=='](path)) {
@@ -32645,9 +32796,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32645
32796
  } else {
32646
32797
  return ($truthy($a = path['$start_with?']($rb_plus(base, $$($nesting, 'SLASH')))) ? $rb_plus(base.$length(), 1) : $a)
32647
32798
  }
32648
- }, $PathResolver_descends_from$ques$6.$$arity = 2);
32799
+ }, $PathResolver_descends_from$ques$7.$$arity = 2);
32649
32800
 
32650
- Opal.def(self, '$relative_path', $PathResolver_relative_path$7 = function $$relative_path(path, base) {
32801
+ Opal.def(self, '$relative_path', $PathResolver_relative_path$8 = function $$relative_path(path, base) {
32651
32802
  var self = this, offset = nil;
32652
32803
 
32653
32804
  if ($truthy(self['$root?'](path))) {
@@ -32668,9 +32819,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32668
32819
  } else {
32669
32820
  return path
32670
32821
  }
32671
- }, $PathResolver_relative_path$7.$$arity = 2);
32822
+ }, $PathResolver_relative_path$8.$$arity = 2);
32672
32823
 
32673
- Opal.def(self, '$posixify', $PathResolver_posixify$8 = function $$posixify(path) {
32824
+ Opal.def(self, '$posixify', $PathResolver_posixify$9 = function $$posixify(path) {
32674
32825
  var $a, self = this;
32675
32826
 
32676
32827
  if ($truthy(path)) {
@@ -32683,18 +32834,18 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32683
32834
  } else {
32684
32835
  return ""
32685
32836
  }
32686
- }, $PathResolver_posixify$8.$$arity = 1);
32837
+ }, $PathResolver_posixify$9.$$arity = 1);
32687
32838
  Opal.alias(self, "posixfy", "posixify");
32688
32839
 
32689
- Opal.def(self, '$expand_path', $PathResolver_expand_path$9 = function $$expand_path(path) {
32690
- var $a, $b, $$10, self = this, path_segments = nil, path_root = nil, resolved_segments = nil;
32840
+ Opal.def(self, '$expand_path', $PathResolver_expand_path$10 = function $$expand_path(path) {
32841
+ var $a, $b, $$11, self = this, path_segments = nil, path_root = nil, resolved_segments = nil;
32691
32842
 
32692
32843
 
32693
32844
  $b = self.$partition_path(path), $a = Opal.to_ary($b), (path_segments = ($a[0] == null ? nil : $a[0])), (path_root = ($a[1] == null ? nil : $a[1])), $b;
32694
32845
  if ($truthy(path['$include?']($$($nesting, 'DOT_DOT')))) {
32695
32846
 
32696
32847
  resolved_segments = [];
32697
- $send(path_segments, 'each', [], ($$10 = function(segment){var self = $$10.$$s || this;
32848
+ $send(path_segments, 'each', [], ($$11 = function(segment){var self = $$11.$$s || this;
32698
32849
 
32699
32850
 
32700
32851
 
@@ -32705,14 +32856,14 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32705
32856
  return resolved_segments.$pop()
32706
32857
  } else {
32707
32858
  return resolved_segments['$<<'](segment)
32708
- };}, $$10.$$s = self, $$10.$$arity = 1, $$10));
32859
+ };}, $$11.$$s = self, $$11.$$arity = 1, $$11));
32709
32860
  return self.$join_path(resolved_segments, path_root);
32710
32861
  } else {
32711
32862
  return self.$join_path(path_segments, path_root)
32712
32863
  };
32713
- }, $PathResolver_expand_path$9.$$arity = 1);
32864
+ }, $PathResolver_expand_path$10.$$arity = 1);
32714
32865
 
32715
- Opal.def(self, '$partition_path', $PathResolver_partition_path$11 = function $$partition_path(path, web) {
32866
+ Opal.def(self, '$partition_path', $PathResolver_partition_path$12 = function $$partition_path(path, web) {
32716
32867
  var self = this, result = nil, cache = nil, posix_path = nil, root = nil, path_segments = nil, $writer = nil;
32717
32868
 
32718
32869
 
@@ -32737,6 +32888,8 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32737
32888
  root = $$($nesting, 'DOUBLE_SLASH')
32738
32889
  } else if ($truthy(posix_path['$start_with?']($$($nesting, 'SLASH')))) {
32739
32890
  root = $$($nesting, 'SLASH')
32891
+ } else if ($truthy(posix_path['$start_with?']($$($nesting, 'URI_CLASSLOADER')))) {
32892
+ root = posix_path.$slice(0, $$($nesting, 'URI_CLASSLOADER').$length())
32740
32893
  } else {
32741
32894
  root = posix_path.$slice(0, $rb_plus(posix_path.$index($$($nesting, 'SLASH')), 1))
32742
32895
  }
@@ -32753,9 +32906,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32753
32906
  $writer = [path, [path_segments, root]];
32754
32907
  $send(cache, '[]=', Opal.to_a($writer));
32755
32908
  return $writer[$rb_minus($writer["length"], 1)];;
32756
- }, $PathResolver_partition_path$11.$$arity = -2);
32909
+ }, $PathResolver_partition_path$12.$$arity = -2);
32757
32910
 
32758
- Opal.def(self, '$join_path', $PathResolver_join_path$12 = function $$join_path(segments, root) {
32911
+ Opal.def(self, '$join_path', $PathResolver_join_path$13 = function $$join_path(segments, root) {
32759
32912
  var self = this;
32760
32913
 
32761
32914
 
@@ -32769,10 +32922,10 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32769
32922
 
32770
32923
  return segments.$join($$($nesting, 'SLASH'));
32771
32924
  };
32772
- }, $PathResolver_join_path$12.$$arity = -2);
32925
+ }, $PathResolver_join_path$13.$$arity = -2);
32773
32926
 
32774
- Opal.def(self, '$system_path', $PathResolver_system_path$13 = function $$system_path(target, start, jail, opts) {
32775
- var $a, $b, $$14, $$15, self = this, target_path = nil, target_segments = nil, jail_segments = nil, jail_root = nil, recheck = nil, start_segments = nil, start_root = nil, resolved_segments = nil, unresolved_segments = nil, warned = nil;
32927
+ Opal.def(self, '$system_path', $PathResolver_system_path$14 = function $$system_path(target, start, jail, opts) {
32928
+ var $a, $b, $$15, $$16, self = this, target_path = nil, target_segments = nil, jail_segments = nil, jail_root = nil, recheck = nil, start_segments = nil, start_root = nil, resolved_segments = nil, unresolved_segments = nil, warned = nil;
32776
32929
 
32777
32930
 
32778
32931
 
@@ -32863,7 +33016,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32863
33016
  $b = self.$partition_path(jail), $a = Opal.to_ary($b), (jail_segments = ($a[0] == null ? nil : $a[0])), $b
32864
33017
  };
32865
33018
  warned = false;
32866
- $send(unresolved_segments, 'each', [], ($$14 = function(segment){var self = $$14.$$s || this, $c;
33019
+ $send(unresolved_segments, 'each', [], ($$15 = function(segment){var self = $$15.$$s || this, $c;
32867
33020
 
32868
33021
 
32869
33022
 
@@ -32886,9 +33039,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32886
33039
  }
32887
33040
  } else {
32888
33041
  return resolved_segments['$<<'](segment)
32889
- };}, $$14.$$s = self, $$14.$$arity = 1, $$14));
33042
+ };}, $$15.$$s = self, $$15.$$arity = 1, $$15));
32890
33043
  } else {
32891
- $send(unresolved_segments, 'each', [], ($$15 = function(segment){var self = $$15.$$s || this;
33044
+ $send(unresolved_segments, 'each', [], ($$16 = function(segment){var self = $$16.$$s || this;
32892
33045
 
32893
33046
 
32894
33047
 
@@ -32899,7 +33052,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32899
33052
  return resolved_segments.$pop()
32900
33053
  } else {
32901
33054
  return resolved_segments['$<<'](segment)
32902
- };}, $$15.$$s = self, $$15.$$arity = 1, $$15))
33055
+ };}, $$16.$$s = self, $$16.$$arity = 1, $$16))
32903
33056
  };};
32904
33057
  if ($truthy(recheck)) {
32905
33058
 
@@ -32920,10 +33073,10 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32920
33073
  } else {
32921
33074
  return self.$join_path(resolved_segments, jail_root)
32922
33075
  };
32923
- }, $PathResolver_system_path$13.$$arity = -2);
33076
+ }, $PathResolver_system_path$14.$$arity = -2);
32924
33077
 
32925
- Opal.def(self, '$web_path', $PathResolver_web_path$16 = function $$web_path(target, start) {
32926
- var $a, $b, $$17, self = this, uri_prefix = nil, target_segments = nil, target_root = nil, resolved_segments = nil, resolved_path = nil;
33078
+ Opal.def(self, '$web_path', $PathResolver_web_path$17 = function $$web_path(target, start) {
33079
+ var $a, $b, $$18, self = this, uri_prefix = nil, target_segments = nil, target_root = nil, resolved_segments = nil, resolved_path = nil;
32927
33080
 
32928
33081
 
32929
33082
 
@@ -32942,7 +33095,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32942
33095
  };
32943
33096
  $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;
32944
33097
  resolved_segments = [];
32945
- $send(target_segments, 'each', [], ($$17 = function(segment){var self = $$17.$$s || this, $c;
33098
+ $send(target_segments, 'each', [], ($$18 = function(segment){var self = $$18.$$s || this, $c;
32946
33099
 
32947
33100
 
32948
33101
 
@@ -32963,7 +33116,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32963
33116
  }
32964
33117
  } else {
32965
33118
  return resolved_segments['$<<'](segment)
32966
- };}, $$17.$$s = self, $$17.$$arity = 1, $$17));
33119
+ };}, $$18.$$s = self, $$18.$$arity = 1, $$18));
32967
33120
  if ($truthy((resolved_path = self.$join_path(resolved_segments, target_root))['$include?'](" "))) {
32968
33121
  resolved_path = resolved_path.$gsub(" ", "%20")};
32969
33122
  if ($truthy(uri_prefix)) {
@@ -32971,9 +33124,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32971
33124
  } else {
32972
33125
  return resolved_path
32973
33126
  };
32974
- }, $PathResolver_web_path$16.$$arity = -2);
33127
+ }, $PathResolver_web_path$17.$$arity = -2);
32975
33128
  self.$private();
32976
- return (Opal.def(self, '$extract_uri_prefix', $PathResolver_extract_uri_prefix$18 = function $$extract_uri_prefix(str) {
33129
+ return (Opal.def(self, '$extract_uri_prefix', $PathResolver_extract_uri_prefix$19 = function $$extract_uri_prefix(str) {
32977
33130
  var $a, self = this;
32978
33131
 
32979
33132
  if ($truthy(($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$=~'](str) : $a))) {
@@ -32981,7 +33134,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
32981
33134
  } else {
32982
33135
  return str
32983
33136
  }
32984
- }, $PathResolver_extract_uri_prefix$18.$$arity = 1), nil) && 'extract_uri_prefix';
33137
+ }, $PathResolver_extract_uri_prefix$19.$$arity = 1), nil) && 'extract_uri_prefix';
32985
33138
  })($nesting[0], null, $nesting)
32986
33139
  })($nesting[0], $nesting)
32987
33140
  };
@@ -33008,7 +33161,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
33008
33161
  }
33009
33162
  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, $gvars = Opal.gvars, $hash = Opal.hash;
33010
33163
 
33011
- Opal.add_stubs(['$include', '$attr_reader', '$+', '$attr_accessor', '$!', '$===', '$split', '$file', '$dir', '$dirname', '$path', '$basename', '$lineno', '$reverse', '$prepare_lines', '$empty?', '$nil_or_empty?', '$peek_line', '$>', '$slice', '$[]', '$length', '$process_line', '$times', '$shift', '$read_line', '$<<', '$-', '$unshift_all', '$has_more_lines?', '$join', '$read_lines', '$unshift', '$start_with?', '$==', '$*', '$read_lines_until', '$size', '$clear', '$cursor', '$[]=', '$!=', '$fetch', '$cursor_at_mark', '$warn', '$logger', '$message_with_context', '$pop', '$push', '$respond_to?', '$reverse_each', '$new', '$tap', '$each', '$instance_variables', '$instance_variable_get', '$drop', '$instance_variable_set', '$class', '$object_id', '$inspect', '$private', '$prepare_source_array', '$prepare_source_string', '$chomp', '$valid_encoding?', '$to_s', '$raise', '$to_i', '$attributes', '$catalog', '$pop_include', '$parse', '$path=', '$dup', '$end_with?', '$keys', '$rindex', '$rootname', '$key?', '$attr', '$reverse!', '$>=', '$nil?', '$extensions?', '$include_processors?', '$extensions', '$include_processors', '$map', '$skip_front_matter!', '$adjust_indentation!', '$include?', '$=~', '$preprocess_conditional_directive', '$preprocess_include_directive', '$downcase', '$error', '$none?', '$any?', '$all?', '$strip', '$send', '$resolve_expr_val', '$replace_next_line', '$rstrip', '$sub_attributes', '$attribute_missing', '$info', '$parse_attributes', '$find', '$handles?', '$instance', '$process_method', '$safe', '$resolve_include_path', '$method', '$split_delimited_value', '$partition', '$<', '$to_a', '$uniq', '$sort', '$call', '$each_line', '$infinite?', '$push_include', '$delete', '$first', '$values', '$value?', '$create_include_cursor', '$delete_at', '$read', '$uriish?', '$attr?', '$require_library', '$normalize_system_path', '$file?', '$relative_path', '$path_resolver', '$base_dir', '$to_f']);
33164
+ Opal.add_stubs(['$include', '$attr_reader', '$+', '$attr_accessor', '$!', '$===', '$split', '$file', '$dir', '$dirname', '$path', '$basename', '$lineno', '$reverse', '$prepare_lines', '$empty?', '$nil_or_empty?', '$peek_line', '$[]', '$>', '$slice', '$length', '$process_line', '$times', '$shift', '$read_line', '$<<', '$-', '$unshift_all', '$has_more_lines?', '$join', '$read_lines', '$unshift', '$start_with?', '$==', '$*', '$read_lines_until', '$size', '$clear', '$cursor', '$[]=', '$!=', '$fetch', '$cursor_at_mark', '$warn', '$logger', '$message_with_context', '$pop', '$push', '$respond_to?', '$reverse_each', '$new', '$tap', '$each', '$instance_variables', '$instance_variable_get', '$drop', '$instance_variable_set', '$class', '$object_id', '$inspect', '$private', '$prepare_source_array', '$prepare_source_string', '$chomp', '$valid_encoding?', '$to_s', '$raise', '$to_i', '$attributes', '$catalog', '$pop_include', '$parse', '$path=', '$dup', '$end_with?', '$keys', '$rindex', '$rootname', '$key?', '$attr', '$reverse!', '$>=', '$nil?', '$extensions?', '$include_processors?', '$extensions', '$include_processors', '$map', '$skip_front_matter!', '$adjust_indentation!', '$include?', '$=~', '$preprocess_conditional_directive', '$preprocess_include_directive', '$downcase', '$error', '$none?', '$any?', '$all?', '$strip', '$send', '$resolve_expr_val', '$replace_next_line', '$rstrip', '$sub_attributes', '$attribute_missing', '$info', '$parse_attributes', '$find', '$handles?', '$instance', '$process_method', '$safe', '$resolve_include_path', '$method', '$split_delimited_value', '$partition', '$<', '$to_a', '$uniq', '$sort', '$call', '$each_line', '$infinite?', '$push_include', '$delete', '$first', '$values', '$value?', '$create_include_cursor', '$delete_at', '$keep_if', '$read', '$uriish?', '$attr?', '$require_library', '$normalize_system_path', '$file?', '$relative_path', '$path_resolver', '$base_dir', '$to_f']);
33012
33165
  return (function($base, $parent_nesting) {
33013
33166
  var self = $module($base, 'Asciidoctor');
33014
33167
 
@@ -33153,26 +33306,31 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
33153
33306
  }, $Reader_next_line_empty$ques$7.$$arity = 0);
33154
33307
 
33155
33308
  Opal.def(self, '$peek_line', $Reader_peek_line$8 = function $$peek_line(direct) {
33156
- var $a, self = this, line = nil;
33309
+ var $a, $b, self = this, next_line = nil, line = nil;
33157
33310
 
33158
33311
 
33159
33312
 
33160
33313
  if (direct == null) {
33161
33314
  direct = false;
33162
33315
  };
33163
- if ($truthy(($truthy($a = direct) ? $a : $rb_gt(self.look_ahead, 0)))) {
33164
- if ($truthy(self.unescape_next_line)) {
33165
-
33166
- return (line = self.lines['$[]'](-1)).$slice(1, line.$length());
33167
- } else {
33168
- return self.lines['$[]'](-1)
33169
- }
33170
- } else if ($truthy(self.lines['$empty?']())) {
33316
+ while ($truthy(true)) {
33171
33317
 
33172
- self.look_ahead = 0;
33173
- return nil;
33174
- } else {
33175
- return ($truthy($a = self.$process_line(self.lines['$[]'](-1))) ? $a : self.$peek_line())
33318
+ next_line = self.lines['$[]'](-1);
33319
+ if ($truthy(($truthy($b = direct) ? $b : $rb_gt(self.look_ahead, 0)))) {
33320
+ return (function() {if ($truthy(self.unescape_next_line)) {
33321
+
33322
+ return next_line.$slice(1, next_line.$length());
33323
+ } else {
33324
+ return next_line
33325
+ }; return nil; })()
33326
+ } else if ($truthy(next_line)) {
33327
+ if ($truthy((line = self.$process_line(next_line)))) {
33328
+ return line}
33329
+ } else {
33330
+
33331
+ self.look_ahead = 0;
33332
+ return nil;
33333
+ };
33176
33334
  };
33177
33335
  }, $Reader_peek_line$8.$$arity = -1);
33178
33336
 
@@ -33664,7 +33822,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
33664
33822
  (function($base, $super, $parent_nesting) {
33665
33823
  var self = $klass($base, $super, 'PreprocessorReader');
33666
33824
 
33667
- var $nesting = [self].concat($parent_nesting), $PreprocessorReader_initialize$47, $PreprocessorReader_has_more_lines$ques$48, $PreprocessorReader_empty$ques$49, $PreprocessorReader_peek_line$50, $PreprocessorReader_push_include$51, $PreprocessorReader_include_depth$52, $PreprocessorReader_exceeds_max_depth$ques$53, $PreprocessorReader_shift$54, $PreprocessorReader_include_processors$ques$55, $PreprocessorReader_create_include_cursor$56, $PreprocessorReader_to_s$57, $PreprocessorReader_prepare_lines$59, $PreprocessorReader_process_line$60, $PreprocessorReader_preprocess_conditional_directive$61, $PreprocessorReader_preprocess_include_directive$66, $PreprocessorReader_resolve_include_path$79, $PreprocessorReader_pop_include$81, $PreprocessorReader_split_delimited_value$82, $PreprocessorReader_skip_front_matter$excl$83, $PreprocessorReader_resolve_expr_val$84;
33825
+ var $nesting = [self].concat($parent_nesting), $PreprocessorReader_initialize$47, $PreprocessorReader_has_more_lines$ques$48, $PreprocessorReader_empty$ques$49, $PreprocessorReader_peek_line$50, $PreprocessorReader_push_include$51, $PreprocessorReader_include_depth$52, $PreprocessorReader_exceeds_max_depth$ques$53, $PreprocessorReader_shift$54, $PreprocessorReader_include_processors$ques$55, $PreprocessorReader_create_include_cursor$56, $PreprocessorReader_to_s$57, $PreprocessorReader_prepare_lines$59, $PreprocessorReader_process_line$60, $PreprocessorReader_preprocess_conditional_directive$61, $PreprocessorReader_preprocess_include_directive$66, $PreprocessorReader_resolve_include_path$80, $PreprocessorReader_pop_include$82, $PreprocessorReader_split_delimited_value$83, $PreprocessorReader_skip_front_matter$excl$84, $PreprocessorReader_resolve_expr_val$85;
33668
33826
 
33669
33827
  self.$$prototype.include_stack = self.$$prototype.lines = self.$$prototype.file = self.$$prototype.dir = self.$$prototype.path = self.$$prototype.lineno = self.$$prototype.maxdepth = self.$$prototype.process_lines = self.$$prototype.includes = self.$$prototype.document = self.$$prototype.unescape_next_line = self.$$prototype.include_processor_extensions = self.$$prototype.look_ahead = self.$$prototype.skipping = self.$$prototype.conditional_stack = nil;
33670
33828
 
@@ -33787,27 +33945,21 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
33787
33945
  };
33788
33946
  self.path = (path = ($truthy($a = path) ? $a : $$$('::', 'File').$basename(file)));
33789
33947
  if ($truthy((self.process_lines = $send(file, 'end_with?', Opal.to_a($$($nesting, 'ASCIIDOC_EXTENSIONS').$keys()))))) {
33790
-
33791
- $writer = [path.$slice(0, path.$rindex(".")), (function() {if ($truthy(attributes['$[]']("partial-option"))) {
33948
+ ($truthy($a = self.includes['$[]'](path.$slice(0, path.$rindex(".")))) ? $a : (($writer = [path.$slice(0, path.$rindex(".")), (function() {if ($truthy(attributes['$[]']("partial-option"))) {
33792
33949
  return nil
33793
33950
  } else {
33794
33951
  return true
33795
- }; return nil; })()];
33796
- $send(self.includes, '[]=', Opal.to_a($writer));
33797
- $writer[$rb_minus($writer["length"], 1)];};
33952
+ }; return nil; })()]), $send(self.includes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))};
33798
33953
  } else {
33799
33954
 
33800
33955
  self.dir = ".";
33801
33956
  self.process_lines = true;
33802
33957
  if ($truthy((self.path = path))) {
33803
-
33804
- $writer = [$$($nesting, 'Helpers').$rootname(path), (function() {if ($truthy(attributes['$[]']("partial-option"))) {
33958
+ ($truthy($a = self.includes['$[]']($$($nesting, 'Helpers').$rootname(path))) ? $a : (($writer = [$$($nesting, 'Helpers').$rootname(path), (function() {if ($truthy(attributes['$[]']("partial-option"))) {
33805
33959
  return nil
33806
33960
  } else {
33807
33961
  return true
33808
- }; return nil; })()];
33809
- $send(self.includes, '[]=', Opal.to_a($writer));
33810
- $writer[$rb_minus($writer["length"], 1)];
33962
+ }; return nil; })()]), $send(self.includes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))
33811
33963
  } else {
33812
33964
  self.path = "<stdin>"
33813
33965
  };
@@ -34140,7 +34292,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34140
34292
  }, $PreprocessorReader_preprocess_conditional_directive$61.$$arity = 4);
34141
34293
 
34142
34294
  Opal.def(self, '$preprocess_include_directive', $PreprocessorReader_preprocess_include_directive$66 = function $$preprocess_include_directive(target, attrlist) {
34143
- var $a, $b, $$67, $$68, $$69, $$70, $$71, $$72, $$74, $$77, $$78, self = this, doc = nil, expanded_target = nil, attr_missing = nil, ext = nil, parsed_attrs = nil, inc_path = nil, target_type = nil, relpath = nil, $case = nil, reader = nil, read_mode = nil, enc = nil, $writer = nil, read_mode_params = nil, inc_linenos = nil, inc_tags = nil, tag = nil, inc_lines = nil, inc_offset = nil, inc_lineno = nil, tag_stack = nil, tags_used = nil, active_tag = nil, select = nil, base_select = nil, wildcard = nil, missing_tags = nil, inc_content = nil;
34295
+ var $a, $b, $$67, $$68, $$69, $$70, $$71, $$72, $$74, $$77, $$78, $$79, self = this, doc = nil, expanded_target = nil, attr_missing = nil, ext = nil, parsed_attrs = nil, inc_path = nil, target_type = nil, relpath = nil, $case = nil, reader = nil, read_mode = nil, enc = nil, $writer = nil, read_mode_params = nil, inc_linenos = nil, inc_tags = nil, tag = nil, inc_lines = nil, inc_offset = nil, inc_lineno = nil, tag_stack = nil, tags_selected = nil, active_tag = nil, select = nil, base_select = nil, wildcard = nil, missing_tags = nil, inc_content = nil;
34144
34296
 
34145
34297
 
34146
34298
  doc = self.document;
@@ -34189,7 +34341,10 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34189
34341
  ext.$process_method()['$[]'](doc, self, expanded_target, doc.$parse_attributes(attrlist, [], $hash2(["sub_input"], {"sub_input": true})));
34190
34342
  return true;
34191
34343
  } else if ($truthy($rb_ge(doc.$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')))) {
34192
- return self.$replace_next_line("" + "link:" + (expanded_target) + "[]")
34344
+
34345
+ if ($truthy(expanded_target['$include?'](" "))) {
34346
+ expanded_target = "" + "pass:c[" + (expanded_target) + "]"};
34347
+ return self.$replace_next_line("" + "link:" + (expanded_target) + "[role=include]");
34193
34348
  } else if ($truthy(self.maxdepth)) {
34194
34349
 
34195
34350
  if ($truthy($rb_ge(self.include_stack.$size(), self.maxdepth['$[]']("curr")))) {
@@ -34344,7 +34499,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34344
34499
  self.$push_include(inc_lines, inc_path, relpath, inc_offset, parsed_attrs);};
34345
34500
  } else if ($truthy(inc_tags)) {
34346
34501
 
34347
- $a = [[], nil, 0, [], $$$('::', 'Set').$new(), nil], (inc_lines = $a[0]), (inc_offset = $a[1]), (inc_lineno = $a[2]), (tag_stack = $a[3]), (tags_used = $a[4]), (active_tag = $a[5]), $a;
34502
+ $a = [[], nil, 0, [], $$$('::', 'Set').$new(), nil], (inc_lines = $a[0]), (inc_offset = $a[1]), (inc_lineno = $a[2]), (tag_stack = $a[3]), (tags_selected = $a[4]), (active_tag = $a[5]), $a;
34348
34503
  if ($truthy(inc_tags['$key?']("**"))) {
34349
34504
 
34350
34505
  select = (base_select = inc_tags.$delete("**"));
@@ -34420,8 +34575,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34420
34575
  }
34421
34576
  } else if ($truthy(inc_tags['$key?'](this_tag))) {
34422
34577
 
34423
- tags_used['$<<'](this_tag);
34424
- return tag_stack['$<<']([(active_tag = this_tag), (select = inc_tags['$[]'](this_tag)), inc_lineno]);
34578
+ if ($truthy((select = inc_tags['$[]'](this_tag)))) {
34579
+ tags_selected['$<<'](this_tag)};
34580
+ return tag_stack['$<<']([(active_tag = this_tag), select, inc_lineno]);
34425
34581
  } else if ($truthy(wildcard['$nil?']()['$!']())) {
34426
34582
 
34427
34583
  select = (function() {if ($truthy(($truthy($d = active_tag) ? select['$!']() : $d))) {
@@ -34468,7 +34624,18 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34468
34624
  };
34469
34625
  return self.$logger().$warn(self.$message_with_context("" + "detected unclosed tag '" + (tag_name) + "' starting at line " + (tag_lineno) + " of include " + (target_type) + ": " + (inc_path), $hash2(["source_location", "include_location"], {"source_location": self.$cursor(), "include_location": self.$create_include_cursor(inc_path, expanded_target, tag_lineno)})));}, $$77.$$s = self, $$77.$$arity = 3, $$77))
34470
34626
  };
34471
- if ($truthy((missing_tags = $rb_minus(inc_tags.$keys(), tags_used.$to_a()))['$empty?']())) {
34627
+ if ($truthy((missing_tags = $rb_minus($send(inc_tags, 'keep_if', [], ($$78 = function(_, v){var self = $$78.$$s || this;
34628
+
34629
+
34630
+
34631
+ if (_ == null) {
34632
+ _ = nil;
34633
+ };
34634
+
34635
+ if (v == null) {
34636
+ v = nil;
34637
+ };
34638
+ return v;}, $$78.$$s = self, $$78.$$arity = 2, $$78)).$keys(), tags_selected.$to_a()))['$empty?']())) {
34472
34639
  } else {
34473
34640
  self.$logger().$warn(self.$message_with_context("" + "tag" + ((function() {if ($truthy($rb_gt(missing_tags.$size(), 1))) {
34474
34641
  return "s"
@@ -34489,18 +34656,19 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34489
34656
  self.$push_include(inc_lines, inc_path, relpath, inc_offset, parsed_attrs);};
34490
34657
  } else {
34491
34658
 
34659
+ inc_content = nil;
34660
+
34492
34661
  try {
34493
34662
 
34494
- inc_content = $send(reader, 'call', [inc_path, read_mode], ($$78 = function(f){var self = $$78.$$s || this;
34663
+ inc_content = $send(reader, 'call', [inc_path, read_mode], ($$79 = function(f){var self = $$79.$$s || this;
34495
34664
 
34496
34665
 
34497
34666
 
34498
34667
  if (f == null) {
34499
34668
  f = nil;
34500
34669
  };
34501
- return f.$read();}, $$78.$$s = self, $$78.$$arity = 1, $$78));
34670
+ return f.$read();}, $$79.$$s = self, $$79.$$arity = 1, $$79));
34502
34671
  self.$shift();
34503
- self.$push_include(inc_content, inc_path, relpath, 1, parsed_attrs);
34504
34672
  } catch ($err) {
34505
34673
  if (Opal.rescue($err, [$$($nesting, 'StandardError')])) {
34506
34674
  try {
@@ -34509,7 +34677,8 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34509
34677
  return self.$replace_next_line("" + "Unresolved directive in " + (self.path) + " - include::" + (expanded_target) + "[" + (attrlist) + "]");
34510
34678
  } finally { Opal.pop_exception() }
34511
34679
  } else { throw $err; }
34512
- };
34680
+ };;
34681
+ self.$push_include(inc_content, inc_path, relpath, 1, parsed_attrs);
34513
34682
  };
34514
34683
  return true;
34515
34684
  } else {
@@ -34517,8 +34686,8 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34517
34686
  };
34518
34687
  }, $PreprocessorReader_preprocess_include_directive$66.$$arity = 2);
34519
34688
 
34520
- Opal.def(self, '$resolve_include_path', $PreprocessorReader_resolve_include_path$79 = function $$resolve_include_path(target, attrlist, attributes) {
34521
- var $a, $b, $$80, self = this, doc = nil, inc_path = nil, relpath = nil;
34689
+ Opal.def(self, '$resolve_include_path', $PreprocessorReader_resolve_include_path$80 = function $$resolve_include_path(target, attrlist, attributes) {
34690
+ var $a, $b, $$81, self = this, doc = nil, inc_path = nil, relpath = nil;
34522
34691
 
34523
34692
 
34524
34693
  doc = self.document;
@@ -34531,7 +34700,10 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34531
34700
 
34532
34701
  if ($truthy(doc['$attr?']("allow-uri-read"))) {
34533
34702
  } else {
34534
- return self.$replace_next_line("" + "link:" + (target) + "[" + (attrlist) + "]")
34703
+
34704
+ if ($truthy(target['$include?'](" "))) {
34705
+ target = "" + "pass:c[" + (target) + "]"};
34706
+ return self.$replace_next_line("" + "link:" + (target) + "[role=include]");
34535
34707
  };
34536
34708
  if ($truthy(doc['$attr?']("cache-uri"))) {
34537
34709
  if ($truthy((($b = $$$('::', 'OpenURI', 'skip_raise')) && ($a = $$$($b, 'Cache', 'skip_raise')) ? 'constant' : nil))) {
@@ -34547,9 +34719,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34547
34719
  if ($truthy($$$('::', 'File')['$file?'](inc_path))) {
34548
34720
  } else if ($truthy(attributes['$[]']("optional-option"))) {
34549
34721
 
34550
- $send(self.$logger(), 'info', [], ($$80 = function(){var self = $$80.$$s || this;
34722
+ $send(self.$logger(), 'info', [], ($$81 = function(){var self = $$81.$$s || this;
34551
34723
 
34552
- return self.$message_with_context("" + "optional include dropped because include file not found: " + (inc_path), $hash2(["source_location"], {"source_location": self.$cursor()}))}, $$80.$$s = self, $$80.$$arity = 0, $$80));
34724
+ return self.$message_with_context("" + "optional include dropped because include file not found: " + (inc_path), $hash2(["source_location"], {"source_location": self.$cursor()}))}, $$81.$$s = self, $$81.$$arity = 0, $$81));
34553
34725
  self.$shift();
34554
34726
  return true;
34555
34727
  } else {
@@ -34560,9 +34732,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34560
34732
  relpath = doc.$path_resolver().$relative_path(inc_path, doc.$base_dir());
34561
34733
  return [inc_path, "file", relpath];
34562
34734
  };
34563
- }, $PreprocessorReader_resolve_include_path$79.$$arity = 3);
34735
+ }, $PreprocessorReader_resolve_include_path$80.$$arity = 3);
34564
34736
 
34565
- Opal.def(self, '$pop_include', $PreprocessorReader_pop_include$81 = function $$pop_include() {
34737
+ Opal.def(self, '$pop_include', $PreprocessorReader_pop_include$82 = function $$pop_include() {
34566
34738
  var $a, $b, self = this;
34567
34739
 
34568
34740
  if ($truthy(self.include_stack['$empty?']())) {
@@ -34573,9 +34745,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34573
34745
  self.look_ahead = 0;
34574
34746
  return nil;
34575
34747
  }
34576
- }, $PreprocessorReader_pop_include$81.$$arity = 0);
34748
+ }, $PreprocessorReader_pop_include$82.$$arity = 0);
34577
34749
 
34578
- Opal.def(self, '$split_delimited_value', $PreprocessorReader_split_delimited_value$82 = function $$split_delimited_value(val) {
34750
+ Opal.def(self, '$split_delimited_value', $PreprocessorReader_split_delimited_value$83 = function $$split_delimited_value(val) {
34579
34751
  var self = this;
34580
34752
 
34581
34753
  if ($truthy(val['$include?'](","))) {
@@ -34585,45 +34757,43 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34585
34757
 
34586
34758
  return val.$split(";");
34587
34759
  }
34588
- }, $PreprocessorReader_split_delimited_value$82.$$arity = 1);
34760
+ }, $PreprocessorReader_split_delimited_value$83.$$arity = 1);
34589
34761
 
34590
- Opal.def(self, '$skip_front_matter!', $PreprocessorReader_skip_front_matter$excl$83 = function(data, increment_linenos) {
34591
- var $a, $b, self = this, front_matter = nil, original_data = nil;
34762
+ Opal.def(self, '$skip_front_matter!', $PreprocessorReader_skip_front_matter$excl$84 = function(data, increment_linenos) {
34763
+ var $a, $b, self = this, delim = nil, original_data = nil, front_matter = nil, eof = nil;
34592
34764
 
34593
34765
 
34594
34766
 
34595
34767
  if (increment_linenos == null) {
34596
34768
  increment_linenos = true;
34597
34769
  };
34598
- front_matter = nil;
34599
- if (data['$[]'](0)['$==']("---")) {
34770
+ if ((delim = data['$[]'](0))['$==']("---")) {
34771
+ } else {
34772
+ return nil
34773
+ };
34774
+ original_data = data.$drop(0);
34775
+ data.$shift();
34776
+ front_matter = [];
34777
+ if ($truthy(increment_linenos)) {
34778
+ self.lineno = $rb_plus(self.lineno, 1)};
34779
+ while (!($truthy(($truthy($b = (eof = data['$empty?']())) ? $b : data['$[]'](0)['$=='](delim))))) {
34600
34780
 
34601
- original_data = data.$drop(0);
34602
- data.$shift();
34603
- front_matter = [];
34781
+ front_matter['$<<'](data.$shift());
34604
34782
  if ($truthy(increment_linenos)) {
34605
34783
  self.lineno = $rb_plus(self.lineno, 1)};
34606
- while ($truthy(($truthy($b = data['$empty?']()['$!']()) ? data['$[]'](0)['$!=']("---") : $b))) {
34607
-
34608
- front_matter['$<<'](data.$shift());
34609
- if ($truthy(increment_linenos)) {
34610
- self.lineno = $rb_plus(self.lineno, 1)};
34611
- };
34612
- if ($truthy(data['$empty?']())) {
34613
-
34614
- $send(data, 'unshift', Opal.to_a(original_data));
34615
- if ($truthy(increment_linenos)) {
34616
- self.lineno = 0};
34617
- front_matter = nil;
34618
- } else {
34619
-
34620
- data.$shift();
34621
- if ($truthy(increment_linenos)) {
34622
- self.lineno = $rb_plus(self.lineno, 1)};
34623
- };};
34784
+ };
34785
+ if ($truthy(eof)) {
34786
+
34787
+ $send(data, 'unshift', Opal.to_a(original_data));
34788
+ if ($truthy(increment_linenos)) {
34789
+ self.lineno = $rb_minus(self.lineno, original_data.$size())};
34790
+ return nil;};
34791
+ data.$shift();
34792
+ if ($truthy(increment_linenos)) {
34793
+ self.lineno = $rb_plus(self.lineno, 1)};
34624
34794
  return front_matter;
34625
- }, $PreprocessorReader_skip_front_matter$excl$83.$$arity = -2);
34626
- return (Opal.def(self, '$resolve_expr_val', $PreprocessorReader_resolve_expr_val$84 = function $$resolve_expr_val(val) {
34795
+ }, $PreprocessorReader_skip_front_matter$excl$84.$$arity = -2);
34796
+ return (Opal.def(self, '$resolve_expr_val', $PreprocessorReader_resolve_expr_val$85 = function $$resolve_expr_val(val) {
34627
34797
  var $a, $b, self = this, quoted = nil;
34628
34798
 
34629
34799
 
@@ -34651,7 +34821,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
34651
34821
  } else {
34652
34822
  return val.$to_i()
34653
34823
  };
34654
- }, $PreprocessorReader_resolve_expr_val$84.$$arity = 1), nil) && 'resolve_expr_val';
34824
+ }, $PreprocessorReader_resolve_expr_val$85.$$arity = 1), nil) && 'resolve_expr_val';
34655
34825
  })($nesting[0], $$($nesting, 'Reader'), $nesting);
34656
34826
  })($nesting[0], $nesting)
34657
34827
  };
@@ -34669,7 +34839,7 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
34669
34839
  }
34670
34840
  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;
34671
34841
 
34672
- Opal.add_stubs(['$attr_accessor', '$attr_reader', '$===', '$+', '$level', '$special', '$generate_id', '$title', '$==', '$>', '$sectnum', '$reftext', '$!', '$empty?', '$sub_placeholder', '$sub_quotes', '$compat_mode', '$[]', '$attributes', '$context', '$assign_numeral', '$class', '$object_id', '$inspect', '$size', '$length', '$chr', '$[]=', '$-', '$gsub', '$downcase', '$delete', '$tr_s', '$end_with?', '$chop', '$start_with?', '$slice', '$key?', '$catalog', '$unique_id_start_index']);
34842
+ Opal.add_stubs(['$attr_accessor', '$attr_reader', '$===', '$+', '$level', '$special', '$generate_id', '$title', '$>', '$==', '$sectnum', '$reftext', '$!', '$empty?', '$sub_placeholder', '$sub_quotes', '$compat_mode', '$[]', '$attributes', '$context', '$assign_numeral', '$class', '$object_id', '$inspect', '$size', '$length', '$chr', '$[]=', '$-', '$gsub', '$downcase', '$delete', '$tr_s', '$end_with?', '$chop', '$start_with?', '$slice', '$key?', '$catalog', '$unique_id_start_index']);
34673
34843
  return (function($base, $parent_nesting) {
34674
34844
  var self = $module($base, 'Asciidoctor');
34675
34845
 
@@ -34678,9 +34848,9 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
34678
34848
  (function($base, $super, $parent_nesting) {
34679
34849
  var self = $klass($base, $super, 'Section');
34680
34850
 
34681
- var $nesting = [self].concat($parent_nesting), $Section_initialize$1, $Section_generate_id$2, $Section_sectnum$3, $Section_xreftext$4, $Section_$lt$lt$5, $Section_to_s$6, $Section_generate_id$7;
34851
+ var $nesting = [self].concat($parent_nesting), $Section_initialize$1, $Section_generate_id$2, $Section_sections$ques$3, $Section_sectnum$4, $Section_xreftext$5, $Section_$lt$lt$6, $Section_to_s$7, $Section_generate_id$8;
34682
34852
 
34683
- self.$$prototype.document = self.$$prototype.level = self.$$prototype.parent = self.$$prototype.numeral = self.$$prototype.numbered = self.$$prototype.sectname = self.$$prototype.title = self.$$prototype.blocks = nil;
34853
+ self.$$prototype.document = self.$$prototype.next_section_index = self.$$prototype.level = self.$$prototype.parent = self.$$prototype.numeral = self.$$prototype.numbered = self.$$prototype.sectname = self.$$prototype.title = self.$$prototype.blocks = nil;
34684
34854
 
34685
34855
  self.$attr_accessor("index");
34686
34856
  self.$attr_accessor("sectname");
@@ -34726,7 +34896,13 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
34726
34896
  return $$($nesting, 'Section').$generate_id(self.$title(), self.document)
34727
34897
  }, $Section_generate_id$2.$$arity = 0);
34728
34898
 
34729
- Opal.def(self, '$sectnum', $Section_sectnum$3 = function $$sectnum(delimiter, append) {
34899
+ Opal.def(self, '$sections?', $Section_sections$ques$3 = function() {
34900
+ var self = this;
34901
+
34902
+ return $rb_gt(self.next_section_index, 0)
34903
+ }, $Section_sections$ques$3.$$arity = 0);
34904
+
34905
+ Opal.def(self, '$sectnum', $Section_sectnum$4 = function $$sectnum(delimiter, append) {
34730
34906
  var $a, self = this;
34731
34907
 
34732
34908
 
@@ -34748,9 +34924,9 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
34748
34924
  } else {
34749
34925
  return "" + (self.numeral) + (append)
34750
34926
  };
34751
- }, $Section_sectnum$3.$$arity = -1);
34927
+ }, $Section_sectnum$4.$$arity = -1);
34752
34928
 
34753
- Opal.def(self, '$xreftext', $Section_xreftext$4 = function $$xreftext(xrefstyle) {
34929
+ Opal.def(self, '$xreftext', $Section_xreftext$5 = function $$xreftext(xrefstyle) {
34754
34930
  var $a, self = this, val = nil, $case = nil, type = nil, quoted_title = nil, signifier = nil;
34755
34931
 
34756
34932
 
@@ -34798,12 +34974,12 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
34798
34974
  } else {
34799
34975
  return self.$title()
34800
34976
  };
34801
- }, $Section_xreftext$4.$$arity = -1);
34977
+ }, $Section_xreftext$5.$$arity = -1);
34802
34978
 
34803
- Opal.def(self, '$<<', $Section_$lt$lt$5 = function(block) {
34804
- var $iter = $Section_$lt$lt$5.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
34979
+ Opal.def(self, '$<<', $Section_$lt$lt$6 = function(block) {
34980
+ var $iter = $Section_$lt$lt$6.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
34805
34981
 
34806
- if ($iter) $Section_$lt$lt$5.$$p = null;
34982
+ if ($iter) $Section_$lt$lt$6.$$p = null;
34807
34983
  // Prepare super implicit arguments
34808
34984
  for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
34809
34985
  $zuper[$zuper_i] = arguments[$zuper_i];
@@ -34811,13 +34987,13 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
34811
34987
 
34812
34988
  if (block.$context()['$==']("section")) {
34813
34989
  self.$assign_numeral(block)};
34814
- return $send(self, Opal.find_super_dispatcher(self, '<<', $Section_$lt$lt$5, false), $zuper, $iter);
34815
- }, $Section_$lt$lt$5.$$arity = 1);
34990
+ return $send(self, Opal.find_super_dispatcher(self, '<<', $Section_$lt$lt$6, false), $zuper, $iter);
34991
+ }, $Section_$lt$lt$6.$$arity = 1);
34816
34992
 
34817
- Opal.def(self, '$to_s', $Section_to_s$6 = function $$to_s() {
34818
- var $iter = $Section_to_s$6.$$p, $yield = $iter || nil, self = this, formal_title = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
34993
+ Opal.def(self, '$to_s', $Section_to_s$7 = function $$to_s() {
34994
+ var $iter = $Section_to_s$7.$$p, $yield = $iter || nil, self = this, formal_title = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
34819
34995
 
34820
- if ($iter) $Section_to_s$6.$$p = null;
34996
+ if ($iter) $Section_to_s$7.$$p = null;
34821
34997
  // Prepare super implicit arguments
34822
34998
  for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
34823
34999
  $zuper[$zuper_i] = arguments[$zuper_i];
@@ -34831,10 +35007,10 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
34831
35007
  }; return nil; })();
34832
35008
  return "" + "#<" + (self.$class()) + "@" + (self.$object_id()) + " {level: " + (self.level) + ", title: " + (formal_title.$inspect()) + ", blocks: " + (self.blocks.$size()) + "}>";
34833
35009
  } else {
34834
- return $send(self, Opal.find_super_dispatcher(self, 'to_s', $Section_to_s$6, false), $zuper, $iter)
35010
+ return $send(self, Opal.find_super_dispatcher(self, 'to_s', $Section_to_s$7, false), $zuper, $iter)
34835
35011
  }
34836
- }, $Section_to_s$6.$$arity = 0);
34837
- return (Opal.defs(self, '$generate_id', $Section_generate_id$7 = function $$generate_id(title, document) {
35012
+ }, $Section_to_s$7.$$arity = 0);
35013
+ return (Opal.defs(self, '$generate_id', $Section_generate_id$8 = function $$generate_id(title, document) {
34838
35014
  var $a, $b, self = this, attrs = nil, pre = nil, sep = nil, no_sep = nil, $writer = nil, sep_sub = nil, gen_id = nil, ids = nil, cnt = nil, candidate_id = nil;
34839
35015
 
34840
35016
 
@@ -34872,7 +35048,7 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
34872
35048
  } else {
34873
35049
  return gen_id
34874
35050
  };
34875
- }, $Section_generate_id$7.$$arity = 2), nil) && 'generate_id';
35051
+ }, $Section_generate_id$8.$$arity = 2), nil) && 'generate_id';
34876
35052
  })($nesting[0], $$($nesting, 'AbstractBlock'), $nesting)
34877
35053
  })($nesting[0], $nesting)
34878
35054
  };
@@ -36496,7 +36672,7 @@ Opal.modules["asciidoctor/syntax_highlighter/highlightjs"] = function(Opal) {
36496
36672
  return "" + "<script src=\"" + (base_url) + "/languages/" + (lang.$lstrip()) + ".min.js\"></script>\n";}, $$6.$$s = self, $$6.$$arity = 1, $$6)).$join()
36497
36673
  } else {
36498
36674
  return ""
36499
- }; return nil; })()) + "<script>\n" + "if (!hljs.initHighlighting.called) {\n" + " hljs.initHighlighting.called = true\n" + " ;[].slice.call(document.querySelectorAll('pre.highlight > code')).forEach(function (el) { hljs.highlightBlock(el) })\n" + "}\n" + "</script>"
36675
+ }; return nil; })()) + "<script>\n" + "if (!hljs.initHighlighting.called) {\n" + " hljs.initHighlighting.called = true\n" + " ;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })\n" + "}\n" + "</script>"
36500
36676
  };
36501
36677
  }, $HighlightJsAdapter_docinfo$5.$$arity = 3), nil) && 'docinfo';
36502
36678
  })($$($nesting, 'SyntaxHighlighter'), $$$($$($nesting, 'SyntaxHighlighter'), 'Base'), $nesting)
@@ -37105,7 +37281,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
37105
37281
  }
37106
37282
  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, $hash2 = Opal.hash2, $truthy = Opal.truthy, $gvars = Opal.gvars;
37107
37283
 
37108
- Opal.add_stubs(['$register_for', '$default=', '$-', '$==', '$[]', '$init_backend_traits', '$node_name', '$===', '$convert_inline_quoted', '$convert_paragraph', '$convert_inline_anchor', '$convert_section', '$convert_listing', '$convert_literal', '$convert_ulist', '$convert_olist', '$convert_dlist', '$convert_admonition', '$convert_colist', '$convert_embedded', '$convert_example', '$convert_floating_title', '$convert_image', '$convert_inline_break', '$convert_inline_button', '$convert_inline_callout', '$convert_inline_footnote', '$convert_inline_image', '$convert_inline_indexterm', '$convert_inline_kbd', '$convert_inline_menu', '$convert_open', '$convert_page_break', '$convert_preamble', '$convert_quote', '$convert_sidebar', '$convert_stem', '$convert_table', '$convert_thematic_break', '$convert_verse', '$convert_video', '$convert_document', '$convert_toc', '$convert_pass', '$convert_audio', '$empty?', '$attr', '$attr?', '$<<', '$include?', '$sub_replacements', '$gsub', '$extname', '$slice', '$length', '$doctitle', '$normalize_web_path', '$primary_stylesheet_data', '$instance', '$read_contents', '$syntax_highlighter', '$size', '$docinfo', '$id', '$sections?', '$doctype', '$role?', '$role', '$join', '$noheader', '$convert', '$converter', '$generate_manname_section', '$header?', '$notitle', '$title', '$header', '$each', '$authors', '$>', '$name', '$email', '$sub_macros', '$+', '$downcase', '$concat', '$content', '$footnotes?', '$!', '$footnotes', '$index', '$text', '$nofooter', '$docinfo?', '$[]=', '$delete_at', '$inspect', '$!=', '$to_i', '$attributes', '$document', '$sections', '$level', '$caption', '$captioned_title', '$numbered', '$<=', '$<', '$sectname', '$sectnum', '$convert_outline', '$title?', '$icon_uri', '$compact', '$media_uri', '$option?', '$append_boolean_attribute', '$style', '$items', '$blocks?', '$text?', '$chomp', '$safe', '$read_svg_contents', '$alt', '$image_uri', '$encode_attribute_value', '$append_link_constraint_attrs', '$highlight?', '$to_sym', '$format', '$*', '$count', '$start_with?', '$end_with?', '$list_marker_keyword', '$parent', '$warn', '$logger', '$context', '$error', '$new', '$columns', '$to_h', '$rows', '$colspan', '$rowspan', '$unshift', '$shift', '$pop', '$split', '$nil_or_empty?', '$type', '$catalog', '$get_root_document', '$xreftext', '$target', '$reftext', '$chop', '$sub', '$match', '$private', '$upcase', '$nested?', '$parent_document', '$to_s', '$handles?', '$send']);
37284
+ Opal.add_stubs(['$register_for', '$default=', '$-', '$==', '$[]', '$init_backend_traits', '$node_name', '$===', '$convert_inline_quoted', '$convert_paragraph', '$convert_inline_anchor', '$convert_section', '$convert_listing', '$convert_literal', '$convert_ulist', '$convert_olist', '$convert_dlist', '$convert_admonition', '$convert_colist', '$convert_embedded', '$convert_example', '$convert_floating_title', '$convert_image', '$convert_inline_break', '$convert_inline_button', '$convert_inline_callout', '$convert_inline_footnote', '$convert_inline_image', '$convert_inline_indexterm', '$convert_inline_kbd', '$convert_inline_menu', '$convert_open', '$convert_page_break', '$convert_preamble', '$convert_quote', '$convert_sidebar', '$convert_stem', '$convert_table', '$convert_thematic_break', '$convert_verse', '$convert_video', '$convert_document', '$convert_toc', '$convert_pass', '$convert_audio', '$empty?', '$attr', '$attr?', '$<<', '$include?', '$sub_replacements', '$gsub', '$extname', '$slice', '$length', '$doctitle', '$normalize_web_path', '$primary_stylesheet_data', '$instance', '$read_contents', '$syntax_highlighter', '$size', '$docinfo', '$id', '$sections?', '$doctype', '$role?', '$role', '$join', '$noheader', '$convert', '$converter', '$generate_manname_section', '$header?', '$notitle', '$title', '$header', '$each', '$authors', '$>', '$name', '$email', '$sub_macros', '$+', '$downcase', '$concat', '$content', '$footnotes?', '$!', '$footnotes', '$index', '$text', '$nofooter', '$docinfo?', '$[]=', '$delete_at', '$inspect', '$!=', '$to_i', '$attributes', '$document', '$sections', '$level', '$caption', '$captioned_title', '$numbered', '$<=', '$<', '$sectname', '$sectnum', '$convert_outline', '$title?', '$icon_uri', '$compact', '$media_uri', '$option?', '$append_boolean_attribute', '$style', '$items', '$blocks?', '$text?', '$chomp', '$safe', '$read_svg_contents', '$alt', '$image_uri', '$encode_attribute_value', '$append_link_constraint_attrs', '$highlight?', '$to_sym', '$format', '$*', '$count', '$start_with?', '$end_with?', '$list_marker_keyword', '$parent', '$warn', '$logger', '$context', '$error', '$new', '$columns', '$to_h', '$rows', '$colspan', '$rowspan', '$unshift', '$shift', '$split', '$pop', '$nil_or_empty?', '$type', '$catalog', '$get_root_document', '$xreftext', '$target', '$reftext', '$chop', '$sub', '$match', '$private', '$upcase', '$nested?', '$parent_document', '$to_s', '$handles?', '$send']);
37109
37285
  return (function($base, $parent_nesting) {
37110
37286
  var self = $module($base, 'Asciidoctor');
37111
37287
 
@@ -37114,7 +37290,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
37114
37290
  (function($base, $super, $parent_nesting) {
37115
37291
  var self = $klass($base, $super, 'Html5Converter');
37116
37292
 
37117
- var $nesting = [self].concat($parent_nesting), $Html5Converter_initialize$1, $Html5Converter_convert$2, $Html5Converter_convert_document$3, $Html5Converter_convert_embedded$6, $Html5Converter_convert_outline$8, $Html5Converter_convert_section$10, $Html5Converter_convert_admonition$11, $Html5Converter_convert_audio$12, $Html5Converter_convert_colist$13, $Html5Converter_convert_dlist$16, $Html5Converter_convert_example$23, $Html5Converter_convert_floating_title$24, $Html5Converter_convert_image$25, $Html5Converter_convert_listing$26, $Html5Converter_convert_literal$27, $Html5Converter_convert_stem$28, $Html5Converter_convert_olist$30, $Html5Converter_convert_open$32, $Html5Converter_convert_page_break$33, $Html5Converter_convert_paragraph$34, $Html5Converter_convert_preamble$35, $Html5Converter_convert_quote$36, $Html5Converter_convert_thematic_break$37, $Html5Converter_convert_sidebar$38, $Html5Converter_convert_table$39, $Html5Converter_convert_toc$44, $Html5Converter_convert_ulist$45, $Html5Converter_convert_verse$47, $Html5Converter_convert_video$48, $Html5Converter_convert_inline_anchor$49, $Html5Converter_convert_inline_break$50, $Html5Converter_convert_inline_button$51, $Html5Converter_convert_inline_callout$52, $Html5Converter_convert_inline_footnote$53, $Html5Converter_convert_inline_image$54, $Html5Converter_convert_inline_indexterm$56, $Html5Converter_convert_inline_kbd$57, $Html5Converter_convert_inline_menu$58, $Html5Converter_convert_inline_quoted$59, $Html5Converter_read_svg_contents$60, $Html5Converter_append_boolean_attribute$62, $Html5Converter_append_link_constraint_attrs$63, $Html5Converter_encode_attribute_value$64, $Html5Converter_generate_manname_section$65, $Html5Converter_get_root_document$66, $Html5Converter_method_missing$67, $Html5Converter_respond_to_missing$ques$68, $writer = nil;
37293
+ var $nesting = [self].concat($parent_nesting), $Html5Converter_initialize$1, $Html5Converter_convert$2, $Html5Converter_convert_document$3, $Html5Converter_convert_embedded$6, $Html5Converter_convert_outline$8, $Html5Converter_convert_section$10, $Html5Converter_convert_admonition$11, $Html5Converter_convert_audio$12, $Html5Converter_convert_colist$13, $Html5Converter_convert_dlist$16, $Html5Converter_convert_example$23, $Html5Converter_convert_floating_title$24, $Html5Converter_convert_image$25, $Html5Converter_convert_listing$26, $Html5Converter_convert_literal$27, $Html5Converter_convert_stem$28, $Html5Converter_convert_olist$30, $Html5Converter_convert_open$32, $Html5Converter_convert_page_break$33, $Html5Converter_convert_paragraph$34, $Html5Converter_convert_preamble$35, $Html5Converter_convert_quote$36, $Html5Converter_convert_thematic_break$37, $Html5Converter_convert_sidebar$38, $Html5Converter_convert_table$39, $Html5Converter_convert_toc$44, $Html5Converter_convert_ulist$45, $Html5Converter_convert_verse$47, $Html5Converter_convert_video$48, $Html5Converter_convert_inline_anchor$49, $Html5Converter_convert_inline_break$50, $Html5Converter_convert_inline_button$51, $Html5Converter_convert_inline_callout$52, $Html5Converter_convert_inline_footnote$53, $Html5Converter_convert_inline_image$54, $Html5Converter_convert_inline_indexterm$55, $Html5Converter_convert_inline_kbd$56, $Html5Converter_convert_inline_menu$57, $Html5Converter_convert_inline_quoted$58, $Html5Converter_read_svg_contents$59, $Html5Converter_append_boolean_attribute$61, $Html5Converter_append_link_constraint_attrs$62, $Html5Converter_encode_attribute_value$63, $Html5Converter_generate_manname_section$64, $Html5Converter_get_root_document$65, $Html5Converter_method_missing$66, $Html5Converter_respond_to_missing$ques$67, $writer = nil;
37118
37294
 
37119
37295
  self.$$prototype.void_element_slash = self.$$prototype.xml_mode = self.$$prototype.refs = self.$$prototype.resolving_xref = nil;
37120
37296
 
@@ -37951,7 +38127,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
37951
38127
  }, $Html5Converter_convert_floating_title$24.$$arity = 1);
37952
38128
 
37953
38129
  Opal.def(self, '$convert_image', $Html5Converter_convert_image$25 = function $$convert_image(node) {
37954
- var $a, $b, $c, self = this, target = nil, width_attr = nil, height_attr = nil, svg = nil, obj = nil, img = nil, fallback = nil, id_attr = nil, classes = nil, class_attr = nil, title_el = nil;
38130
+ var $a, $b, self = this, target = nil, width_attr = nil, height_attr = nil, img = nil, fallback = nil, id_attr = nil, classes = nil, class_attr = nil, title_el = nil;
37955
38131
 
37956
38132
 
37957
38133
  target = node.$attr("target");
@@ -37965,18 +38141,23 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
37965
38141
  } else {
37966
38142
  return ""
37967
38143
  }; return nil; })();
37968
- if ($truthy(($truthy($a = ($truthy($b = ($truthy($c = node['$attr?']("format", "svg")) ? $c : target['$include?'](".svg"))) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $b)) ? ($truthy($b = (svg = node['$option?']("inline"))) ? $b : (obj = node['$option?']("interactive"))) : $a))) {
37969
- if ($truthy(svg)) {
38144
+ if ($truthy(($truthy($a = ($truthy($b = node['$attr?']("format", "svg")) ? $b : target['$include?'](".svg"))) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $a))) {
38145
+ if ($truthy(node['$option?']("inline"))) {
37970
38146
  img = ($truthy($a = self.$read_svg_contents(node, target)) ? $a : "" + "<span class=\"alt\">" + (node.$alt()) + "</span>")
37971
- } else if ($truthy(obj)) {
38147
+ } else if ($truthy(node['$option?']("interactive"))) {
37972
38148
 
37973
38149
  fallback = (function() {if ($truthy(node['$attr?']("fallback"))) {
37974
38150
  return "" + "<img src=\"" + (node.$image_uri(node.$attr("fallback"))) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">"
37975
38151
  } else {
37976
38152
  return "" + "<span class=\"alt\">" + (node.$alt()) + "</span>"
37977
38153
  }; return nil; })();
37978
- img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (width_attr) + (height_attr) + ">" + (fallback) + "</object>";}};
37979
- img = ($truthy($a = img) ? $a : "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">");
38154
+ img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (width_attr) + (height_attr) + ">" + (fallback) + "</object>";
38155
+ } else {
38156
+ img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">"
38157
+ }
38158
+ } else {
38159
+ img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">"
38160
+ };
37980
38161
  if ($truthy(node['$attr?']("link"))) {
37981
38162
  img = "" + "<a class=\"image\" href=\"" + (node.$attr("link")) + "\"" + (self.$append_link_constraint_attrs(node).$join()) + ">" + (img) + "</a>"};
37982
38163
  id_attr = (function() {if ($truthy(node.$id())) {
@@ -38059,7 +38240,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38059
38240
 
38060
38241
  return syntax_hl.$format(node, lang, opts);
38061
38242
  } else {
38062
- return $rb_plus($rb_plus(pre_open, ($truthy($a = node.$content()) ? $a : "")), pre_close)
38243
+ return $rb_plus($rb_plus(pre_open, node.$content()), pre_close)
38063
38244
  }; return nil; })()) + "\n" + "</div>\n" + "</div>";
38064
38245
  }, $Html5Converter_convert_listing$26.$$arity = 1);
38065
38246
 
@@ -38191,7 +38372,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38191
38372
  if ((style = node.$style())['$==']("abstract")) {
38192
38373
  if ($truthy((($a = node.$parent()['$=='](node.$document())) ? node.$document().$doctype()['$==']("book") : node.$parent()['$=='](node.$document())))) {
38193
38374
 
38194
- self.$logger().$warn("abstract block cannot be used in a document without a title when doctype is book. Excluding block content.");
38375
+ self.$logger().$warn("abstract block cannot be used in a document without a doctitle when doctype is book. Excluding block content.");
38195
38376
  return "";
38196
38377
  } else {
38197
38378
 
@@ -38359,7 +38540,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38359
38540
  }, $Html5Converter_convert_sidebar$38.$$arity = 1);
38360
38541
 
38361
38542
  Opal.def(self, '$convert_table', $Html5Converter_convert_table$39 = function $$convert_table(node) {
38362
- var $a, $$40, $$41, self = this, result = nil, id_attribute = nil, frame = nil, classes = nil, stripes = nil, styles = nil, autowidth = nil, tablewidth = nil, role = nil, class_attribute = nil, style_attribute = nil, slash = nil;
38543
+ var $a, $$40, $$41, self = this, result = nil, id_attribute = nil, frame = nil, classes = nil, stripes = nil, style_attribute = nil, autowidth = nil, tablewidth = nil, role = nil, class_attribute = nil, slash = nil;
38363
38544
 
38364
38545
 
38365
38546
  result = [];
@@ -38373,24 +38554,19 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38373
38554
  classes = ["tableblock", "" + "frame-" + (frame), "" + "grid-" + (node.$attr("grid", "all", "table-grid"))];
38374
38555
  if ($truthy((stripes = node.$attr("stripes", nil, "table-stripes")))) {
38375
38556
  classes['$<<']("" + "stripes-" + (stripes))};
38376
- styles = [];
38557
+ style_attribute = "";
38377
38558
  if ($truthy(($truthy($a = (autowidth = node['$option?']("autowidth"))) ? node['$attr?']("width")['$!']() : $a))) {
38378
38559
  classes['$<<']("fit-content")
38379
38560
  } else if ((tablewidth = node.$attr("tablepcwidth"))['$=='](100)) {
38380
38561
  classes['$<<']("stretch")
38381
38562
  } else {
38382
- styles['$<<']("" + "width: " + (tablewidth) + "%;")
38563
+ style_attribute = "" + " style=\"width: " + (tablewidth) + "%;\""
38383
38564
  };
38384
38565
  if ($truthy(node['$attr?']("float"))) {
38385
38566
  classes['$<<'](node.$attr("float"))};
38386
38567
  if ($truthy((role = node.$role()))) {
38387
38568
  classes['$<<'](role)};
38388
38569
  class_attribute = "" + " class=\"" + (classes.$join(" ")) + "\"";
38389
- style_attribute = (function() {if ($truthy(styles['$empty?']())) {
38390
- return ""
38391
- } else {
38392
- return "" + " style=\"" + (styles.$join(" ")) + "\""
38393
- }; return nil; })();
38394
38570
  result['$<<']("" + "<table" + (id_attribute) + (class_attribute) + (style_attribute) + ">");
38395
38571
  if ($truthy(node['$title?']())) {
38396
38572
  result['$<<']("" + "<caption class=\"title\">" + (node.$captioned_title()) + "</caption>")};
@@ -38654,7 +38830,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38654
38830
  }, $Html5Converter_convert_verse$47.$$arity = 1);
38655
38831
 
38656
38832
  Opal.def(self, '$convert_video', $Html5Converter_convert_video$48 = function $$convert_video(node) {
38657
- var $a, $b, self = this, xml = nil, id_attribute = nil, classes = nil, class_attribute = nil, title_element = nil, width_attribute = nil, height_attribute = nil, $case = nil, asset_uri_scheme = nil, start_anchor = nil, delimiter = nil, autoplay_param = nil, loop_param = nil, muted_param = nil, rel_param_val = nil, start_param = nil, end_param = nil, has_loop_param = nil, mute_param = nil, controls_param = nil, fs_param = nil, fs_attribute = nil, modest_param = nil, theme_param = nil, hl_param = nil, target = nil, list = nil, list_param = nil, playlist = nil, poster_attribute = nil, val = nil, preload_attribute = nil, start_t = nil, end_t = nil, time_anchor = nil;
38833
+ var $a, $b, self = this, xml = nil, id_attribute = nil, classes = nil, class_attribute = nil, title_element = nil, width_attribute = nil, height_attribute = nil, $case = nil, asset_uri_scheme = nil, start_anchor = nil, delimiter = nil, target = nil, hash = nil, hash_param = nil, autoplay_param = nil, loop_param = nil, muted_param = nil, rel_param_val = nil, start_param = nil, end_param = nil, has_loop_param = nil, mute_param = nil, controls_param = nil, fs_param = nil, fs_attribute = nil, modest_param = nil, theme_param = nil, hl_param = nil, list = nil, list_param = nil, playlist = nil, poster_attribute = nil, val = nil, preload_attribute = nil, start_t = nil, end_t = nil, time_anchor = nil;
38658
38834
 
38659
38835
 
38660
38836
  xml = self.xml_mode;
@@ -38698,6 +38874,12 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38698
38874
  return ""
38699
38875
  }; return nil; })();
38700
38876
  delimiter = ["?"];
38877
+ $b = node.$attr("target").$split("/", 2), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (hash = ($a[1] == null ? nil : $a[1])), $b;
38878
+ hash_param = (function() {if ($truthy((hash = ($truthy($a = hash) ? $a : node.$attr("hash"))))) {
38879
+ return "" + (($truthy($a = delimiter.$pop()) ? $a : "&amp;")) + "h=" + (hash)
38880
+ } else {
38881
+ return ""
38882
+ }; return nil; })();
38701
38883
  autoplay_param = (function() {if ($truthy(node['$option?']("autoplay"))) {
38702
38884
  return "" + (($truthy($a = delimiter.$pop()) ? $a : "&amp;")) + "autoplay=1"
38703
38885
  } else {
@@ -38713,7 +38895,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38713
38895
  } else {
38714
38896
  return ""
38715
38897
  }; return nil; })();
38716
- return "" + "<div" + (id_attribute) + (class_attribute) + ">" + (title_element) + "\n" + "<div class=\"content\">\n" + "<iframe" + (width_attribute) + (height_attribute) + " src=\"" + (asset_uri_scheme) + "//player.vimeo.com/video/" + (node.$attr("target")) + (autoplay_param) + (loop_param) + (muted_param) + (start_anchor) + "\" frameborder=\"0\"" + ((function() {if ($truthy(node['$option?']("nofullscreen"))) {
38898
+ return "" + "<div" + (id_attribute) + (class_attribute) + ">" + (title_element) + "\n" + "<div class=\"content\">\n" + "<iframe" + (width_attribute) + (height_attribute) + " src=\"" + (asset_uri_scheme) + "//player.vimeo.com/video/" + (target) + (hash_param) + (autoplay_param) + (loop_param) + (muted_param) + (start_anchor) + "\" frameborder=\"0\"" + ((function() {if ($truthy(node['$option?']("nofullscreen"))) {
38717
38899
  return ""
38718
38900
  } else {
38719
38901
 
@@ -38790,7 +38972,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38790
38972
 
38791
38973
  $b = target.$split(",", 2), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (playlist = ($a[1] == null ? nil : $a[1])), $b;
38792
38974
  if ($truthy((playlist = ($truthy($a = playlist) ? $a : node.$attr("playlist"))))) {
38793
- list_param = "" + "&amp;playlist=" + (playlist)
38975
+ list_param = "" + "&amp;playlist=" + (target) + "," + (playlist)
38794
38976
  } else {
38795
38977
  list_param = (function() {if ($truthy(has_loop_param)) {
38796
38978
  return "" + "&amp;playlist=" + (target)
@@ -38966,87 +39148,85 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
38966
39148
  }, $Html5Converter_convert_inline_footnote$53.$$arity = 1);
38967
39149
 
38968
39150
  Opal.def(self, '$convert_inline_image', $Html5Converter_convert_inline_image$54 = function $$convert_inline_image(node) {
38969
- var $a, $b, $$55, $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;
38970
-
38971
-
38972
- if ($truthy((($a = (type = ($truthy($b = node.$type()) ? $b : "image"))['$==']("icon")) ? node.$document()['$attr?']("icons", "font") : (type = ($truthy($b = node.$type()) ? $b : "image"))['$==']("icon")))) {
38973
-
38974
- class_attr_val = "" + "fa fa-" + (node.$target());
38975
- $send($hash2(["size", "rotate", "flip"], {"size": "fa-", "rotate": "fa-rotate-", "flip": "fa-flip-"}), 'each', [], ($$55 = function(key, prefix){var self = $$55.$$s || this;
38976
-
38977
-
38978
-
38979
- if (key == null) {
38980
- key = nil;
38981
- };
39151
+ var $a, $b, self = this, target = nil, type = nil, icons = nil, i_class_attr_val = nil, attrs = nil, img = nil, fallback = nil, class_attr_val = nil, role = nil;
39152
+
39153
+
39154
+ target = node.$target();
39155
+ if ((type = ($truthy($a = node.$type()) ? $a : "image"))['$==']("icon")) {
39156
+ if ((icons = node.$document().$attr("icons"))['$==']("font")) {
39157
+
39158
+ i_class_attr_val = "" + "fa fa-" + (target);
39159
+ if ($truthy(node['$attr?']("size"))) {
39160
+ i_class_attr_val = "" + (i_class_attr_val) + " fa-" + (node.$attr("size"))};
39161
+ if ($truthy(node['$attr?']("flip"))) {
39162
+ i_class_attr_val = "" + (i_class_attr_val) + " fa-flip-" + (node.$attr("flip"))
39163
+ } else if ($truthy(node['$attr?']("rotate"))) {
39164
+ i_class_attr_val = "" + (i_class_attr_val) + " fa-rotate-" + (node.$attr("rotate"))};
39165
+ attrs = (function() {if ($truthy(node['$attr?']("title"))) {
39166
+ return "" + " title=\"" + (node.$attr("title")) + "\""
39167
+ } else {
39168
+ return ""
39169
+ }; return nil; })();
39170
+ img = "" + "<i class=\"" + (i_class_attr_val) + "\"" + (attrs) + "></i>";
39171
+ } else if ($truthy(icons)) {
38982
39172
 
38983
- if (prefix == null) {
38984
- prefix = nil;
38985
- };
38986
- if ($truthy(node['$attr?'](key))) {
38987
- return (class_attr_val = "" + (class_attr_val) + " " + (prefix) + (node.$attr(key)))
39173
+ attrs = (function() {if ($truthy(node['$attr?']("width"))) {
39174
+ return "" + " width=\"" + (node.$attr("width")) + "\""
38988
39175
  } else {
38989
- return nil
38990
- };}, $$55.$$s = self, $$55.$$arity = 2, $$55));
38991
- title_attr = (function() {if ($truthy(node['$attr?']("title"))) {
38992
- return "" + " title=\"" + (node.$attr("title")) + "\""
39176
+ return ""
39177
+ }; return nil; })();
39178
+ if ($truthy(node['$attr?']("height"))) {
39179
+ attrs = "" + (attrs) + " height=\"" + (node.$attr("height")) + "\""};
39180
+ if ($truthy(node['$attr?']("title"))) {
39181
+ attrs = "" + (attrs) + " title=\"" + (node.$attr("title")) + "\""};
39182
+ img = "" + "<img src=\"" + (node.$icon_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">";
38993
39183
  } else {
38994
- return ""
38995
- }; return nil; })();
38996
- img = "" + "<i class=\"" + (class_attr_val) + "\"" + (title_attr) + "></i>";
38997
- } else if ($truthy((($a = type['$==']("icon")) ? node.$document()['$attr?']("icons")['$!']() : type['$==']("icon")))) {
38998
- img = "" + "[" + (node.$alt()) + "]"
39184
+ img = "" + "[" + (node.$alt()) + "&#93;"
39185
+ }
38999
39186
  } else {
39000
39187
 
39001
- target = node.$target();
39002
- attrs = [];
39003
- if ($truthy(node['$attr?']("width"))) {
39004
- attrs['$<<']("" + " width=\"" + (node.$attr("width")) + "\"")};
39005
- if ($truthy(node['$attr?']("height"))) {
39006
- attrs['$<<']("" + " height=\"" + (node.$attr("height")) + "\"")};
39007
- if ($truthy(node['$attr?']("title"))) {
39008
- attrs['$<<']("" + " title=\"" + (node.$attr("title")) + "\"")};
39009
- attrs = (function() {if ($truthy(attrs['$empty?']())) {
39010
- return ""
39188
+ attrs = (function() {if ($truthy(node['$attr?']("width"))) {
39189
+ return "" + " width=\"" + (node.$attr("width")) + "\""
39011
39190
  } else {
39012
- return attrs.$join()
39191
+ return ""
39013
39192
  }; return nil; })();
39014
- if ($truthy(($truthy($a = ($truthy($b = ($truthy($c = type['$!=']("icon")) ? ($truthy($d = node['$attr?']("format", "svg")) ? $d : target['$include?'](".svg")) : $c)) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $b)) ? ($truthy($b = (svg = node['$option?']("inline"))) ? $b : (obj = node['$option?']("interactive"))) : $a))) {
39015
- if ($truthy(svg)) {
39193
+ if ($truthy(node['$attr?']("height"))) {
39194
+ attrs = "" + (attrs) + " height=\"" + (node.$attr("height")) + "\""};
39195
+ if ($truthy(node['$attr?']("title"))) {
39196
+ attrs = "" + (attrs) + " title=\"" + (node.$attr("title")) + "\""};
39197
+ if ($truthy(($truthy($a = ($truthy($b = node['$attr?']("format", "svg")) ? $b : target['$include?'](".svg"))) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $a))) {
39198
+ if ($truthy(node['$option?']("inline"))) {
39016
39199
  img = ($truthy($a = self.$read_svg_contents(node, target)) ? $a : "" + "<span class=\"alt\">" + (node.$alt()) + "</span>")
39017
- } else if ($truthy(obj)) {
39200
+ } else if ($truthy(node['$option?']("interactive"))) {
39018
39201
 
39019
39202
  fallback = (function() {if ($truthy(node['$attr?']("fallback"))) {
39020
39203
  return "" + "<img src=\"" + (node.$image_uri(node.$attr("fallback"))) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">"
39021
39204
  } else {
39022
39205
  return "" + "<span class=\"alt\">" + (node.$alt()) + "</span>"
39023
39206
  }; return nil; })();
39024
- img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (attrs) + ">" + (fallback) + "</object>";}};
39025
- img = ($truthy($a = img) ? $a : "" + "<img src=\"" + ((function() {if (type['$==']("icon")) {
39026
-
39027
- return node.$icon_uri(target);
39207
+ img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (attrs) + ">" + (fallback) + "</object>";
39208
+ } else {
39209
+ img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">"
39210
+ }
39028
39211
  } else {
39029
-
39030
- return node.$image_uri(target);
39031
- }; return nil; })()) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">");
39212
+ img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">"
39213
+ };
39032
39214
  };
39033
39215
  if ($truthy(node['$attr?']("link"))) {
39034
39216
  img = "" + "<a class=\"image\" href=\"" + (node.$attr("link")) + "\"" + (self.$append_link_constraint_attrs(node).$join()) + ">" + (img) + "</a>"};
39217
+ class_attr_val = type;
39035
39218
  if ($truthy((role = node.$role()))) {
39036
- if ($truthy(node['$attr?']("float"))) {
39037
- class_attr_val = "" + (type) + " " + (node.$attr("float")) + " " + (role)
39219
+ class_attr_val = (function() {if ($truthy(node['$attr?']("float"))) {
39220
+ return "" + (class_attr_val) + " " + (node.$attr("float")) + " " + (role)
39038
39221
  } else {
39039
- class_attr_val = "" + (type) + " " + (role)
39040
- }
39222
+ return "" + (class_attr_val) + " " + (role)
39223
+ }; return nil; })()
39041
39224
  } else if ($truthy(node['$attr?']("float"))) {
39042
- class_attr_val = "" + (type) + " " + (node.$attr("float"))
39043
- } else {
39044
- class_attr_val = type
39045
- };
39225
+ class_attr_val = "" + (class_attr_val) + " " + (node.$attr("float"))};
39046
39226
  return "" + "<span class=\"" + (class_attr_val) + "\">" + (img) + "</span>";
39047
39227
  }, $Html5Converter_convert_inline_image$54.$$arity = 1);
39048
39228
 
39049
- Opal.def(self, '$convert_inline_indexterm', $Html5Converter_convert_inline_indexterm$56 = function $$convert_inline_indexterm(node) {
39229
+ Opal.def(self, '$convert_inline_indexterm', $Html5Converter_convert_inline_indexterm$55 = function $$convert_inline_indexterm(node) {
39050
39230
  var self = this;
39051
39231
 
39052
39232
  if (node.$type()['$==']("visible")) {
@@ -39054,9 +39234,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39054
39234
  } else {
39055
39235
  return ""
39056
39236
  }
39057
- }, $Html5Converter_convert_inline_indexterm$56.$$arity = 1);
39237
+ }, $Html5Converter_convert_inline_indexterm$55.$$arity = 1);
39058
39238
 
39059
- Opal.def(self, '$convert_inline_kbd', $Html5Converter_convert_inline_kbd$57 = function $$convert_inline_kbd(node) {
39239
+ Opal.def(self, '$convert_inline_kbd', $Html5Converter_convert_inline_kbd$56 = function $$convert_inline_kbd(node) {
39060
39240
  var self = this, keys = nil;
39061
39241
 
39062
39242
  if ((keys = node.$attr("keys")).$size()['$=='](1)) {
@@ -39064,9 +39244,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39064
39244
  } else {
39065
39245
  return "" + "<span class=\"keyseq\"><kbd>" + (keys.$join("</kbd>+<kbd>")) + "</kbd></span>"
39066
39246
  }
39067
- }, $Html5Converter_convert_inline_kbd$57.$$arity = 1);
39247
+ }, $Html5Converter_convert_inline_kbd$56.$$arity = 1);
39068
39248
 
39069
- Opal.def(self, '$convert_inline_menu', $Html5Converter_convert_inline_menu$58 = function $$convert_inline_menu(node) {
39249
+ Opal.def(self, '$convert_inline_menu', $Html5Converter_convert_inline_menu$57 = function $$convert_inline_menu(node) {
39070
39250
  var self = this, caret = nil, submenu_joiner = nil, menu = nil, submenus = nil, menuitem = nil;
39071
39251
 
39072
39252
 
@@ -39086,9 +39266,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39086
39266
  } else {
39087
39267
  return "" + "<span class=\"menuseq\"><b class=\"menu\">" + (menu) + "</b>" + (caret) + "<b class=\"submenu\">" + (submenus.$join(submenu_joiner)) + "</b>" + (caret) + "<b class=\"menuitem\">" + (node.$attr("menuitem")) + "</b></span>"
39088
39268
  };
39089
- }, $Html5Converter_convert_inline_menu$58.$$arity = 1);
39269
+ }, $Html5Converter_convert_inline_menu$57.$$arity = 1);
39090
39270
 
39091
- Opal.def(self, '$convert_inline_quoted', $Html5Converter_convert_inline_quoted$59 = function $$convert_inline_quoted(node) {
39271
+ Opal.def(self, '$convert_inline_quoted', $Html5Converter_convert_inline_quoted$58 = function $$convert_inline_quoted(node) {
39092
39272
  var $a, $b, self = this, open = nil, close = nil, tag = nil, class_attr = nil;
39093
39273
 
39094
39274
 
@@ -39114,10 +39294,10 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39114
39294
  } else {
39115
39295
  return "" + (open) + (node.$text()) + (close)
39116
39296
  };
39117
- }, $Html5Converter_convert_inline_quoted$59.$$arity = 1);
39297
+ }, $Html5Converter_convert_inline_quoted$58.$$arity = 1);
39118
39298
 
39119
- Opal.def(self, '$read_svg_contents', $Html5Converter_read_svg_contents$60 = function $$read_svg_contents(node, target) {
39120
- var $$61, self = this, svg = nil, old_start_tag = nil, new_start_tag = nil, start_tag_match = nil;
39299
+ Opal.def(self, '$read_svg_contents', $Html5Converter_read_svg_contents$59 = function $$read_svg_contents(node, target) {
39300
+ var $$60, self = this, svg = nil, old_start_tag = nil, new_start_tag = nil, start_tag_match = nil;
39121
39301
 
39122
39302
 
39123
39303
  if ($truthy((svg = node.$read_contents(target, $hash2(["start", "normalize", "label", "warn_if_empty"], {"start": node.$document().$attr("imagesdir"), "normalize": true, "label": "SVG", "warn_if_empty": true}))))) {
@@ -39129,7 +39309,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39129
39309
  svg = svg.$sub($$($nesting, 'SvgPreambleRx'), "")
39130
39310
  };
39131
39311
  old_start_tag = (new_start_tag = (start_tag_match = nil));
39132
- $send(["width", "height"], 'each', [], ($$61 = function(dim){var self = $$61.$$s || this, $a, $b;
39312
+ $send(["width", "height"], 'each', [], ($$60 = function(dim){var self = $$60.$$s || this, $a, $b;
39133
39313
 
39134
39314
 
39135
39315
 
@@ -39147,14 +39327,14 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39147
39327
  return nil;};
39148
39328
  new_start_tag = (old_start_tag = start_tag_match['$[]'](0)).$gsub($$($nesting, 'DimensionAttributeRx'), "");
39149
39329
  };
39150
- return (new_start_tag = "" + (new_start_tag.$chop()) + " " + (dim) + "=\"" + (node.$attr(dim)) + "\">");}, $$61.$$s = self, $$61.$$arity = 1, $$61));
39330
+ return (new_start_tag = "" + (new_start_tag.$chop()) + " " + (dim) + "=\"" + (node.$attr(dim)) + "\">");}, $$60.$$s = self, $$60.$$arity = 1, $$60));
39151
39331
  if ($truthy(new_start_tag)) {
39152
39332
  svg = "" + (new_start_tag) + (svg['$[]'](Opal.Range.$new(old_start_tag.$length(), -1, false)))};};
39153
39333
  return svg;
39154
- }, $Html5Converter_read_svg_contents$60.$$arity = 2);
39334
+ }, $Html5Converter_read_svg_contents$59.$$arity = 2);
39155
39335
  self.$private();
39156
39336
 
39157
- Opal.def(self, '$append_boolean_attribute', $Html5Converter_append_boolean_attribute$62 = function $$append_boolean_attribute(name, xml) {
39337
+ Opal.def(self, '$append_boolean_attribute', $Html5Converter_append_boolean_attribute$61 = function $$append_boolean_attribute(name, xml) {
39158
39338
  var self = this;
39159
39339
 
39160
39340
  if ($truthy(xml)) {
@@ -39162,9 +39342,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39162
39342
  } else {
39163
39343
  return "" + " " + (name)
39164
39344
  }
39165
- }, $Html5Converter_append_boolean_attribute$62.$$arity = 2);
39345
+ }, $Html5Converter_append_boolean_attribute$61.$$arity = 2);
39166
39346
 
39167
- Opal.def(self, '$append_link_constraint_attrs', $Html5Converter_append_link_constraint_attrs$63 = function $$append_link_constraint_attrs(node, attrs) {
39347
+ Opal.def(self, '$append_link_constraint_attrs', $Html5Converter_append_link_constraint_attrs$62 = function $$append_link_constraint_attrs(node, attrs) {
39168
39348
  var $a, self = this, rel = nil, window = nil;
39169
39349
 
39170
39350
 
@@ -39186,9 +39366,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39186
39366
  } else if ($truthy(rel)) {
39187
39367
  attrs['$<<']("" + " rel=\"" + (rel) + "\"")};
39188
39368
  return attrs;
39189
- }, $Html5Converter_append_link_constraint_attrs$63.$$arity = -2);
39369
+ }, $Html5Converter_append_link_constraint_attrs$62.$$arity = -2);
39190
39370
 
39191
- Opal.def(self, '$encode_attribute_value', $Html5Converter_encode_attribute_value$64 = function $$encode_attribute_value(val) {
39371
+ Opal.def(self, '$encode_attribute_value', $Html5Converter_encode_attribute_value$63 = function $$encode_attribute_value(val) {
39192
39372
  var self = this;
39193
39373
 
39194
39374
  if ($truthy(val['$include?']("\""))) {
@@ -39197,9 +39377,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39197
39377
  } else {
39198
39378
  return val
39199
39379
  }
39200
- }, $Html5Converter_encode_attribute_value$64.$$arity = 1);
39380
+ }, $Html5Converter_encode_attribute_value$63.$$arity = 1);
39201
39381
 
39202
- Opal.def(self, '$generate_manname_section', $Html5Converter_generate_manname_section$65 = function $$generate_manname_section(node) {
39382
+ Opal.def(self, '$generate_manname_section', $Html5Converter_generate_manname_section$64 = function $$generate_manname_section(node) {
39203
39383
  var $a, self = this, manname_title = nil, next_section = nil, next_section_title = nil, manname_id_attr = nil, manname_id = nil;
39204
39384
 
39205
39385
 
@@ -39212,9 +39392,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39212
39392
  return ""
39213
39393
  }; return nil; })();
39214
39394
  return "" + "<h2" + (manname_id_attr) + ">" + (manname_title) + "</h2>\n" + "<div class=\"sectionbody\">\n" + "<p>" + (node.$attr("mannames").$join(", ")) + " - " + (node.$attr("manpurpose")) + "</p>\n" + "</div>";
39215
- }, $Html5Converter_generate_manname_section$65.$$arity = 1);
39395
+ }, $Html5Converter_generate_manname_section$64.$$arity = 1);
39216
39396
 
39217
- Opal.def(self, '$get_root_document', $Html5Converter_get_root_document$66 = function $$get_root_document(node) {
39397
+ Opal.def(self, '$get_root_document', $Html5Converter_get_root_document$65 = function $$get_root_document(node) {
39218
39398
  var $a, self = this;
39219
39399
 
39220
39400
 
@@ -39222,12 +39402,12 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39222
39402
  node = node.$parent_document()
39223
39403
  };
39224
39404
  return node;
39225
- }, $Html5Converter_get_root_document$66.$$arity = 1);
39405
+ }, $Html5Converter_get_root_document$65.$$arity = 1);
39226
39406
 
39227
- Opal.def(self, '$method_missing', $Html5Converter_method_missing$67 = function $$method_missing(id, $a) {
39228
- var $post_args, args, $b, $iter = $Html5Converter_method_missing$67.$$p, $yield = $iter || nil, self = this, name = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
39407
+ Opal.def(self, '$method_missing', $Html5Converter_method_missing$66 = function $$method_missing(id, $a) {
39408
+ var $post_args, args, $b, $iter = $Html5Converter_method_missing$66.$$p, $yield = $iter || nil, self = this, name = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
39229
39409
 
39230
- if ($iter) $Html5Converter_method_missing$67.$$p = null;
39410
+ if ($iter) $Html5Converter_method_missing$66.$$p = null;
39231
39411
  // Prepare super implicit arguments
39232
39412
  for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
39233
39413
  $zuper[$zuper_i] = arguments[$zuper_i];
@@ -39241,10 +39421,10 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39241
39421
 
39242
39422
  return $send(self, 'send', ["" + "convert_" + (name)].concat(Opal.to_a(args)));
39243
39423
  } else {
39244
- return $send(self, Opal.find_super_dispatcher(self, 'method_missing', $Html5Converter_method_missing$67, false), $zuper, $iter)
39424
+ return $send(self, Opal.find_super_dispatcher(self, 'method_missing', $Html5Converter_method_missing$66, false), $zuper, $iter)
39245
39425
  };
39246
- }, $Html5Converter_method_missing$67.$$arity = -2);
39247
- return (Opal.def(self, '$respond_to_missing?', $Html5Converter_respond_to_missing$ques$68 = function(id, $a) {
39426
+ }, $Html5Converter_method_missing$66.$$arity = -2);
39427
+ return (Opal.def(self, '$respond_to_missing?', $Html5Converter_respond_to_missing$ques$67 = function(id, $a) {
39248
39428
  var $post_args, options, $b, self = this, name = nil;
39249
39429
 
39250
39430
 
@@ -39253,7 +39433,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
39253
39433
 
39254
39434
  options = $post_args;;
39255
39435
  return ($truthy($b = (name = id.$to_s())['$start_with?']("convert_")['$!']()) ? self['$handles?'](name) : $b);
39256
- }, $Html5Converter_respond_to_missing$ques$68.$$arity = -2), nil) && 'respond_to_missing?';
39436
+ }, $Html5Converter_respond_to_missing$ques$67.$$arity = -2), nil) && 'respond_to_missing?';
39257
39437
  })($$($nesting, 'Converter'), $$$($$($nesting, 'Converter'), 'Base'), $nesting)
39258
39438
  })($nesting[0], $nesting)
39259
39439
  };
@@ -39274,7 +39454,7 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
39274
39454
  }
39275
39455
  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, $hash = Opal.hash;
39276
39456
 
39277
- Opal.add_stubs(['$==', '$[]=', '$config', '$-', '$const_defined?', '$singleton_class?', '$include', '$const_get', '$extend', '$attr_reader', '$merge', '$class', '$update', '$raise', '$document', '$doctype', '$[]', '$+', '$level', '$delete', '$>', '$casecmp', '$new', '$title=', '$sectname=', '$special=', '$fetch', '$numbered=', '$!', '$key?', '$attr?', '$special', '$numbered', '$generate_id', '$title', '$id=', '$update_attributes', '$tr', '$basename', '$create_block', '$assign_caption', '$===', '$parse_blocks', '$empty?', '$include?', '$sub_attributes', '$parse', '$each', '$define_method', '$unshift', '$shift', '$send', '$size', '$binding', '$receiver', '$define_singleton_method', '$instance_exec', '$to_proc', '$call', '$option', '$flatten', '$respond_to?', '$to_s', '$partition', '$to_i', '$<<', '$compact', '$inspect', '$attr_accessor', '$to_set', '$match?', '$resolve_regexp', '$method', '$register', '$values', '$groups', '$arity', '$activate', '$add_document_processor', '$any?', '$select', '$add_syntax_processor', '$to_sym', '$instance_variable_get', '$kind', '$private', '$join', '$map', '$split', '$capitalize', '$instance_variable_set', '$resolve_args', '$enable_dsl', '$singleton_class', '$process_block_given?', '$source_location', '$freeze', '$resolve_class', '$<', '$update_config', '$as_symbol', '$name', '$name=', '$pop', '$-@', '$next_auto_id', '$generate_name']);
39457
+ Opal.add_stubs(['$==', '$[]=', '$config', '$-', '$const_defined?', '$singleton_class?', '$include', '$const_get', '$extend', '$attr_reader', '$merge', '$class', '$update', '$raise', '$document', '$doctype', '$[]', '$+', '$level', '$delete', '$>', '$casecmp', '$new', '$title=', '$sectname=', '$special=', '$fetch', '$numbered=', '$!', '$key?', '$attr?', '$special', '$numbered', '$generate_id', '$title', '$id=', '$update_attributes', '$tr', '$basename', '$create_block', '$assign_caption', '$===', '$parse_blocks', '$empty?', '$include?', '$sub_attributes', '$parse', '$each', '$define_method', '$unshift', '$shift', '$send', '$size', '$binding', '$receiver', '$define_singleton_method', '$instance_exec', '$to_proc', '$call', '$option', '$flatten', '$respond_to?', '$to_s', '$partition', '$to_i', '$<<', '$compact', '$inspect', '$attr_accessor', '$to_set', '$match?', '$resolve_regexp', '$method', '$register', '$reset', '$values', '$groups', '$arity', '$activate', '$add_document_processor', '$any?', '$select', '$add_syntax_processor', '$to_sym', '$instance_variable_get', '$kind', '$private', '$join', '$map', '$split', '$capitalize', '$instance_variable_set', '$resolve_args', '$enable_dsl', '$singleton_class', '$process_block_given?', '$source_location', '$freeze', '$resolve_class', '$<', '$update_config', '$as_symbol', '$name', '$name=', '$pop', '$-@', '$next_auto_id', '$generate_name', '$each_with_object']);
39278
39458
 
39279
39459
  if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
39280
39460
  } else {
@@ -40212,9 +40392,9 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40212
40392
  (function($base, $super, $parent_nesting) {
40213
40393
  var self = $klass($base, $super, 'Registry');
40214
40394
 
40215
- var $nesting = [self].concat($parent_nesting), $Registry_initialize$53, $Registry_activate$54, $Registry_preprocessor$56, $Registry_preprocessors$ques$57, $Registry_preprocessors$58, $Registry_tree_processor$59, $Registry_tree_processors$ques$60, $Registry_tree_processors$61, $Registry_postprocessor$62, $Registry_postprocessors$ques$63, $Registry_postprocessors$64, $Registry_include_processor$65, $Registry_include_processors$ques$66, $Registry_include_processors$67, $Registry_docinfo_processor$68, $Registry_docinfo_processors$ques$69, $Registry_docinfo_processors$71, $Registry_block$73, $Registry_blocks$ques$74, $Registry_registered_for_block$ques$75, $Registry_find_block_extension$76, $Registry_block_macro$77, $Registry_block_macros$ques$78, $Registry_registered_for_block_macro$ques$79, $Registry_find_block_macro_extension$80, $Registry_inline_macro$81, $Registry_inline_macros$ques$82, $Registry_registered_for_inline_macro$ques$83, $Registry_find_inline_macro_extension$84, $Registry_inline_macros$85, $Registry_prefer$86, $Registry_add_document_processor$87, $Registry_add_syntax_processor$89, $Registry_resolve_args$91, $Registry_as_symbol$92;
40395
+ var $nesting = [self].concat($parent_nesting), $Registry_initialize$53, $Registry_activate$54, $Registry_preprocessor$56, $Registry_preprocessors$ques$57, $Registry_preprocessors$58, $Registry_tree_processor$59, $Registry_tree_processors$ques$60, $Registry_tree_processors$61, $Registry_postprocessor$62, $Registry_postprocessors$ques$63, $Registry_postprocessors$64, $Registry_include_processor$65, $Registry_include_processors$ques$66, $Registry_include_processors$67, $Registry_docinfo_processor$68, $Registry_docinfo_processors$ques$69, $Registry_docinfo_processors$71, $Registry_block$73, $Registry_blocks$ques$74, $Registry_registered_for_block$ques$75, $Registry_find_block_extension$76, $Registry_block_macro$77, $Registry_block_macros$ques$78, $Registry_registered_for_block_macro$ques$79, $Registry_find_block_macro_extension$80, $Registry_inline_macro$81, $Registry_inline_macros$ques$82, $Registry_registered_for_inline_macro$ques$83, $Registry_find_inline_macro_extension$84, $Registry_inline_macros$85, $Registry_prefer$86, $Registry_add_document_processor$87, $Registry_add_syntax_processor$89, $Registry_reset$91, $Registry_resolve_args$92, $Registry_as_symbol$93;
40216
40396
 
40217
- self.$$prototype.groups = self.$$prototype.preprocessor_extensions = self.$$prototype.tree_processor_extensions = self.$$prototype.postprocessor_extensions = self.$$prototype.include_processor_extensions = self.$$prototype.docinfo_processor_extensions = self.$$prototype.block_extensions = self.$$prototype.block_macro_extensions = self.$$prototype.inline_macro_extensions = nil;
40397
+ self.$$prototype.document = self.$$prototype.groups = self.$$prototype.preprocessor_extensions = self.$$prototype.tree_processor_extensions = self.$$prototype.postprocessor_extensions = self.$$prototype.include_processor_extensions = self.$$prototype.docinfo_processor_extensions = self.$$prototype.block_extensions = self.$$prototype.block_macro_extensions = self.$$prototype.inline_macro_extensions = nil;
40218
40398
 
40219
40399
  self.$attr_reader("document");
40220
40400
  self.$attr_reader("groups");
@@ -40228,6 +40408,7 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40228
40408
  groups = $hash2([], {});
40229
40409
  };
40230
40410
  self.groups = groups;
40411
+ self.$reset();
40231
40412
  self.preprocessor_extensions = (self.tree_processor_extensions = (self.postprocessor_extensions = (self.include_processor_extensions = (self.docinfo_processor_extensions = (self.block_extensions = (self.block_macro_extensions = (self.inline_macro_extensions = nil)))))));
40232
40413
  return (self.document = nil);
40233
40414
  }, $Registry_initialize$53.$$arity = -1);
@@ -40236,6 +40417,8 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40236
40417
  var $$55, self = this, ext_groups = nil;
40237
40418
 
40238
40419
 
40420
+ if ($truthy(self.document)) {
40421
+ self.$reset()};
40239
40422
  self.document = document;
40240
40423
  if ($truthy((ext_groups = $rb_plus($$($nesting, 'Extensions').$groups().$values(), self.groups.$values()))['$empty?']())) {
40241
40424
  } else {
@@ -40606,7 +40789,7 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40606
40789
  };
40607
40790
  if ($truthy(processor['$process_block_given?']())) {
40608
40791
  } else {
40609
- self.$raise($$$('::', 'ArgumentError'), "" + "No block specified to process " + (kind_name) + " extension at " + (block.$source_location()))
40792
+ self.$raise($$$('::', 'NoMethodError'), "" + "No block specified to process " + (kind_name) + " extension at " + (block.$source_location().$join(":")))
40610
40793
  };
40611
40794
  processor.$freeze();
40612
40795
  extension = $$($nesting, 'ProcessorExtension').$new(kind, processor);
@@ -40676,11 +40859,11 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40676
40859
  };
40677
40860
  if ($truthy((name = self.$as_symbol(processor.$name())))) {
40678
40861
  } else {
40679
- self.$raise($$$('::', 'ArgumentError'), "" + "No name specified for " + (kind_name) + " extension at " + (block.$source_location()))
40862
+ self.$raise($$$('::', 'ArgumentError'), "" + "No name specified for " + (kind_name) + " extension at " + (block.$source_location().$join(":")))
40680
40863
  };
40681
40864
  if ($truthy(processor['$process_block_given?']())) {
40682
40865
  } else {
40683
- self.$raise($$$('::', 'NoMethodError'), "" + "No block specified to process " + (kind_name) + " extension at " + (block.$source_location()))
40866
+ self.$raise($$$('::', 'NoMethodError'), "" + "No block specified to process " + (kind_name) + " extension at " + (block.$source_location().$join(":")))
40684
40867
  };
40685
40868
  processor.$freeze();
40686
40869
 
@@ -40733,7 +40916,15 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40733
40916
  };
40734
40917
  }, $Registry_add_syntax_processor$89.$$arity = 2);
40735
40918
 
40736
- Opal.def(self, '$resolve_args', $Registry_resolve_args$91 = function $$resolve_args(args, expect) {
40919
+ Opal.def(self, '$reset', $Registry_reset$91 = function $$reset() {
40920
+ var self = this;
40921
+
40922
+
40923
+ self.preprocessor_extensions = (self.tree_processor_extensions = (self.postprocessor_extensions = (self.include_processor_extensions = (self.docinfo_processor_extensions = (self.block_extensions = (self.block_macro_extensions = (self.inline_macro_extensions = nil)))))));
40924
+ return (self.document = nil);
40925
+ }, $Registry_reset$91.$$arity = 0);
40926
+
40927
+ Opal.def(self, '$resolve_args', $Registry_resolve_args$92 = function $$resolve_args(args, expect) {
40737
40928
  var self = this, opts = nil, missing = nil;
40738
40929
 
40739
40930
 
@@ -40750,8 +40941,8 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40750
40941
  args.$pop(missing['$-@']())};
40751
40942
  args['$<<'](opts);
40752
40943
  return args;
40753
- }, $Registry_resolve_args$91.$$arity = 2);
40754
- return (Opal.def(self, '$as_symbol', $Registry_as_symbol$92 = function $$as_symbol(name) {
40944
+ }, $Registry_resolve_args$92.$$arity = 2);
40945
+ return (Opal.def(self, '$as_symbol', $Registry_as_symbol$93 = function $$as_symbol(name) {
40755
40946
  var self = this;
40756
40947
 
40757
40948
  if ($truthy(name)) {
@@ -40759,42 +40950,42 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40759
40950
  } else {
40760
40951
  return nil
40761
40952
  }
40762
- }, $Registry_as_symbol$92.$$arity = 1), nil) && 'as_symbol';
40953
+ }, $Registry_as_symbol$93.$$arity = 1), nil) && 'as_symbol';
40763
40954
  })($nesting[0], null, $nesting);
40764
40955
  (function(self, $parent_nesting) {
40765
- var $nesting = [self].concat($parent_nesting), $generate_name$93, $next_auto_id$94, $groups$95, $create$96, $register$97, $unregister_all$98, $unregister$99;
40956
+ var $nesting = [self].concat($parent_nesting), $generate_name$94, $next_auto_id$95, $groups$96, $create$97, $register$98, $unregister_all$99, $unregister$100;
40766
40957
 
40767
40958
 
40768
40959
 
40769
- Opal.def(self, '$generate_name', $generate_name$93 = function $$generate_name() {
40960
+ Opal.def(self, '$generate_name', $generate_name$94 = function $$generate_name() {
40770
40961
  var self = this;
40771
40962
 
40772
40963
  return "" + "extgrp" + (self.$next_auto_id())
40773
- }, $generate_name$93.$$arity = 0);
40964
+ }, $generate_name$94.$$arity = 0);
40774
40965
 
40775
- Opal.def(self, '$next_auto_id', $next_auto_id$94 = function $$next_auto_id() {
40966
+ Opal.def(self, '$next_auto_id', $next_auto_id$95 = function $$next_auto_id() {
40776
40967
  var $a, self = this;
40777
40968
  if (self.auto_id == null) self.auto_id = nil;
40778
40969
 
40779
40970
 
40780
40971
  self.auto_id = ($truthy($a = self.auto_id) ? $a : -1);
40781
40972
  return (self.auto_id = $rb_plus(self.auto_id, 1));
40782
- }, $next_auto_id$94.$$arity = 0);
40973
+ }, $next_auto_id$95.$$arity = 0);
40783
40974
 
40784
- Opal.def(self, '$groups', $groups$95 = function $$groups() {
40975
+ Opal.def(self, '$groups', $groups$96 = function $$groups() {
40785
40976
  var $a, self = this;
40786
40977
  if (self.groups == null) self.groups = nil;
40787
40978
 
40788
40979
  return (self.groups = ($truthy($a = self.groups) ? $a : $hash2([], {})))
40789
- }, $groups$95.$$arity = 0);
40980
+ }, $groups$96.$$arity = 0);
40790
40981
 
40791
- Opal.def(self, '$create', $create$96 = function $$create(name) {
40792
- var $iter = $create$96.$$p, block = $iter || nil, $a, self = this;
40982
+ Opal.def(self, '$create', $create$97 = function $$create(name) {
40983
+ var $iter = $create$97.$$p, block = $iter || nil, $a, self = this;
40793
40984
 
40794
- if ($iter) $create$96.$$p = null;
40985
+ if ($iter) $create$97.$$p = null;
40795
40986
 
40796
40987
 
40797
- if ($iter) $create$96.$$p = null;;
40988
+ if ($iter) $create$97.$$p = null;;
40798
40989
 
40799
40990
  if (name == null) {
40800
40991
  name = nil;
@@ -40804,15 +40995,15 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40804
40995
  } else {
40805
40996
  return $$($nesting, 'Registry').$new()
40806
40997
  };
40807
- }, $create$96.$$arity = -1);
40998
+ }, $create$97.$$arity = -1);
40808
40999
 
40809
- Opal.def(self, '$register', $register$97 = function $$register($a) {
40810
- var $iter = $register$97.$$p, block = $iter || nil, $post_args, args, $b, self = this, argc = nil, resolved_group = nil, group = nil, name = nil, $writer = nil;
41000
+ Opal.def(self, '$register', $register$98 = function $$register($a) {
41001
+ var $iter = $register$98.$$p, block = $iter || nil, $post_args, args, $b, self = this, argc = nil, resolved_group = nil, group = nil, name = nil, $writer = nil;
40811
41002
 
40812
- if ($iter) $register$97.$$p = null;
41003
+ if ($iter) $register$98.$$p = null;
40813
41004
 
40814
41005
 
40815
- if ($iter) $register$97.$$p = null;;
41006
+ if ($iter) $register$98.$$p = null;;
40816
41007
 
40817
41008
  $post_args = Opal.slice.call(arguments, 0, arguments.length);
40818
41009
 
@@ -40834,34 +41025,37 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
40834
41025
  $writer = [name.$to_sym(), resolved_group];
40835
41026
  $send(self.$groups(), '[]=', Opal.to_a($writer));
40836
41027
  return $writer[$rb_minus($writer["length"], 1)];;
40837
- }, $register$97.$$arity = -1);
41028
+ }, $register$98.$$arity = -1);
40838
41029
 
40839
- Opal.def(self, '$unregister_all', $unregister_all$98 = function $$unregister_all() {
41030
+ Opal.def(self, '$unregister_all', $unregister_all$99 = function $$unregister_all() {
40840
41031
  var self = this;
40841
41032
 
40842
41033
 
40843
41034
  self.groups = $hash2([], {});
40844
41035
  return nil;
40845
- }, $unregister_all$98.$$arity = 0);
40846
- return (Opal.def(self, '$unregister', $unregister$99 = function $$unregister($a) {
40847
- var $post_args, names, $$100, self = this;
41036
+ }, $unregister_all$99.$$arity = 0);
41037
+ return (Opal.def(self, '$unregister', $unregister$100 = function $$unregister($a) {
41038
+ var $post_args, names, $$101, self = this;
40848
41039
 
40849
41040
 
40850
41041
 
40851
41042
  $post_args = Opal.slice.call(arguments, 0, arguments.length);
40852
41043
 
40853
41044
  names = $post_args;;
40854
- $send(names, 'each', [], ($$100 = function(group){var self = $$100.$$s || this;
40855
- if (self.groups == null) self.groups = nil;
41045
+ $send(names, 'each_with_object', [self.$groups()], ($$101 = function(group, catalog){var self = $$101.$$s || this;
40856
41046
 
40857
41047
 
40858
41048
 
40859
41049
  if (group == null) {
40860
41050
  group = nil;
40861
41051
  };
40862
- return self.groups.$delete(group.$to_sym());}, $$100.$$s = self, $$100.$$arity = 1, $$100));
41052
+
41053
+ if (catalog == null) {
41054
+ catalog = nil;
41055
+ };
41056
+ return catalog.$delete(group.$to_sym());}, $$101.$$s = self, $$101.$$arity = 2, $$101));
40863
41057
  return nil;
40864
- }, $unregister$99.$$arity = -1), nil) && 'unregister';
41058
+ }, $unregister$100.$$arity = -1), nil) && 'unregister';
40865
41059
  })(Opal.get_singleton_class(self), $nesting);
40866
41060
  })($nesting[0], $nesting)
40867
41061
  })($nesting[0], $nesting);
@@ -40915,6 +41109,12 @@ Opal.modules["asciidoctor/js/asciidoctor_ext/document"] = function(Opal) {
40915
41109
  var nil = Opal.nil
40916
41110
  var utc_offset
40917
41111
  var source_date_epoch
41112
+ var localdate
41113
+ var localyear
41114
+ var localtime
41115
+ var localdatetime
41116
+ var docdate
41117
+ var doctime
40918
41118
 
40919
41119
  var getYear = function (time, utc_offset) {
40920
41120
  return utc_offset === 0 ? time.getUTCFullYear() : time.getFullYear()
@@ -41002,6 +41202,7 @@ Opal.modules["asciidoctor/js/asciidoctor_ext/document"] = function(Opal) {
41002
41202
  var mtime_hours = ('0' + (getHours(input_mtime, utc_offset))).slice(-2)
41003
41203
  var mtime_minutes = ('0' + (input_mtime.getMinutes())).slice(-2)
41004
41204
  var mtime_seconds = ('0' + (input_mtime.getSeconds())).slice(-2)
41205
+ var utc_offset_format
41005
41206
  if (utc_offset === 0) {
41006
41207
  utc_offset_format = 'UTC'
41007
41208
  } else if (utc_offset > 0) {
@@ -41210,7 +41411,8 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
41210
41411
  self.$require("asciidoctor/converter/html5");
41211
41412
  self.$require("asciidoctor/extensions");
41212
41413
  self.$require("asciidoctor/js/asciidoctor_ext");
41213
- return self.$require("asciidoctor/js/opal_ext/logger");
41414
+ self.$require("asciidoctor/js/opal_ext/logger");
41415
+ return Opal.const_set($$($nesting, 'Asciidoctor'), 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$$($$($nesting, 'Asciidoctor'), 'CG_BLANK')) + "|\\\\?&lt;(?=\\\\?(?:https?|file|ftp|irc)(:))|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|" + ($$$($$($nesting, 'Asciidoctor'), 'CC_ALL')) + "*?[^\\\\])\\]|(?!\\2)([^\\s]*?)&gt;|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"));
41214
41416
  };
41215
41417
 
41216
41418
  /* Generated by Opal 0.11.99.dev */
@@ -41345,13 +41547,13 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
41345
41547
  Opal.const_set($nesting[0], 'FILE_READ_MODE', (function() {if ($truthy($$($nesting, 'RUBY_ENGINE_OPAL'))) {
41346
41548
  return "r"
41347
41549
  } else {
41348
- return "rb:utf-8:utf-8"
41550
+ return "rb:UTF-8:UTF-8"
41349
41551
  }; return nil; })());
41350
41552
  Opal.const_set($nesting[0], 'URI_READ_MODE', $$($nesting, 'FILE_READ_MODE'));
41351
41553
  Opal.const_set($nesting[0], 'FILE_WRITE_MODE', (function() {if ($truthy($$($nesting, 'RUBY_ENGINE_OPAL'))) {
41352
41554
  return "w"
41353
41555
  } else {
41354
- return "w:utf-8"
41556
+ return "wb:UTF-8"
41355
41557
  }; return nil; })());
41356
41558
  Opal.const_set($nesting[0], 'DEFAULT_DOCTYPE', "article");
41357
41559
  Opal.const_set($nesting[0], 'DEFAULT_BACKEND', "html5");
@@ -41877,7 +42079,7 @@ AbstractBlock.prototype.setTitle = function (title) {
41877
42079
  *
41878
42080
  * If a caption has already been assigned to this block, do nothing.
41879
42081
  *
41880
- * The parts of a complete caption are: <prefix> <number>. <title>
42082
+ * The parts of a complete caption are: `<prefix> <number>. <title>`
41881
42083
  * This partial caption represents the part the precedes the title.
41882
42084
  *
41883
42085
  * @param {string} value - the String caption to assign to this block or nil to use document attribute.
@@ -46655,6 +46857,21 @@ ConverterFactory.register = function (converter, backends) {
46655
46857
  var bridgeComposedMethodToInstance = function (obj, instance) {
46656
46858
  bridgeMethodToInstance(obj, instance, '$composed', 'composed')
46657
46859
  }
46860
+ var bridgeEqEqMethodToInstance = function (obj, instance) {
46861
+ bridgeMethodToInstance(obj, instance, '$==', '==', function (other) {
46862
+ return instance === other
46863
+ })
46864
+ }
46865
+ var bridgeSendMethodToInstance = function (obj, instance) {
46866
+ bridgeMethodToInstance(obj, instance, '$send', 'send', function (symbol) {
46867
+ var args = Array.prototype.slice.call(arguments, 1)
46868
+ var func = instance['$' + symbol]
46869
+ if (func) {
46870
+ return func.apply(instance, args)
46871
+ }
46872
+ throw new Error(`undefined method \`${symbol}\` for \`${instance.toString()}\``)
46873
+ })
46874
+ }
46658
46875
  var bridgeMethodToInstance = function (obj, instance, methodName, functionName, defaultImplementation) {
46659
46876
  if (typeof obj[methodName] === 'undefined') {
46660
46877
  if (typeof obj[functionName] === 'function') {
@@ -46721,6 +46938,8 @@ ConverterFactory.register = function (converter, backends) {
46721
46938
  }
46722
46939
  bridgeHandlesMethodToInstance(converter, converter)
46723
46940
  bridgeComposedMethodToInstance(converter, converter)
46941
+ bridgeEqEqMethodToInstance(converter, converter)
46942
+ bridgeSendMethodToInstance(converter, converter)
46724
46943
  addRespondToMethod(converter)
46725
46944
  object = converter
46726
46945
  }
@@ -46820,7 +47039,7 @@ Html5Converter.prototype.convert = function (node, transform, opts) {
46820
47039
  }
46821
47040
 
46822
47041
 
46823
- var ASCIIDOCTOR_JS_VERSION = '2.2.5';
47042
+ var ASCIIDOCTOR_JS_VERSION = '2.2.7';
46824
47043
 
46825
47044
  /**
46826
47045
  * Get Asciidoctor.js version number.