@asciidoctor/core 2.2.6 → 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.
- package/dist/browser/asciidoctor.js +501 -368
- package/dist/browser/asciidoctor.min.js +1442 -1437
- package/dist/css/asciidoctor.css +8 -10
- package/dist/graalvm/asciidoctor.js +500 -367
- package/dist/node/asciidoctor.js +500 -367
- package/package.json +1 -1
|
@@ -20909,6 +20909,30 @@ Opal.modules["asciidoctor/js/opal_ext/string"] = function(Opal) {
|
|
|
20909
20909
|
})($nesting[0], null, $nesting)
|
|
20910
20910
|
};
|
|
20911
20911
|
|
|
20912
|
+
/* Generated by Opal 0.11.99.dev */
|
|
20913
|
+
Opal.modules["asciidoctor/js/opal_ext/array"] = function(Opal) {
|
|
20914
|
+
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;
|
|
20915
|
+
|
|
20916
|
+
Opal.add_stubs(['$==', '$strict_encode64', '$_original_pack']);
|
|
20917
|
+
return (function($base, $super, $parent_nesting) {
|
|
20918
|
+
var self = $klass($base, $super, 'Array');
|
|
20919
|
+
|
|
20920
|
+
var $nesting = [self].concat($parent_nesting), $Array_pack$1;
|
|
20921
|
+
|
|
20922
|
+
|
|
20923
|
+
Opal.alias(self, "_original_pack", "pack");
|
|
20924
|
+
return (Opal.def(self, '$pack', $Array_pack$1 = function $$pack(format) {
|
|
20925
|
+
var self = this;
|
|
20926
|
+
|
|
20927
|
+
if (format['$==']("m0")) {
|
|
20928
|
+
return $$$('::', 'Base64').$strict_encode64(self)
|
|
20929
|
+
} else {
|
|
20930
|
+
return self.$_original_pack(self)
|
|
20931
|
+
}
|
|
20932
|
+
}, $Array_pack$1.$$arity = 1), nil) && 'pack';
|
|
20933
|
+
})($nesting[0], null, $nesting)
|
|
20934
|
+
};
|
|
20935
|
+
|
|
20912
20936
|
/* Generated by Opal 0.11.99.dev */
|
|
20913
20937
|
Opal.modules["asciidoctor/js/opal_ext/uri"] = function(Opal) {
|
|
20914
20938
|
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;
|
|
@@ -21048,6 +21072,7 @@ Opal.modules["asciidoctor/js/opal_ext"] = function(Opal) {
|
|
|
21048
21072
|
self.$require("asciidoctor/js/opal_ext/file");
|
|
21049
21073
|
self.$require("asciidoctor/js/opal_ext/match_data");
|
|
21050
21074
|
self.$require("asciidoctor/js/opal_ext/string");
|
|
21075
|
+
self.$require("asciidoctor/js/opal_ext/array");
|
|
21051
21076
|
self.$require("asciidoctor/js/opal_ext/uri");
|
|
21052
21077
|
self.$require("asciidoctor/js/opal_ext/base64");
|
|
21053
21078
|
self.$require("asciidoctor/js/opal_ext/number");
|
|
@@ -21657,7 +21682,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
21657
21682
|
}
|
|
21658
21683
|
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;
|
|
21659
21684
|
|
|
21660
|
-
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', '
|
|
21685
|
+
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']);
|
|
21661
21686
|
return (function($base, $parent_nesting) {
|
|
21662
21687
|
var self = $module($base, 'Asciidoctor');
|
|
21663
21688
|
|
|
@@ -21666,7 +21691,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
21666
21691
|
(function($base, $parent_nesting) {
|
|
21667
21692
|
var self = $module($base, 'Helpers');
|
|
21668
21693
|
|
|
21669
|
-
var $nesting = [self].concat($parent_nesting), $Helpers_require_library$1, $Helpers_prepare_source_array$2, $Helpers_prepare_source_string$11, $Helpers_uriish$ques$16, $
|
|
21694
|
+
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;
|
|
21670
21695
|
|
|
21671
21696
|
|
|
21672
21697
|
self.$module_function();
|
|
@@ -21895,15 +21920,24 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
21895
21920
|
return lines['$<<'](line.$chomp());}, $$15.$$s = self, $$15.$$arity = 1, $$15));}, $$14.$$s = self, $$14.$$arity = 1, $$14))
|
|
21896
21921
|
};
|
|
21897
21922
|
}, $Helpers_prepare_source_string$11.$$arity = -2);
|
|
21898
|
-
|
|
21899
|
-
|
|
21900
|
-
|
|
21923
|
+
if ($$$('::', 'RUBY_ENGINE')['$==']("jruby")) {
|
|
21924
|
+
|
|
21925
|
+
Opal.def(self, '$uriish?', $Helpers_uriish$ques$16 = function(str) {
|
|
21926
|
+
var $a, $b, self = this;
|
|
21927
|
+
|
|
21928
|
+
return ($truthy($a = ($truthy($b = str['$include?'](":")) ? str['$start_with?']("uri:classloader:")['$!']() : $b)) ? $$($nesting, 'UriSniffRx')['$match?'](str) : $a)
|
|
21929
|
+
}, $Helpers_uriish$ques$16.$$arity = 1)
|
|
21930
|
+
} else {
|
|
21931
|
+
|
|
21932
|
+
Opal.def(self, '$uriish?', $Helpers_uriish$ques$17 = function(str) {
|
|
21933
|
+
var $a, self = this;
|
|
21901
21934
|
|
|
21902
|
-
|
|
21903
|
-
|
|
21935
|
+
return ($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$match?'](str) : $a)
|
|
21936
|
+
}, $Helpers_uriish$ques$17.$$arity = 1)
|
|
21937
|
+
};
|
|
21904
21938
|
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
21905
21939
|
|
|
21906
|
-
Opal.def(self, '$encode_uri_component', $Helpers_encode_uri_component$
|
|
21940
|
+
Opal.def(self, '$encode_uri_component', $Helpers_encode_uri_component$18 = function $$encode_uri_component(str) {
|
|
21907
21941
|
var self = this;
|
|
21908
21942
|
|
|
21909
21943
|
|
|
@@ -21911,12 +21945,12 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
21911
21945
|
return m === '%20' ? '+' : '%' + m.charCodeAt(0).toString(16)
|
|
21912
21946
|
})
|
|
21913
21947
|
|
|
21914
|
-
}, $Helpers_encode_uri_component$
|
|
21948
|
+
}, $Helpers_encode_uri_component$18.$$arity = 1)
|
|
21915
21949
|
} else {
|
|
21916
21950
|
nil
|
|
21917
21951
|
};
|
|
21918
21952
|
|
|
21919
|
-
Opal.def(self, '$encode_spaces_in_uri', $Helpers_encode_spaces_in_uri$
|
|
21953
|
+
Opal.def(self, '$encode_spaces_in_uri', $Helpers_encode_spaces_in_uri$19 = function $$encode_spaces_in_uri(str) {
|
|
21920
21954
|
var self = this;
|
|
21921
21955
|
|
|
21922
21956
|
if ($truthy(str['$include?'](" "))) {
|
|
@@ -21925,9 +21959,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
21925
21959
|
} else {
|
|
21926
21960
|
return str
|
|
21927
21961
|
}
|
|
21928
|
-
}, $Helpers_encode_spaces_in_uri$
|
|
21962
|
+
}, $Helpers_encode_spaces_in_uri$19.$$arity = 1);
|
|
21929
21963
|
|
|
21930
|
-
Opal.def(self, '$rootname', $Helpers_rootname$
|
|
21964
|
+
Opal.def(self, '$rootname', $Helpers_rootname$20 = function $$rootname(filename) {
|
|
21931
21965
|
var self = this, last_dot_idx = nil;
|
|
21932
21966
|
|
|
21933
21967
|
if ($truthy((last_dot_idx = filename.$rindex(".")))) {
|
|
@@ -21940,9 +21974,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
21940
21974
|
} else {
|
|
21941
21975
|
return filename
|
|
21942
21976
|
}
|
|
21943
|
-
}, $Helpers_rootname$
|
|
21977
|
+
}, $Helpers_rootname$20.$$arity = 1);
|
|
21944
21978
|
|
|
21945
|
-
Opal.def(self, '$basename', $Helpers_basename$
|
|
21979
|
+
Opal.def(self, '$basename', $Helpers_basename$21 = function $$basename(filename, drop_ext) {
|
|
21946
21980
|
var self = this;
|
|
21947
21981
|
|
|
21948
21982
|
|
|
@@ -21960,16 +21994,16 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
21960
21994
|
} else {
|
|
21961
21995
|
return $$$('::', 'File').$basename(filename)
|
|
21962
21996
|
};
|
|
21963
|
-
}, $Helpers_basename$
|
|
21997
|
+
}, $Helpers_basename$21.$$arity = -2);
|
|
21964
21998
|
|
|
21965
|
-
Opal.def(self, '$extname?', $Helpers_extname$ques$
|
|
21999
|
+
Opal.def(self, '$extname?', $Helpers_extname$ques$22 = function(path) {
|
|
21966
22000
|
var $a, self = this, last_dot_idx = nil;
|
|
21967
22001
|
|
|
21968
22002
|
return ($truthy($a = (last_dot_idx = path.$rindex("."))) ? path.$index("/", last_dot_idx)['$!']() : $a)
|
|
21969
|
-
}, $Helpers_extname$ques$
|
|
22003
|
+
}, $Helpers_extname$ques$22.$$arity = 1);
|
|
21970
22004
|
if ($truthy($$$($$$('::', 'File'), 'ALT_SEPARATOR'))) {
|
|
21971
22005
|
|
|
21972
|
-
Opal.def(self, '$extname', $Helpers_extname$
|
|
22006
|
+
Opal.def(self, '$extname', $Helpers_extname$23 = function $$extname(path, fallback) {
|
|
21973
22007
|
var $a, self = this, last_dot_idx = nil;
|
|
21974
22008
|
|
|
21975
22009
|
|
|
@@ -21987,10 +22021,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
21987
22021
|
} else {
|
|
21988
22022
|
return fallback
|
|
21989
22023
|
};
|
|
21990
|
-
}, $Helpers_extname$
|
|
22024
|
+
}, $Helpers_extname$23.$$arity = -2)
|
|
21991
22025
|
} else {
|
|
21992
22026
|
|
|
21993
|
-
Opal.def(self, '$extname', $Helpers_extname$
|
|
22027
|
+
Opal.def(self, '$extname', $Helpers_extname$24 = function $$extname(path, fallback) {
|
|
21994
22028
|
var self = this, last_dot_idx = nil;
|
|
21995
22029
|
|
|
21996
22030
|
|
|
@@ -22008,10 +22042,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
22008
22042
|
} else {
|
|
22009
22043
|
return fallback
|
|
22010
22044
|
};
|
|
22011
|
-
}, $Helpers_extname$
|
|
22045
|
+
}, $Helpers_extname$24.$$arity = -2)
|
|
22012
22046
|
};
|
|
22013
22047
|
|
|
22014
|
-
Opal.def(self, '$mkdir_p', $Helpers_mkdir_p$
|
|
22048
|
+
Opal.def(self, '$mkdir_p', $Helpers_mkdir_p$25 = function $$mkdir_p(dir) {
|
|
22015
22049
|
var self = this, parent_dir = nil;
|
|
22016
22050
|
|
|
22017
22051
|
if ($truthy($$$('::', 'File')['$directory?'](dir))) {
|
|
@@ -22037,14 +22071,14 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
22037
22071
|
} else { throw $err; }
|
|
22038
22072
|
};;
|
|
22039
22073
|
}
|
|
22040
|
-
}, $Helpers_mkdir_p$
|
|
22074
|
+
}, $Helpers_mkdir_p$25.$$arity = 1);
|
|
22041
22075
|
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}));
|
|
22042
22076
|
self.$private_constant("ROMAN_NUMERALS");
|
|
22043
22077
|
|
|
22044
|
-
Opal.def(self, '$int_to_roman', $Helpers_int_to_roman$
|
|
22045
|
-
var $$
|
|
22078
|
+
Opal.def(self, '$int_to_roman', $Helpers_int_to_roman$26 = function $$int_to_roman(val) {
|
|
22079
|
+
var $$27, self = this;
|
|
22046
22080
|
|
|
22047
|
-
return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$
|
|
22081
|
+
return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$27 = function(l, i){var self = $$27.$$s || this, $a, $b, repeat = nil;
|
|
22048
22082
|
|
|
22049
22083
|
|
|
22050
22084
|
|
|
@@ -22056,10 +22090,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
22056
22090
|
i = nil;
|
|
22057
22091
|
};
|
|
22058
22092
|
$b = val.$divmod(i), $a = Opal.to_ary($b), (repeat = ($a[0] == null ? nil : $a[0])), (val = ($a[1] == null ? nil : $a[1])), $b;
|
|
22059
|
-
return $rb_times(l, repeat);}, $$
|
|
22060
|
-
}, $Helpers_int_to_roman$
|
|
22093
|
+
return $rb_times(l, repeat);}, $$27.$$s = self, $$27.$$arity = 2, $$27)).$join()
|
|
22094
|
+
}, $Helpers_int_to_roman$26.$$arity = 1);
|
|
22061
22095
|
|
|
22062
|
-
Opal.def(self, '$nextval', $Helpers_nextval$
|
|
22096
|
+
Opal.def(self, '$nextval', $Helpers_nextval$28 = function $$nextval(current) {
|
|
22063
22097
|
var self = this, intval = nil;
|
|
22064
22098
|
|
|
22065
22099
|
if ($truthy($$$('::', 'Integer')['$==='](current))) {
|
|
@@ -22069,9 +22103,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
22069
22103
|
} else {
|
|
22070
22104
|
return current.$succ()
|
|
22071
22105
|
}
|
|
22072
|
-
}, $Helpers_nextval$
|
|
22106
|
+
}, $Helpers_nextval$28.$$arity = 1);
|
|
22073
22107
|
|
|
22074
|
-
Opal.def(self, '$resolve_class', $Helpers_resolve_class$
|
|
22108
|
+
Opal.def(self, '$resolve_class', $Helpers_resolve_class$29 = function $$resolve_class(object) {
|
|
22075
22109
|
var self = this;
|
|
22076
22110
|
|
|
22077
22111
|
if ($truthy($$$('::', 'Class')['$==='](object))) {
|
|
@@ -22085,9 +22119,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
22085
22119
|
return nil
|
|
22086
22120
|
};
|
|
22087
22121
|
}
|
|
22088
|
-
}, $Helpers_resolve_class$
|
|
22122
|
+
}, $Helpers_resolve_class$29.$$arity = 1);
|
|
22089
22123
|
|
|
22090
|
-
Opal.def(self, '$class_for_name', $Helpers_class_for_name$
|
|
22124
|
+
Opal.def(self, '$class_for_name', $Helpers_class_for_name$30 = function $$class_for_name(qualified_name) {
|
|
22091
22125
|
var self = this, resolved = nil;
|
|
22092
22126
|
|
|
22093
22127
|
try {
|
|
@@ -22104,7 +22138,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
22104
22138
|
} finally { Opal.pop_exception() }
|
|
22105
22139
|
} else { throw $err; }
|
|
22106
22140
|
}
|
|
22107
|
-
}, $Helpers_class_for_name$
|
|
22141
|
+
}, $Helpers_class_for_name$30.$$arity = 1);
|
|
22108
22142
|
})($nesting[0], $nesting)
|
|
22109
22143
|
})($nesting[0], $nesting)
|
|
22110
22144
|
};
|
|
@@ -22474,9 +22508,11 @@ Opal.modules["asciidoctor/logging"] = function(Opal) {
|
|
|
22474
22508
|
self.$attr_reader("messages");
|
|
22475
22509
|
|
|
22476
22510
|
Opal.def(self, '$initialize', $MemoryLogger_initialize$6 = function $$initialize() {
|
|
22477
|
-
var self = this, $writer = nil;
|
|
22511
|
+
var $iter = $MemoryLogger_initialize$6.$$p, $yield = $iter || nil, self = this, $writer = nil;
|
|
22478
22512
|
|
|
22513
|
+
if ($iter) $MemoryLogger_initialize$6.$$p = null;
|
|
22479
22514
|
|
|
22515
|
+
$send(self, Opal.find_super_dispatcher(self, 'initialize', $MemoryLogger_initialize$6, false), [nil], null);
|
|
22480
22516
|
|
|
22481
22517
|
$writer = [$$($nesting, 'WARN')];
|
|
22482
22518
|
$send(self, 'level=', Opal.to_a($writer));
|
|
@@ -22544,12 +22580,15 @@ Opal.modules["asciidoctor/logging"] = function(Opal) {
|
|
|
22544
22580
|
self.$attr_reader("max_severity");
|
|
22545
22581
|
|
|
22546
22582
|
Opal.def(self, '$initialize', $NullLogger_initialize$12 = function $$initialize() {
|
|
22547
|
-
var self = this, $writer = nil;
|
|
22583
|
+
var $iter = $NullLogger_initialize$12.$$p, $yield = $iter || nil, self = this, $writer = nil;
|
|
22548
22584
|
|
|
22585
|
+
if ($iter) $NullLogger_initialize$12.$$p = null;
|
|
22586
|
+
|
|
22587
|
+
$send(self, Opal.find_super_dispatcher(self, 'initialize', $NullLogger_initialize$12, false), [nil], null);
|
|
22549
22588
|
|
|
22550
22589
|
$writer = [$$($nesting, 'WARN')];
|
|
22551
22590
|
$send(self, 'level=', Opal.to_a($writer));
|
|
22552
|
-
return $writer[$rb_minus($writer["length"], 1)]
|
|
22591
|
+
return $writer[$rb_minus($writer["length"], 1)];;
|
|
22553
22592
|
}, $NullLogger_initialize$12.$$arity = 0);
|
|
22554
22593
|
return (Opal.def(self, '$add', $NullLogger_add$13 = function $$add(severity, message, progname) {
|
|
22555
22594
|
var $a, self = this;
|
|
@@ -22678,7 +22717,7 @@ Opal.modules["asciidoctor/rx"] = function(Opal) {
|
|
|
22678
22717
|
Opal.const_set($nesting[0], 'ManpageNamePurposeRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) +- +(" + ($$($nesting, 'CC_ANY')) + "+)$"));
|
|
22679
22718
|
Opal.const_set($nesting[0], 'ConditionalDirectiveRx', new RegExp("" + "^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
22680
22719
|
Opal.const_set($nesting[0], 'EvalExpressionRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *([=!><]=|[><]) *(" + ($$($nesting, 'CC_ANY')) + "+)$"));
|
|
22681
|
-
Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\[][^\\[]*)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
22720
|
+
Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\s\\[](?:[^\\[]*[^\\s\\[])?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
22682
22721
|
Opal.const_set($nesting[0], 'TagDirectiveRx', /\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m);
|
|
22683
22722
|
Opal.const_set($nesting[0], 'AttributeEntryRx', new RegExp("" + "^:(!?" + ($$($nesting, 'CG_WORD')) + "[^:]*):(?:[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
|
|
22684
22723
|
Opal.const_set($nesting[0], 'InvalidAttributeNameCharsRx', new RegExp("" + "[^" + ($$($nesting, 'CC_WORD')) + "-]"));
|
|
@@ -22764,14 +22803,13 @@ Opal.modules["asciidoctor/rx"] = function(Opal) {
|
|
|
22764
22803
|
Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
22765
22804
|
Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
|
|
22766
22805
|
Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
22767
|
-
Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "
|
|
22806
|
+
Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|\\\\?<()|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\2([^\\s]*?)>|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))", 'm'));
|
|
22768
22807
|
Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
22769
22808
|
Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*$"));
|
|
22770
22809
|
Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
22771
22810
|
Opal.const_set($nesting[0], 'InlineMenuMacroRx', new RegExp("" + "\\\\?menu:(" + ($$($nesting, 'CG_WORD')) + "|[" + ($$($nesting, 'CC_WORD')) + "&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))\\]", 'm'));
|
|
22772
22811
|
Opal.const_set($nesting[0], 'InlineMenuRx', new RegExp("" + "\\\\?\"([" + ($$($nesting, 'CC_WORD')) + "&][^\"]*?[ \\n]+>[ \\n]+[^\"]*)\""));
|
|
22773
|
-
Opal.const_set($nesting[0], 'InlinePassRx', $hash(false, ["+", "
|
|
22774
|
-
Opal.const_set($nesting[0], 'SinglePlusInlinePassRx', new RegExp("" + "^(\\\\)?\\+(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\+$", 'm'));
|
|
22812
|
+
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')]));
|
|
22775
22813
|
Opal.const_set($nesting[0], 'InlinePassMacroRx', new RegExp("" + "(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(" + ($$($nesting, 'CC_ALL')) + "*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])", 'm'));
|
|
22776
22814
|
Opal.const_set($nesting[0], 'InlineXrefMacroRx', new RegExp("" + "\\\\?(?:<<([" + ($$($nesting, 'CC_WORD')) + "#/.:{]" + ($$($nesting, 'CC_ALL')) + "*?)>>|xref:([" + ($$($nesting, 'CC_WORD')) + "#/.:{]" + ($$($nesting, 'CC_ALL')) + "*?)\\[(?:\\]|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]))", 'm'));
|
|
22777
22815
|
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
@@ -22787,7 +22825,11 @@ Opal.modules["asciidoctor/rx"] = function(Opal) {
|
|
|
22787
22825
|
Opal.const_set($nesting[0], 'SpaceDelimiterRx', /([^\\])[ \t\n]+/);
|
|
22788
22826
|
Opal.const_set($nesting[0], 'SubModifierSniffRx', /[+-]/);
|
|
22789
22827
|
Opal.const_set($nesting[0], 'TrailingDigitsRx', /\d+$/);
|
|
22790
|
-
|
|
22828
|
+
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
22829
|
+
Opal.const_set($nesting[0], 'UriSniffRx', new RegExp("" + "^" + ($$($nesting, 'CG_ALPHA')) + "[" + ($$($nesting, 'CC_ALNUM')) + ".+-]+:/{0,2}"))
|
|
22830
|
+
} else {
|
|
22831
|
+
nil
|
|
22832
|
+
};
|
|
22791
22833
|
Opal.const_set($nesting[0], 'XmlSanitizeRx', /<[^>]+>/);
|
|
22792
22834
|
})($nesting[0], $nesting)
|
|
22793
22835
|
};
|
|
@@ -22811,7 +22853,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
22811
22853
|
}
|
|
22812
22854
|
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;
|
|
22813
22855
|
|
|
22814
|
-
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', '$
|
|
22856
|
+
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']);
|
|
22815
22857
|
return (function($base, $parent_nesting) {
|
|
22816
22858
|
var self = $module($base, 'Asciidoctor');
|
|
22817
22859
|
|
|
@@ -22820,7 +22862,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
22820
22862
|
(function($base, $parent_nesting) {
|
|
22821
22863
|
var self = $module($base, 'Substitutors');
|
|
22822
22864
|
|
|
22823
|
-
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, $
|
|
22865
|
+
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;
|
|
22824
22866
|
|
|
22825
22867
|
|
|
22826
22868
|
Opal.const_set($nesting[0], 'SpecialCharsRx', /[<&>]/);
|
|
@@ -23316,7 +23358,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
23316
23358
|
($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)]));
|
|
23317
23359
|
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))};
|
|
23318
23360
|
if ($truthy(($truthy($a = ($truthy($b = text['$include?']("((")) ? text['$include?']("))") : $b)) ? $a : ($truthy($b = found_macroish_short) ? text['$include?']("dexterm") : $b)))) {
|
|
23319
|
-
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
|
|
23361
|
+
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;
|
|
23320
23362
|
|
|
23321
23363
|
return (function() {$case = (($c = $gvars['~']) === nil ? nil : $c['$[]'](1));
|
|
23322
23364
|
if ("indexterm"['$===']($case)) {
|
|
@@ -23325,8 +23367,14 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
23325
23367
|
if ($truthy((attrlist = self.$normalize_text((($c = $gvars['~']) === nil ? nil : $c['$[]'](2)), true, true))['$include?']("="))) {
|
|
23326
23368
|
if ($truthy((primary = (attrs = $$($nesting, 'AttributeList').$new(attrlist, self).$parse())['$[]'](1)))) {
|
|
23327
23369
|
|
|
23370
|
+
terms = [primary];
|
|
23371
|
+
if ($truthy((secondary = attrs['$[]'](2)))) {
|
|
23372
|
+
|
|
23373
|
+
terms['$<<'](secondary);
|
|
23374
|
+
if ($truthy((tertiary = attrs['$[]'](3)))) {
|
|
23375
|
+
terms['$<<'](tertiary)};};
|
|
23328
23376
|
|
|
23329
|
-
$writer = ["terms",
|
|
23377
|
+
$writer = ["terms", terms];
|
|
23330
23378
|
$send(attrs, '[]=', Opal.to_a($writer));
|
|
23331
23379
|
$writer[$rb_minus($writer["length"], 1)];;
|
|
23332
23380
|
if ($truthy((see_also = attrs['$[]']("see-also")))) {
|
|
@@ -23439,78 +23487,93 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
23439
23487
|
return subbed_term
|
|
23440
23488
|
};}})()}, $$31.$$s = self, $$31.$$arity = 0, $$31))};
|
|
23441
23489
|
if ($truthy(($truthy($a = found_colon) ? text['$include?']("://") : $a))) {
|
|
23442
|
-
text = $send(text, 'gsub', [$$($nesting, 'InlineLinkRx')], ($$34 = function(){var self = $$34.$$s || this, $c, $d, target = nil,
|
|
23490
|
+
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;
|
|
23443
23491
|
|
|
23444
|
-
|
|
23445
|
-
if ($truthy((target = (($c = $gvars['~']) === nil ? nil : $c['$[]'](2)))['$start_with?']($$($nesting, 'RS')))) {
|
|
23446
|
-
return "" + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))) + (target.$slice(1, target.$length())) + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](4)));};
|
|
23447
|
-
$c = [(($d = $gvars['~']) === nil ? nil : $d['$[]'](1)), ""], (prefix = $c[0]), (suffix = $c[1]), $c;
|
|
23448
|
-
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](4)))) {
|
|
23492
|
+
if ($truthy(($truthy($c = (($d = $gvars['~']) === nil ? nil : $d['$[]'](2))) ? (($d = $gvars['~']) === nil ? nil : $d['$[]'](5))['$!']() : $c))) {
|
|
23449
23493
|
|
|
23450
|
-
if (
|
|
23451
|
-
|
|
23452
|
-
if ($truthy((
|
|
23453
|
-
|
|
23494
|
+
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))['$start_with?']($$($nesting, 'RS')))) {
|
|
23495
|
+
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$slice(1, (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$length());};
|
|
23496
|
+
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](3))['$start_with?']($$($nesting, 'RS')))) {
|
|
23497
|
+
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()));};
|
|
23498
|
+
target = $rb_plus((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)), (($c = $gvars['~']) === nil ? nil : $c['$[]'](6)));
|
|
23499
|
+
if (target['$==']((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)))) {
|
|
23500
|
+
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};
|
|
23501
|
+
doc.$register("links", target);
|
|
23502
|
+
link_text = (function() {if ($truthy(doc_attrs['$key?']("hide-uri-scheme"))) {
|
|
23503
|
+
|
|
23504
|
+
return target.$sub($$($nesting, 'UriSniffRx'), "");
|
|
23505
|
+
} else {
|
|
23506
|
+
return target
|
|
23507
|
+
}; return nil; })();
|
|
23508
|
+
return $$($nesting, 'Inline').$new(self, "anchor", link_text, $hash2(["type", "target", "attributes"], {"type": "link", "target": target, "attributes": $hash2(["role"], {"role": "bare"})})).$convert();
|
|
23454
23509
|
} else {
|
|
23455
23510
|
|
|
23456
|
-
$
|
|
23457
|
-
|
|
23458
|
-
$
|
|
23459
|
-
if (
|
|
23460
|
-
target = target.$chop();
|
|
23461
|
-
if ($truthy((($c = (suffix = (($d = $gvars['~']) === nil ? nil : $d['$[]'](3)))['$=='](")")) ? target['$end_with?'](".", "?", "!") : (suffix = (($d = $gvars['~']) === nil ? nil : $d['$[]'](3)))['$=='](")")))) {
|
|
23511
|
+
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](3))['$start_with?']($$($nesting, 'RS')))) {
|
|
23512
|
+
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()));};
|
|
23513
|
+
$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;
|
|
23514
|
+
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](5)))) {
|
|
23462
23515
|
|
|
23463
|
-
|
|
23464
|
-
|
|
23465
|
-
|
|
23466
|
-
|
|
23467
|
-
else if (";"['$===']($case)) {
|
|
23468
|
-
if ($truthy(($truthy($c = prefix['$start_with?']("<")) ? target['$end_with?'](">") : $c))) {
|
|
23469
|
-
|
|
23470
|
-
prefix = prefix.$slice(4, prefix.$length());
|
|
23471
|
-
target = target.$slice(0, $rb_minus(target.$length(), 4));
|
|
23472
|
-
} else if ($truthy((target = target.$chop())['$end_with?'](")"))) {
|
|
23473
|
-
|
|
23474
|
-
target = target.$chop();
|
|
23475
|
-
suffix = ");";
|
|
23516
|
+
if (prefix['$==']("link:")) {
|
|
23517
|
+
prefix = ""};
|
|
23518
|
+
if ($truthy((link_text = (($c = $gvars['~']) === nil ? nil : $c['$[]'](5)))['$empty?']())) {
|
|
23519
|
+
link_text = nil};
|
|
23476
23520
|
} else {
|
|
23477
|
-
suffix = ";"
|
|
23478
|
-
};
|
|
23479
|
-
if ($truthy(target['$end_with?']("://"))) {
|
|
23480
|
-
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};}
|
|
23481
|
-
else if (":"['$===']($case)) {
|
|
23482
|
-
if ($truthy((target = target.$chop())['$end_with?'](")"))) {
|
|
23483
23521
|
|
|
23484
|
-
|
|
23485
|
-
|
|
23486
|
-
|
|
23487
|
-
|
|
23522
|
+
$case = prefix;
|
|
23523
|
+
if ("link:"['$===']($case) || "\""['$===']($case) || "'"['$===']($case)) {return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};
|
|
23524
|
+
$case = (($c = $gvars['~']) === nil ? nil : $c['$[]'](8));
|
|
23525
|
+
if (";"['$===']($case)) {
|
|
23526
|
+
if ($truthy((target = target.$chop())['$end_with?'](")"))) {
|
|
23527
|
+
|
|
23528
|
+
target = target.$chop();
|
|
23529
|
+
suffix = ");";
|
|
23530
|
+
} else {
|
|
23531
|
+
suffix = ";"
|
|
23532
|
+
};
|
|
23533
|
+
if (target['$==']((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)))) {
|
|
23534
|
+
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};}
|
|
23535
|
+
else if (":"['$===']($case)) {
|
|
23536
|
+
if ($truthy((target = target.$chop())['$end_with?'](")"))) {
|
|
23537
|
+
|
|
23538
|
+
target = target.$chop();
|
|
23539
|
+
suffix = "):";
|
|
23540
|
+
} else {
|
|
23541
|
+
suffix = ":"
|
|
23542
|
+
};
|
|
23543
|
+
if (target['$==']((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)))) {
|
|
23544
|
+
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));};};
|
|
23488
23545
|
};
|
|
23489
|
-
|
|
23490
|
-
|
|
23491
|
-
};
|
|
23492
|
-
$c = [nil, $hash2(["type"], {"type": "link"})], (attrs = $c[0]), (link_opts = $c[1]), $c;
|
|
23493
|
-
if ($truthy(link_text)) {
|
|
23494
|
-
|
|
23495
|
-
if ($truthy(link_text['$include?']($$($nesting, 'R_SB')))) {
|
|
23496
|
-
new_link_text = (link_text = link_text.$gsub($$($nesting, 'ESC_R_SB'), $$($nesting, 'R_SB')))};
|
|
23497
|
-
if ($truthy(($truthy($c = doc.$compat_mode()['$!']()) ? link_text['$include?']("=") : $c))) {
|
|
23546
|
+
link_opts = $hash2(["type"], {"type": "link"});
|
|
23547
|
+
if ($truthy(link_text)) {
|
|
23498
23548
|
|
|
23499
|
-
|
|
23500
|
-
|
|
23501
|
-
|
|
23502
|
-
|
|
23503
|
-
|
|
23504
|
-
|
|
23505
|
-
|
|
23506
|
-
|
|
23507
|
-
|
|
23508
|
-
|
|
23509
|
-
|
|
23510
|
-
|
|
23511
|
-
|
|
23512
|
-
|
|
23513
|
-
|
|
23549
|
+
if ($truthy(link_text['$include?']($$($nesting, 'R_SB')))) {
|
|
23550
|
+
new_link_text = (link_text = link_text.$gsub($$($nesting, 'ESC_R_SB'), $$($nesting, 'R_SB')))};
|
|
23551
|
+
if ($truthy(($truthy($c = doc.$compat_mode()['$!']()) ? link_text['$include?']("=") : $c))) {
|
|
23552
|
+
|
|
23553
|
+
$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;
|
|
23554
|
+
new_link_text = link_text;
|
|
23555
|
+
|
|
23556
|
+
$writer = ["id", attrs['$[]']("id")];
|
|
23557
|
+
$send(link_opts, '[]=', Opal.to_a($writer));
|
|
23558
|
+
$writer[$rb_minus($writer["length"], 1)];;};
|
|
23559
|
+
if ($truthy(link_text['$end_with?']("^"))) {
|
|
23560
|
+
|
|
23561
|
+
new_link_text = (link_text = link_text.$chop());
|
|
23562
|
+
if ($truthy(attrs)) {
|
|
23563
|
+
($truthy($c = attrs['$[]']("window")) ? $c : (($writer = ["window", "_blank"]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))
|
|
23564
|
+
} else {
|
|
23565
|
+
attrs = $hash2(["window"], {"window": "_blank"})
|
|
23566
|
+
};};
|
|
23567
|
+
if ($truthy(($truthy($c = new_link_text) ? new_link_text['$empty?']() : $c))) {
|
|
23568
|
+
|
|
23569
|
+
link_text = (function() {if ($truthy(doc_attrs['$key?']("hide-uri-scheme"))) {
|
|
23570
|
+
|
|
23571
|
+
return target.$sub($$($nesting, 'UriSniffRx'), "");
|
|
23572
|
+
} else {
|
|
23573
|
+
return target
|
|
23574
|
+
}; return nil; })();
|
|
23575
|
+
bare = true;};
|
|
23576
|
+
} else {
|
|
23514
23577
|
|
|
23515
23578
|
link_text = (function() {if ($truthy(doc_attrs['$key?']("hide-uri-scheme"))) {
|
|
23516
23579
|
|
|
@@ -23518,37 +23581,29 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
23518
23581
|
} else {
|
|
23519
23582
|
return target
|
|
23520
23583
|
}; return nil; })();
|
|
23521
|
-
bare = true;
|
|
23522
|
-
|
|
23523
|
-
|
|
23524
|
-
|
|
23525
|
-
|
|
23526
|
-
|
|
23527
|
-
|
|
23528
|
-
|
|
23529
|
-
|
|
23530
|
-
|
|
23531
|
-
|
|
23532
|
-
|
|
23584
|
+
bare = true;
|
|
23585
|
+
};
|
|
23586
|
+
if ($truthy(bare)) {
|
|
23587
|
+
if ($truthy(attrs)) {
|
|
23588
|
+
|
|
23589
|
+
$writer = ["role", (function() {if ($truthy(attrs['$key?']("role"))) {
|
|
23590
|
+
return "" + "bare " + (attrs['$[]']("role"))
|
|
23591
|
+
} else {
|
|
23592
|
+
return "bare"
|
|
23593
|
+
}; return nil; })()];
|
|
23594
|
+
$send(attrs, '[]=', Opal.to_a($writer));
|
|
23595
|
+
$writer[$rb_minus($writer["length"], 1)];
|
|
23596
|
+
} else {
|
|
23597
|
+
attrs = $hash2(["role"], {"role": "bare"})
|
|
23598
|
+
}};
|
|
23599
|
+
doc.$register("links", (($writer = ["target", target]), $send(link_opts, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
23533
23600
|
if ($truthy(attrs)) {
|
|
23534
23601
|
|
|
23535
|
-
$writer = ["
|
|
23536
|
-
|
|
23537
|
-
}
|
|
23538
|
-
|
|
23539
|
-
|
|
23540
|
-
$send(attrs, '[]=', Opal.to_a($writer));
|
|
23541
|
-
$writer[$rb_minus($writer["length"], 1)];
|
|
23542
|
-
} else {
|
|
23543
|
-
attrs = $hash2(["role"], {"role": "bare"})
|
|
23544
|
-
}};
|
|
23545
|
-
doc.$register("links", (($writer = ["target", target]), $send(link_opts, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
23546
|
-
if ($truthy(attrs)) {
|
|
23547
|
-
|
|
23548
|
-
$writer = ["attributes", attrs];
|
|
23549
|
-
$send(link_opts, '[]=', Opal.to_a($writer));
|
|
23550
|
-
$writer[$rb_minus($writer["length"], 1)];};
|
|
23551
|
-
return "" + (prefix) + ($$($nesting, 'Inline').$new(self, "anchor", link_text, link_opts).$convert()) + (suffix);}, $$34.$$s = self, $$34.$$arity = 0, $$34))};
|
|
23602
|
+
$writer = ["attributes", attrs];
|
|
23603
|
+
$send(link_opts, '[]=', Opal.to_a($writer));
|
|
23604
|
+
$writer[$rb_minus($writer["length"], 1)];};
|
|
23605
|
+
return "" + (prefix) + ($$($nesting, 'Inline').$new(self, "anchor", link_text, link_opts).$convert()) + (suffix);
|
|
23606
|
+
}}, $$34.$$s = self, $$34.$$arity = 0, $$34))};
|
|
23552
23607
|
if ($truthy(($truthy($a = found_macroish) ? ($truthy($b = text['$include?']("link:")) ? $b : text['$include?']("ilto:")) : $a))) {
|
|
23553
23608
|
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;
|
|
23554
23609
|
|
|
@@ -23686,7 +23741,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
23686
23741
|
};
|
|
23687
23742
|
if ($truthy(doc.$compat_mode())) {
|
|
23688
23743
|
fragment = refid
|
|
23689
|
-
} else if ($truthy((hash_idx = refid.$index("#")))) {
|
|
23744
|
+
} else if ($truthy(($truthy($c = (hash_idx = refid.$index("#"))) ? refid['$[]']($rb_minus(hash_idx, 1))['$!=']("&") : $c))) {
|
|
23690
23745
|
if ($truthy($rb_gt(hash_idx, 0))) {
|
|
23691
23746
|
|
|
23692
23747
|
if ($truthy($rb_gt((fragment_len = $rb_minus($rb_minus(refid.$length(), 1), hash_idx)), 0))) {
|
|
@@ -24037,13 +24092,20 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
24037
24092
|
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);
|
|
24038
24093
|
} else if ((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))['$==']($$($nesting, 'RS'))) {
|
|
24039
24094
|
preceding = "" + "[" + (attrlist) + "]"
|
|
24040
|
-
} else {
|
|
24041
|
-
|
|
24042
|
-
|
|
24095
|
+
} else if (boundary['$==']("++")) {
|
|
24096
|
+
if (attrlist['$==']("x-")) {
|
|
24097
|
+
|
|
24098
|
+
old_behavior = true;
|
|
24099
|
+
attributes = $hash2([], {});
|
|
24100
|
+
} else if ($truthy(attrlist['$end_with?'](" x-"))) {
|
|
24043
24101
|
|
|
24044
24102
|
old_behavior = true;
|
|
24045
|
-
|
|
24046
|
-
|
|
24103
|
+
attributes = self.$parse_quoted_text_attributes(attrlist.$slice(0, $rb_minus(attrlist.$length(), 3)));
|
|
24104
|
+
} else {
|
|
24105
|
+
attributes = self.$parse_quoted_text_attributes(attrlist)
|
|
24106
|
+
}
|
|
24107
|
+
} else {
|
|
24108
|
+
attributes = self.$parse_quoted_text_attributes(attrlist)
|
|
24047
24109
|
}
|
|
24048
24110
|
} else if ($truthy($rb_gt((escape_count = (($c = $gvars['~']) === nil ? nil : $c['$[]'](3)).$length()), 0))) {
|
|
24049
24111
|
return "" + ($rb_times($$($nesting, 'RS'), $rb_minus(escape_count, 1))) + (boundary) + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](5))) + (boundary);};
|
|
@@ -24089,33 +24151,42 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
24089
24151
|
return "" + (($truthy($c = preceding) ? $c : "")) + ($$($nesting, 'PASS_START')) + (passthru_key) + ($$($nesting, 'PASS_END'));}, $$53.$$s = self, $$53.$$arity = 0, $$53))};
|
|
24090
24152
|
$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;
|
|
24091
24153
|
if ($truthy(($truthy($a = text['$include?'](pass_inline_char1)) ? $a : ($truthy($b = pass_inline_char2) ? text['$include?'](pass_inline_char2) : $b)))) {
|
|
24092
|
-
text = $send(text, 'gsub', [pass_inline_rx], ($$54 = function(){var self = $$54.$$s || this, $c, preceding = nil, attrlist = nil,
|
|
24154
|
+
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;
|
|
24093
24155
|
|
|
24094
24156
|
|
|
24095
24157
|
preceding = (($c = $gvars['~']) === nil ? nil : $c['$[]'](1));
|
|
24096
|
-
attrlist = (($c = $gvars['~']) === nil ? nil : $c['$[]'](
|
|
24097
|
-
if ($truthy((
|
|
24098
|
-
|
|
24099
|
-
|
|
24100
|
-
|
|
24158
|
+
attrlist = ($truthy($c = (($d = $gvars['~']) === nil ? nil : $d['$[]'](4))) ? $c : (($d = $gvars['~']) === nil ? nil : $d['$[]'](3)));
|
|
24159
|
+
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](5)))) {
|
|
24160
|
+
escaped = true};
|
|
24161
|
+
quoted_text = (($c = $gvars['~']) === nil ? nil : $c['$[]'](6));
|
|
24162
|
+
format_mark = (($c = $gvars['~']) === nil ? nil : $c['$[]'](7));
|
|
24163
|
+
content = (($c = $gvars['~']) === nil ? nil : $c['$[]'](8));
|
|
24101
24164
|
if ($truthy(compat_mode)) {
|
|
24102
24165
|
old_behavior = true
|
|
24103
|
-
} else if ($truthy((
|
|
24104
|
-
|
|
24166
|
+
} else if ($truthy(($truthy($c = attrlist) ? ($truthy($d = attrlist['$==']("x-")) ? $d : attrlist['$end_with?'](" x-")) : $c))) {
|
|
24167
|
+
old_behavior = (old_behavior_forced = true)};
|
|
24105
24168
|
if ($truthy(attrlist)) {
|
|
24106
|
-
if ($truthy(
|
|
24107
|
-
return self.$extract_inner_passthrough(content, "" + (preceding) + "[" + (attrlist) + "]" + (escape_mark));
|
|
24108
|
-
} else if ($truthy(escape_mark)) {
|
|
24169
|
+
if ($truthy(escaped)) {
|
|
24109
24170
|
return "" + (preceding) + "[" + (attrlist) + "]" + (quoted_text.$slice(1, quoted_text.$length()));
|
|
24110
24171
|
} else if (preceding['$==']($$($nesting, 'RS'))) {
|
|
24111
|
-
|
|
24172
|
+
|
|
24173
|
+
if ($truthy(($truthy($c = old_behavior_forced) ? format_mark['$==']("`") : $c))) {
|
|
24174
|
+
return "" + (preceding) + "[" + (attrlist) + "]" + (quoted_text);};
|
|
24175
|
+
preceding = "" + "[" + (attrlist) + "]";
|
|
24176
|
+
} else if ($truthy(old_behavior_forced)) {
|
|
24177
|
+
attributes = (function() {if (attrlist['$==']("x-")) {
|
|
24178
|
+
return $hash2([], {})
|
|
24179
|
+
} else {
|
|
24180
|
+
|
|
24181
|
+
return self.$parse_quoted_text_attributes(attrlist.$slice(0, $rb_minus(attrlist.$length(), 3)));
|
|
24182
|
+
}; return nil; })()
|
|
24112
24183
|
} else {
|
|
24113
24184
|
attributes = self.$parse_quoted_text_attributes(attrlist)
|
|
24114
24185
|
}
|
|
24115
|
-
} else if ($truthy(
|
|
24116
|
-
return
|
|
24117
|
-
} else if ($truthy(
|
|
24118
|
-
return
|
|
24186
|
+
} else if ($truthy(escaped)) {
|
|
24187
|
+
return "" + (preceding) + (quoted_text.$slice(1, quoted_text.$length()));
|
|
24188
|
+
} else if ($truthy(($truthy($c = compat_mode) ? preceding['$==']($$($nesting, 'RS')) : $c))) {
|
|
24189
|
+
return quoted_text;};
|
|
24119
24190
|
if ($truthy(compat_mode)) {
|
|
24120
24191
|
|
|
24121
24192
|
$writer = [(passthru_key = passthrus.$size()), $hash2(["text", "subs", "attributes", "type"], {"text": content, "subs": $$($nesting, 'BASIC_SUBS'), "attributes": attributes, "type": "monospaced"})];
|
|
@@ -24549,27 +24620,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
24549
24620
|
};}, $$71.$$s = self, $$71.$$arity = 1, $$71)).$join($$($nesting, 'LF')));
|
|
24550
24621
|
}, $Substitutors_restore_callouts$70.$$arity = -3);
|
|
24551
24622
|
|
|
24552
|
-
Opal.def(self, '$
|
|
24553
|
-
var $a, $b, self = this, $writer = nil, passthru_key = nil;
|
|
24554
|
-
if (self.passthroughs == null) self.passthroughs = nil;
|
|
24555
|
-
|
|
24556
|
-
if ($truthy(($truthy($a = ($truthy($b = text['$end_with?']("+")) ? text['$start_with?']("+", "\\+") : $b)) ? $$($nesting, 'SinglePlusInlinePassRx')['$=~'](text) : $a))) {
|
|
24557
|
-
if ($truthy((($a = $gvars['~']) === nil ? nil : $a['$[]'](1)))) {
|
|
24558
|
-
return "" + (pre) + "`+" + ((($a = $gvars['~']) === nil ? nil : $a['$[]'](2))) + "+`"
|
|
24559
|
-
} else {
|
|
24560
|
-
|
|
24561
|
-
|
|
24562
|
-
$writer = [(passthru_key = self.passthroughs.$size()), $hash2(["text", "subs"], {"text": (($a = $gvars['~']) === nil ? nil : $a['$[]'](2)), "subs": $$($nesting, 'BASIC_SUBS')})];
|
|
24563
|
-
$send(self.passthroughs, '[]=', Opal.to_a($writer));
|
|
24564
|
-
$writer[$rb_minus($writer["length"], 1)];;
|
|
24565
|
-
return "" + (pre) + "`" + ($$($nesting, 'PASS_START')) + (passthru_key) + ($$($nesting, 'PASS_END')) + "`";
|
|
24566
|
-
}
|
|
24567
|
-
} else {
|
|
24568
|
-
return "" + (pre) + "`" + (text) + "`"
|
|
24569
|
-
}
|
|
24570
|
-
}, $Substitutors_extract_inner_passthrough$73.$$arity = 2);
|
|
24571
|
-
|
|
24572
|
-
Opal.def(self, '$convert_quoted_text', $Substitutors_convert_quoted_text$74 = function $$convert_quoted_text(match, type, scope) {
|
|
24623
|
+
Opal.def(self, '$convert_quoted_text', $Substitutors_convert_quoted_text$73 = function $$convert_quoted_text(match, type, scope) {
|
|
24573
24624
|
var $a, self = this, attrs = nil, unescaped_attrs = nil, attrlist = nil, id = nil, attributes = nil;
|
|
24574
24625
|
|
|
24575
24626
|
|
|
@@ -24600,9 +24651,9 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
24600
24651
|
type = "unquoted"};};
|
|
24601
24652
|
return $$($nesting, 'Inline').$new(self, "quoted", match['$[]'](2), $hash2(["type", "id", "attributes"], {"type": type, "id": id, "attributes": attributes})).$convert();
|
|
24602
24653
|
};
|
|
24603
|
-
}, $Substitutors_convert_quoted_text$
|
|
24654
|
+
}, $Substitutors_convert_quoted_text$73.$$arity = 3);
|
|
24604
24655
|
|
|
24605
|
-
Opal.def(self, '$do_replacement', $Substitutors_do_replacement$
|
|
24656
|
+
Opal.def(self, '$do_replacement', $Substitutors_do_replacement$74 = function $$do_replacement(m, replacement, restore) {
|
|
24606
24657
|
var self = this, captured = nil, $case = nil;
|
|
24607
24658
|
|
|
24608
24659
|
if ($truthy((captured = m['$[]'](0))['$include?']($$($nesting, 'RS')))) {
|
|
@@ -24613,13 +24664,13 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
24613
24664
|
else if ("bounding"['$===']($case)) {return $rb_plus($rb_plus(m['$[]'](1), replacement), m['$[]'](2))}
|
|
24614
24665
|
else {return $rb_plus(m['$[]'](1), replacement)}})()
|
|
24615
24666
|
}
|
|
24616
|
-
}, $Substitutors_do_replacement$
|
|
24667
|
+
}, $Substitutors_do_replacement$74.$$arity = 3);
|
|
24617
24668
|
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
24618
24669
|
} else {
|
|
24619
24670
|
nil
|
|
24620
24671
|
};
|
|
24621
24672
|
|
|
24622
|
-
Opal.def(self, '$parse_quoted_text_attributes', $Substitutors_parse_quoted_text_attributes$
|
|
24673
|
+
Opal.def(self, '$parse_quoted_text_attributes', $Substitutors_parse_quoted_text_attributes$75 = function $$parse_quoted_text_attributes(str) {
|
|
24623
24674
|
var $a, $b, self = this, before = nil, _ = nil, after = nil, attrs = nil, $writer = nil, id = nil, roles = nil;
|
|
24624
24675
|
|
|
24625
24676
|
|
|
@@ -24671,9 +24722,9 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
24671
24722
|
} else {
|
|
24672
24723
|
return $hash2(["role"], {"role": str})
|
|
24673
24724
|
};
|
|
24674
|
-
}, $Substitutors_parse_quoted_text_attributes$
|
|
24725
|
+
}, $Substitutors_parse_quoted_text_attributes$75.$$arity = 1);
|
|
24675
24726
|
|
|
24676
|
-
Opal.def(self, '$normalize_text', $Substitutors_normalize_text$
|
|
24727
|
+
Opal.def(self, '$normalize_text', $Substitutors_normalize_text$76 = function $$normalize_text(text, normalize_whitespace, unescape_closing_square_brackets) {
|
|
24677
24728
|
var $a, self = this;
|
|
24678
24729
|
|
|
24679
24730
|
|
|
@@ -24694,10 +24745,10 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
24694
24745
|
text = text.$gsub($$($nesting, 'ESC_R_SB'), $$($nesting, 'R_SB'))};
|
|
24695
24746
|
};
|
|
24696
24747
|
return text;
|
|
24697
|
-
}, $Substitutors_normalize_text$
|
|
24748
|
+
}, $Substitutors_normalize_text$76.$$arity = -2);
|
|
24698
24749
|
|
|
24699
|
-
Opal.def(self, '$split_simple_csv', $Substitutors_split_simple_csv$
|
|
24700
|
-
var $$
|
|
24750
|
+
Opal.def(self, '$split_simple_csv', $Substitutors_split_simple_csv$77 = function $$split_simple_csv(str) {
|
|
24751
|
+
var $$78, $$79, self = this, values = nil, accum = nil, quote_open = nil;
|
|
24701
24752
|
|
|
24702
24753
|
if ($truthy(str['$empty?']())) {
|
|
24703
24754
|
return []
|
|
@@ -24706,7 +24757,7 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
24706
24757
|
values = [];
|
|
24707
24758
|
accum = "";
|
|
24708
24759
|
quote_open = nil;
|
|
24709
|
-
$send(str, 'each_char', [], ($$
|
|
24760
|
+
$send(str, 'each_char', [], ($$78 = function(c){var self = $$78.$$s || this, $case = nil;
|
|
24710
24761
|
|
|
24711
24762
|
|
|
24712
24763
|
|
|
@@ -24722,19 +24773,19 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
24722
24773
|
return (accum = "");
|
|
24723
24774
|
}}
|
|
24724
24775
|
else if ("\""['$===']($case)) {return (quote_open = quote_open['$!']())}
|
|
24725
|
-
else {return (accum = $rb_plus(accum, c))}})();}, $$
|
|
24776
|
+
else {return (accum = $rb_plus(accum, c))}})();}, $$78.$$s = self, $$78.$$arity = 1, $$78));
|
|
24726
24777
|
return values['$<<'](accum.$strip());
|
|
24727
24778
|
} else {
|
|
24728
|
-
return $send(str.$split(","), 'map', [], ($$
|
|
24779
|
+
return $send(str.$split(","), 'map', [], ($$79 = function(it){var self = $$79.$$s || this;
|
|
24729
24780
|
|
|
24730
24781
|
|
|
24731
24782
|
|
|
24732
24783
|
if (it == null) {
|
|
24733
24784
|
it = nil;
|
|
24734
24785
|
};
|
|
24735
|
-
return it.$strip();}, $$
|
|
24786
|
+
return it.$strip();}, $$79.$$s = self, $$79.$$arity = 1, $$79))
|
|
24736
24787
|
}
|
|
24737
|
-
}, $Substitutors_split_simple_csv$
|
|
24788
|
+
}, $Substitutors_split_simple_csv$77.$$arity = 1);
|
|
24738
24789
|
})($nesting[0], $nesting)
|
|
24739
24790
|
})($nesting[0], $nesting)
|
|
24740
24791
|
};
|
|
@@ -24748,7 +24799,7 @@ Opal.modules["asciidoctor/version"] = function(Opal) {
|
|
|
24748
24799
|
|
|
24749
24800
|
var $nesting = [self].concat($parent_nesting);
|
|
24750
24801
|
|
|
24751
|
-
Opal.const_set($nesting[0], 'VERSION', "2.0.
|
|
24802
|
+
Opal.const_set($nesting[0], 'VERSION', "2.0.22")
|
|
24752
24803
|
})($nesting[0], $nesting)
|
|
24753
24804
|
};
|
|
24754
24805
|
|
|
@@ -24762,7 +24813,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
|
|
|
24762
24813
|
}
|
|
24763
24814
|
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;
|
|
24764
24815
|
|
|
24765
|
-
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?', '$
|
|
24816
|
+
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']);
|
|
24766
24817
|
return (function($base, $parent_nesting) {
|
|
24767
24818
|
var self = $module($base, 'Asciidoctor');
|
|
24768
24819
|
|
|
@@ -25167,7 +25218,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
|
|
|
25167
25218
|
image_path = self.$normalize_system_path(target_image)
|
|
25168
25219
|
};
|
|
25169
25220
|
if ($truthy($$$('::', 'File')['$readable?'](image_path))) {
|
|
25170
|
-
return "" + "data:" + (mimetype) + ";base64," + ($$$('::', '
|
|
25221
|
+
return "" + "data:" + (mimetype) + ";base64," + ([$$$('::', 'File').$binread(image_path)].$pack("m0"))
|
|
25171
25222
|
} else {
|
|
25172
25223
|
|
|
25173
25224
|
self.$logger().$warn("" + "image to embed not found or not readable: " + (image_path));
|
|
@@ -25198,7 +25249,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
|
|
|
25198
25249
|
f = nil;
|
|
25199
25250
|
};
|
|
25200
25251
|
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;
|
|
25201
|
-
return "" + "data:" + (mimetype) + ";base64," + (
|
|
25252
|
+
return "" + "data:" + (mimetype) + ";base64," + ([bindata].$pack("m0"));
|
|
25202
25253
|
} catch ($err) {
|
|
25203
25254
|
if (Opal.rescue($err, [$$($nesting, 'StandardError')])) {
|
|
25204
25255
|
try {
|
|
@@ -26326,7 +26377,7 @@ Opal.modules["asciidoctor/block"] = function(Opal) {
|
|
|
26326
26377
|
else if ("verbatim"['$===']($case) || "raw"['$===']($case)) {
|
|
26327
26378
|
result = self.$apply_subs(self.lines, self.subs);
|
|
26328
26379
|
if ($truthy($rb_lt(result.$size(), 2))) {
|
|
26329
|
-
return result['$[]'](0)
|
|
26380
|
+
return ($truthy($a = result['$[]'](0)) ? $a : "")
|
|
26330
26381
|
} else {
|
|
26331
26382
|
|
|
26332
26383
|
while ($truthy(($truthy($b = (first = result['$[]'](0))) ? first.$rstrip()['$empty?']() : $b))) {
|
|
@@ -26340,7 +26391,7 @@ Opal.modules["asciidoctor/block"] = function(Opal) {
|
|
|
26340
26391
|
else {
|
|
26341
26392
|
if (self.content_model['$==']("empty")) {
|
|
26342
26393
|
} else {
|
|
26343
|
-
self.$logger().$warn("" + "
|
|
26394
|
+
self.$logger().$warn("" + "unknown content model '" + (self.content_model) + "' for block: " + (self))
|
|
26344
26395
|
};
|
|
26345
26396
|
return nil;}})()
|
|
26346
26397
|
}, $Block_content$2.$$arity = 0);
|
|
@@ -27182,6 +27233,11 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27182
27233
|
$writer = ["catalog_assets", true];
|
|
27183
27234
|
$send(options, '[]=', Opal.to_a($writer));
|
|
27184
27235
|
$writer[$rb_minus($writer["length"], 1)];};
|
|
27236
|
+
if ($truthy(parent_doc.$options()['$[]']("to_dir"))) {
|
|
27237
|
+
|
|
27238
|
+
$writer = ["to_dir", parent_doc.$options()['$[]']("to_dir")];
|
|
27239
|
+
$send(options, '[]=', Opal.to_a($writer));
|
|
27240
|
+
$writer[$rb_minus($writer["length"], 1)];};
|
|
27185
27241
|
self.catalog = parent_doc.$catalog().$merge($hash2(["footnotes"], {"footnotes": []}));
|
|
27186
27242
|
self.attribute_overrides = (attr_overrides = parent_doc.$instance_variable_get("@attribute_overrides").$merge(parent_doc.$attributes()));
|
|
27187
27243
|
attr_overrides.$delete("compat-mode");
|
|
@@ -29001,7 +29057,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29001
29057
|
}
|
|
29002
29058
|
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;
|
|
29003
29059
|
|
|
29004
|
-
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', '$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', '$
|
|
29060
|
+
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', '$%']);
|
|
29005
29061
|
return (function($base, $parent_nesting) {
|
|
29006
29062
|
var self = $module($base, 'Asciidoctor');
|
|
29007
29063
|
|
|
@@ -29043,6 +29099,9 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29043
29099
|
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)));
|
|
29044
29100
|
Opal.const_set($nesting[0], 'NoOp', nil);
|
|
29045
29101
|
Opal.const_set($nesting[0], 'AuthorKeys', ["author", "authorinitials", "firstname", "middlename", "lastname", "email"]);
|
|
29102
|
+
Opal.const_set($nesting[0], 'ListContinuationMarker', $$$('::', 'Module').$new());
|
|
29103
|
+
Opal.const_set($nesting[0], 'ListContinuationPlaceholder', $$$('::', 'String').$new().$extend($$($nesting, 'ListContinuationMarker')));
|
|
29104
|
+
Opal.const_set($nesting[0], 'ListContinuationString', $$$('::', 'String').$new($$($nesting, 'LIST_CONTINUATION')).$extend($$($nesting, 'ListContinuationMarker')));
|
|
29046
29105
|
Opal.const_set($nesting[0], 'TableCellHorzAlignments', $hash2(["<", ">", "^"], {"<": "left", ">": "right", "^": "center"}));
|
|
29047
29106
|
Opal.const_set($nesting[0], 'TableCellVertAlignments', $hash2(["<", ">", "^"], {"<": "top", ">": "bottom", "^": "middle"}));
|
|
29048
29107
|
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"}));
|
|
@@ -29445,16 +29504,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29445
29504
|
if ($truthy(part)) {
|
|
29446
29505
|
if ($truthy(section['$blocks?']()['$!']())) {
|
|
29447
29506
|
if ($truthy(new_block.$style()['$!=']("partintro"))) {
|
|
29448
|
-
if (new_block.$context()['$==']("
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
$writer = ["open"];
|
|
29452
|
-
$send(new_block, 'context=', Opal.to_a($writer));
|
|
29453
|
-
$writer[$rb_minus($writer["length"], 1)];;
|
|
29507
|
+
if ($truthy((($b = new_block.$style()['$==']("open")) ? new_block.$context()['$==']("open") : new_block.$style()['$==']("open")))) {
|
|
29454
29508
|
|
|
29455
29509
|
$writer = ["partintro"];
|
|
29456
29510
|
$send(new_block, 'style=', Opal.to_a($writer));
|
|
29457
|
-
$writer[$rb_minus($writer["length"], 1)]
|
|
29511
|
+
$writer[$rb_minus($writer["length"], 1)];
|
|
29458
29512
|
} else {
|
|
29459
29513
|
|
|
29460
29514
|
|
|
@@ -29466,7 +29520,16 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29466
29520
|
$send(intro, 'style=', Opal.to_a($writer));
|
|
29467
29521
|
$writer[$rb_minus($writer["length"], 1)];;
|
|
29468
29522
|
section.$blocks()['$<<'](intro);
|
|
29469
|
-
}
|
|
29523
|
+
}
|
|
29524
|
+
} else if (new_block.$content_model()['$==']("simple")) {
|
|
29525
|
+
|
|
29526
|
+
|
|
29527
|
+
$writer = ["compound"];
|
|
29528
|
+
$send(new_block, 'content_model=', Opal.to_a($writer));
|
|
29529
|
+
$writer[$rb_minus($writer["length"], 1)];;
|
|
29530
|
+
new_block['$<<']($$($nesting, 'Block').$new(new_block, "paragraph", $hash2(["source", "subs"], {"source": new_block.$lines(), "subs": new_block.$subs()})));
|
|
29531
|
+
new_block.$lines().$clear();
|
|
29532
|
+
new_block.$subs().$clear();}
|
|
29470
29533
|
} else if (section.$blocks().$size()['$=='](1)) {
|
|
29471
29534
|
|
|
29472
29535
|
first_block = section.$blocks()['$[]'](0);
|
|
@@ -29478,12 +29541,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29478
29541
|
$writer = [(intro = $$($nesting, 'Block').$new(section, "open", $hash2(["content_model"], {"content_model": "compound"})))];
|
|
29479
29542
|
$send(new_block, 'parent=', Opal.to_a($writer));
|
|
29480
29543
|
$writer[$rb_minus($writer["length"], 1)];;
|
|
29481
|
-
|
|
29482
|
-
$writer = ["partintro"];
|
|
29483
|
-
$send(intro, 'style=', Opal.to_a($writer));
|
|
29484
|
-
$writer[$rb_minus($writer["length"], 1)];;
|
|
29485
|
-
section.$blocks().$shift();
|
|
29486
|
-
if (first_block.$style()['$==']("partintro")) {
|
|
29544
|
+
if (first_block.$style()['$==']((($writer = ["partintro"]), $send(intro, 'style=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))) {
|
|
29487
29545
|
|
|
29488
29546
|
|
|
29489
29547
|
$writer = ["paragraph"];
|
|
@@ -29493,6 +29551,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29493
29551
|
$writer = [nil];
|
|
29494
29552
|
$send(first_block, 'style=', Opal.to_a($writer));
|
|
29495
29553
|
$writer[$rb_minus($writer["length"], 1)];;};
|
|
29554
|
+
section.$blocks().$shift();
|
|
29496
29555
|
intro['$<<'](first_block);
|
|
29497
29556
|
section.$blocks()['$<<'](intro);};}};
|
|
29498
29557
|
($truthy($b = intro) ? $b : section).$blocks()['$<<'](new_block);
|
|
@@ -29595,6 +29654,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29595
29654
|
if ($truthy(($truthy($b = ($truthy($c = style) ? $$($nesting, 'Compliance').$strict_verbatim_paragraphs() : $c)) ? $$($nesting, 'VERBATIM_STYLES')['$include?'](style) : $b))) {
|
|
29596
29655
|
|
|
29597
29656
|
block_context = style.$to_sym();
|
|
29657
|
+
cloaked_context = "paragraph";
|
|
29598
29658
|
reader.$unshift_line(this_line);
|
|
29599
29659
|
break;;};
|
|
29600
29660
|
if ($truthy(text_only)) {
|
|
@@ -29961,7 +30021,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29961
30021
|
} else {
|
|
29962
30022
|
$case = block_context;
|
|
29963
30023
|
if ("listing"['$===']($case) || "source"['$===']($case)) {
|
|
29964
|
-
if ($truthy(($truthy($a = block_context['$==']("source")) ? $a : (
|
|
30024
|
+
if ($truthy(($truthy($a = block_context['$==']("source")) ? $a : (language = (function() {if ($truthy(attributes['$[]'](1))) {
|
|
30025
|
+
return nil
|
|
30026
|
+
} else {
|
|
30027
|
+
return ($truthy($b = attributes['$[]'](2)) ? $b : doc_attrs['$[]']("source-language"))
|
|
30028
|
+
}; return nil; })())))) {
|
|
29965
30029
|
|
|
29966
30030
|
if ($truthy(language)) {
|
|
29967
30031
|
|
|
@@ -29983,6 +30047,13 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29983
30047
|
$writer = ["language", doc_attrs['$[]']("source-language")];
|
|
29984
30048
|
$send(attributes, '[]=', Opal.to_a($writer));
|
|
29985
30049
|
$writer[$rb_minus($writer["length"], 1)];};
|
|
30050
|
+
if (cloaked_context['$==']("listing")) {
|
|
30051
|
+
} else {
|
|
30052
|
+
|
|
30053
|
+
$writer = ["cloaked-context", cloaked_context];
|
|
30054
|
+
$send(attributes, '[]=', Opal.to_a($writer));
|
|
30055
|
+
$writer[$rb_minus($writer["length"], 1)];
|
|
30056
|
+
};
|
|
29986
30057
|
};
|
|
29987
30058
|
if ($truthy(attributes['$key?']("linenums"))) {
|
|
29988
30059
|
} else if ($truthy(($truthy($a = attributes['$[]']("linenums-option")) ? $a : doc_attrs['$[]']("source-linenums-option")))) {
|
|
@@ -30032,6 +30103,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30032
30103
|
$send(attributes, '[]=', Opal.to_a($writer));
|
|
30033
30104
|
$writer[$rb_minus($writer["length"], 1)];
|
|
30034
30105
|
};
|
|
30106
|
+
|
|
30107
|
+
$writer = ["cloaked-context", cloaked_context];
|
|
30108
|
+
$send(attributes, '[]=', Opal.to_a($writer));
|
|
30109
|
+
$writer[$rb_minus($writer["length"], 1)];;
|
|
30035
30110
|
if ($truthy(attributes['$key?']("linenums"))) {
|
|
30036
30111
|
} else if ($truthy(($truthy($a = attributes['$[]']("linenums-option")) ? $a : doc_attrs['$[]']("source-linenums-option")))) {
|
|
30037
30112
|
|
|
@@ -30426,8 +30501,9 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30426
30501
|
reftext = reftext.$gsub("\\]", "]");
|
|
30427
30502
|
if ($truthy(reftext['$include?']($$($nesting, 'ATTR_REF_HEAD')))) {
|
|
30428
30503
|
reftext = document.$sub_attributes(reftext)};
|
|
30429
|
-
} else if ($truthy(
|
|
30430
|
-
|
|
30504
|
+
} else if ($truthy(reftext['$include?']($$($nesting, 'ATTR_REF_HEAD')))) {
|
|
30505
|
+
if ($truthy((reftext = document.$sub_attributes(reftext))['$empty?']())) {
|
|
30506
|
+
reftext = nil}}};
|
|
30431
30507
|
};
|
|
30432
30508
|
if ($truthy(document.$register("refs", [id, $$($nesting, 'Inline').$new(block, "anchor", reftext, $hash2(["type", "id"], {"type": "ref", "id": id}))]))) {
|
|
30433
30509
|
return nil
|
|
@@ -30651,7 +30727,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30651
30727
|
};
|
|
30652
30728
|
}, $Parser_parse_list_item$27.$$arity = -5);
|
|
30653
30729
|
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) {
|
|
30654
|
-
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;
|
|
30730
|
+
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;
|
|
30655
30731
|
|
|
30656
30732
|
|
|
30657
30733
|
|
|
@@ -30672,12 +30748,14 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30672
30748
|
this_line = reader.$read_line();
|
|
30673
30749
|
if ($truthy(self['$is_sibling_list_item?'](this_line, list_type, sibling_trait))) {
|
|
30674
30750
|
break;};
|
|
30751
|
+
if (this_line['$==']($$($nesting, 'LIST_CONTINUATION'))) {
|
|
30752
|
+
this_line = $$($nesting, 'ListContinuationString')};
|
|
30675
30753
|
prev_line = (function() {if ($truthy(buffer['$empty?']())) {
|
|
30676
30754
|
return nil
|
|
30677
30755
|
} else {
|
|
30678
30756
|
return buffer['$[]'](-1)
|
|
30679
30757
|
}; return nil; })();
|
|
30680
|
-
if (
|
|
30758
|
+
if ($truthy($$($nesting, 'ListContinuationMarker')['$==='](prev_line))) {
|
|
30681
30759
|
|
|
30682
30760
|
if (continuation['$==']("inactive")) {
|
|
30683
30761
|
|
|
@@ -30686,11 +30764,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30686
30764
|
if ($truthy(within_nested_list)) {
|
|
30687
30765
|
} else {
|
|
30688
30766
|
|
|
30689
|
-
$writer = [-1,
|
|
30767
|
+
$writer = [-1, $$($nesting, 'ListContinuationPlaceholder')];
|
|
30690
30768
|
$send(buffer, '[]=', Opal.to_a($writer));
|
|
30691
30769
|
$writer[$rb_minus($writer["length"], 1)];
|
|
30692
30770
|
};};
|
|
30693
|
-
if (
|
|
30771
|
+
if ($truthy($$($nesting, 'ListContinuationMarker')['$==='](this_line))) {
|
|
30694
30772
|
|
|
30695
30773
|
if ($truthy(continuation['$!=']("frozen"))) {
|
|
30696
30774
|
|
|
@@ -30699,16 +30777,36 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30699
30777
|
this_line = nil;
|
|
30700
30778
|
continue;;};};
|
|
30701
30779
|
if ($truthy((match = self['$is_delimited_block?'](this_line, true)))) {
|
|
30780
|
+
|
|
30702
30781
|
if (continuation['$==']("active")) {
|
|
30703
|
-
|
|
30704
|
-
buffer['$<<'](this_line);
|
|
30705
|
-
buffer.$concat(reader.$read_lines_until($hash2(["terminator", "read_last_line", "context"], {"terminator": match.$terminator(), "read_last_line": true, "context": nil})));
|
|
30706
|
-
continuation = "inactive";
|
|
30707
30782
|
} else {
|
|
30708
30783
|
break;
|
|
30709
|
-
}
|
|
30710
|
-
|
|
30711
|
-
|
|
30784
|
+
};
|
|
30785
|
+
buffer['$<<'](this_line);
|
|
30786
|
+
buffer.$concat(reader.$read_lines_until($hash2(["terminator", "read_last_line", "context"], {"terminator": match.$terminator(), "read_last_line": true, "context": nil})));
|
|
30787
|
+
continuation = "inactive";
|
|
30788
|
+
} else if ($truthy(($truthy($b = ($truthy($c = ($truthy($d = dlist) ? continuation['$!=']("active") : $d)) ? this_line['$start_with?']("[") : $c)) ? $$($nesting, 'BlockAttributeLineRx')['$match?'](this_line) : $b))) {
|
|
30789
|
+
|
|
30790
|
+
block_attribute_lines = [this_line];
|
|
30791
|
+
while ($truthy((next_line = reader.$peek_line()))) {
|
|
30792
|
+
|
|
30793
|
+
if ($truthy(self['$is_delimited_block?'](next_line))) {
|
|
30794
|
+
interrupt = true
|
|
30795
|
+
} else if ($truthy(($truthy($c = next_line['$empty?']()) ? $c : ($truthy($d = next_line['$start_with?']("[")) ? $$($nesting, 'BlockAttributeLineRx')['$match?'](next_line) : $d)))) {
|
|
30796
|
+
|
|
30797
|
+
block_attribute_lines['$<<'](reader.$read_line());
|
|
30798
|
+
continue;;
|
|
30799
|
+
} else if ($truthy(($truthy($c = $$($nesting, 'AnyListRx')['$match?'](next_line)) ? self['$is_sibling_list_item?'](next_line, list_type, sibling_trait)['$!']() : $c))) {
|
|
30800
|
+
buffer.$concat(block_attribute_lines)
|
|
30801
|
+
} else {
|
|
30802
|
+
interrupt = true
|
|
30803
|
+
};
|
|
30804
|
+
break;;
|
|
30805
|
+
};
|
|
30806
|
+
if ($truthy(interrupt)) {
|
|
30807
|
+
|
|
30808
|
+
reader.$unshift_lines(block_attribute_lines);
|
|
30809
|
+
break;;};
|
|
30712
30810
|
} else if ($truthy((($b = continuation['$==']("active")) ? this_line['$empty?']()['$!']() : continuation['$==']("active")))) {
|
|
30713
30811
|
if ($truthy($$($nesting, 'LiteralParagraphRx')['$match?'](this_line))) {
|
|
30714
30812
|
|
|
@@ -30726,7 +30824,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30726
30824
|
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})))
|
|
30727
30825
|
};
|
|
30728
30826
|
continuation = "inactive";
|
|
30729
|
-
} else if ($truthy(($truthy($b = ($truthy($c = $$($nesting, 'BlockTitleRx')['$match?'](this_line)) ? $c : $$($nesting, 'BlockAttributeLineRx')['$match?'](this_line))) ? $b : $$($nesting, 'AttributeEntryRx')['$match?'](this_line)))) {
|
|
30827
|
+
} 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['$=='](":"))))) {
|
|
30730
30828
|
buffer['$<<'](this_line)
|
|
30731
30829
|
} else {
|
|
30732
30830
|
|
|
@@ -30741,7 +30839,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30741
30839
|
if (ctx == null) {
|
|
30742
30840
|
ctx = nil;
|
|
30743
30841
|
};
|
|
30744
|
-
return $$($nesting, 'ListRxMap')['$[]'](ctx)['
|
|
30842
|
+
return $$($nesting, 'ListRxMap')['$[]'](ctx)['$=~'](this_line);}, $$30.$$s = self, $$30.$$arity = 1, $$30))))) {
|
|
30745
30843
|
|
|
30746
30844
|
within_nested_list = true;
|
|
30747
30845
|
if ($truthy((($b = nested_list_type['$==']("dlist")) ? (($c = $gvars['~']) === nil ? nil : $c['$[]'](3))['$nil_or_empty?']() : nested_list_type['$==']("dlist")))) {
|
|
@@ -30762,7 +30860,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30762
30860
|
if (this_line['$==']($$($nesting, 'LIST_CONTINUATION'))) {
|
|
30763
30861
|
|
|
30764
30862
|
detached_continuation = buffer.$size();
|
|
30765
|
-
buffer['$<<'](
|
|
30863
|
+
buffer['$<<']($$($nesting, 'ListContinuationString'));
|
|
30766
30864
|
} else if ($truthy(has_text)) {
|
|
30767
30865
|
if ($truthy(self['$is_sibling_list_item?'](this_line, list_type, sibling_trait))) {
|
|
30768
30866
|
break;
|
|
@@ -30806,6 +30904,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30806
30904
|
buffer['$<<'](this_line);
|
|
30807
30905
|
has_text = true;
|
|
30808
30906
|
};
|
|
30907
|
+
} else if ($truthy($$($nesting, 'ListContinuationMarker')['$==='](this_line))) {
|
|
30908
|
+
|
|
30909
|
+
has_text = true;
|
|
30910
|
+
buffer['$<<'](this_line);
|
|
30809
30911
|
} else {
|
|
30810
30912
|
|
|
30811
30913
|
if ($truthy(this_line['$empty?']())) {
|
|
@@ -30836,17 +30938,18 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30836
30938
|
reader.$unshift_line(this_line)};
|
|
30837
30939
|
if ($truthy(detached_continuation)) {
|
|
30838
30940
|
|
|
30839
|
-
$writer = [detached_continuation,
|
|
30941
|
+
$writer = [detached_continuation, $$($nesting, 'ListContinuationPlaceholder')];
|
|
30840
30942
|
$send(buffer, '[]=', Opal.to_a($writer));
|
|
30841
30943
|
$writer[$rb_minus($writer["length"], 1)];};
|
|
30842
30944
|
while (!($truthy(buffer['$empty?']()))) {
|
|
30843
|
-
if ($truthy((last_line = buffer['$[]'](-1))
|
|
30844
|
-
buffer.$pop()
|
|
30845
|
-
} else {
|
|
30945
|
+
if ($truthy($$($nesting, 'ListContinuationMarker')['$===']((last_line = buffer['$[]'](-1))))) {
|
|
30846
30946
|
|
|
30847
|
-
|
|
30848
|
-
buffer.$pop()};
|
|
30947
|
+
buffer.$pop();
|
|
30849
30948
|
break;;
|
|
30949
|
+
} else if ($truthy(last_line['$empty?']())) {
|
|
30950
|
+
buffer.$pop()
|
|
30951
|
+
} else {
|
|
30952
|
+
break;
|
|
30850
30953
|
}
|
|
30851
30954
|
};
|
|
30852
30955
|
return buffer;
|
|
@@ -32333,7 +32436,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32333
32436
|
(function($base, $super, $parent_nesting) {
|
|
32334
32437
|
var self = $klass($base, $super, 'PathResolver');
|
|
32335
32438
|
|
|
32336
|
-
var $nesting = [self].concat($parent_nesting), $PathResolver_initialize$1, $PathResolver_absolute_path$ques$2, $a, $PathResolver_root$ques$3, $
|
|
32439
|
+
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;
|
|
32337
32440
|
|
|
32338
32441
|
self.$$prototype.file_separator = self.$$prototype._partition_path_web = self.$$prototype._partition_path_sys = self.$$prototype.working_dir = nil;
|
|
32339
32442
|
|
|
@@ -32344,6 +32447,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32344
32447
|
Opal.const_set($nesting[0], 'SLASH', "/");
|
|
32345
32448
|
Opal.const_set($nesting[0], 'BACKSLASH', "\\");
|
|
32346
32449
|
Opal.const_set($nesting[0], 'DOUBLE_SLASH', "//");
|
|
32450
|
+
Opal.const_set($nesting[0], 'URI_CLASSLOADER', "uri:classloader:");
|
|
32347
32451
|
Opal.const_set($nesting[0], 'WindowsRootRx', /^(?:[a-zA-Z]:)?[\\\/]/);
|
|
32348
32452
|
self.$attr_accessor("file_separator");
|
|
32349
32453
|
self.$attr_accessor("working_dir");
|
|
@@ -32389,23 +32493,30 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32389
32493
|
|
|
32390
32494
|
return ($truthy($a = self['$absolute_path?'](path)) ? $a : path['$start_with?']("file://", "http://", "https://"))
|
|
32391
32495
|
}, $PathResolver_root$ques$3.$$arity = 1)
|
|
32496
|
+
} else if ($$$('::', 'RUBY_ENGINE')['$==']("jruby")) {
|
|
32497
|
+
|
|
32498
|
+
Opal.def(self, '$root?', $PathResolver_root$ques$4 = function(path) {
|
|
32499
|
+
var $a, self = this;
|
|
32500
|
+
|
|
32501
|
+
return ($truthy($a = self['$absolute_path?'](path)) ? $a : path['$start_with?']($$($nesting, 'URI_CLASSLOADER')))
|
|
32502
|
+
}, $PathResolver_root$ques$4.$$arity = 1)
|
|
32392
32503
|
} else {
|
|
32393
32504
|
Opal.alias(self, "root?", "absolute_path?")
|
|
32394
32505
|
};
|
|
32395
32506
|
|
|
32396
|
-
Opal.def(self, '$unc?', $PathResolver_unc$ques$
|
|
32507
|
+
Opal.def(self, '$unc?', $PathResolver_unc$ques$5 = function(path) {
|
|
32397
32508
|
var self = this;
|
|
32398
32509
|
|
|
32399
32510
|
return path['$start_with?']($$($nesting, 'DOUBLE_SLASH'))
|
|
32400
|
-
}, $PathResolver_unc$ques$
|
|
32511
|
+
}, $PathResolver_unc$ques$5.$$arity = 1);
|
|
32401
32512
|
|
|
32402
|
-
Opal.def(self, '$web_root?', $PathResolver_web_root$ques$
|
|
32513
|
+
Opal.def(self, '$web_root?', $PathResolver_web_root$ques$6 = function(path) {
|
|
32403
32514
|
var self = this;
|
|
32404
32515
|
|
|
32405
32516
|
return path['$start_with?']($$($nesting, 'SLASH'))
|
|
32406
|
-
}, $PathResolver_web_root$ques$
|
|
32517
|
+
}, $PathResolver_web_root$ques$6.$$arity = 1);
|
|
32407
32518
|
|
|
32408
|
-
Opal.def(self, '$descends_from?', $PathResolver_descends_from$ques$
|
|
32519
|
+
Opal.def(self, '$descends_from?', $PathResolver_descends_from$ques$7 = function(path, base) {
|
|
32409
32520
|
var $a, self = this;
|
|
32410
32521
|
|
|
32411
32522
|
if (base['$=='](path)) {
|
|
@@ -32415,9 +32526,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32415
32526
|
} else {
|
|
32416
32527
|
return ($truthy($a = path['$start_with?']($rb_plus(base, $$($nesting, 'SLASH')))) ? $rb_plus(base.$length(), 1) : $a)
|
|
32417
32528
|
}
|
|
32418
|
-
}, $PathResolver_descends_from$ques$
|
|
32529
|
+
}, $PathResolver_descends_from$ques$7.$$arity = 2);
|
|
32419
32530
|
|
|
32420
|
-
Opal.def(self, '$relative_path', $PathResolver_relative_path$
|
|
32531
|
+
Opal.def(self, '$relative_path', $PathResolver_relative_path$8 = function $$relative_path(path, base) {
|
|
32421
32532
|
var self = this, offset = nil;
|
|
32422
32533
|
|
|
32423
32534
|
if ($truthy(self['$root?'](path))) {
|
|
@@ -32438,9 +32549,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32438
32549
|
} else {
|
|
32439
32550
|
return path
|
|
32440
32551
|
}
|
|
32441
|
-
}, $PathResolver_relative_path$
|
|
32552
|
+
}, $PathResolver_relative_path$8.$$arity = 2);
|
|
32442
32553
|
|
|
32443
|
-
Opal.def(self, '$posixify', $PathResolver_posixify$
|
|
32554
|
+
Opal.def(self, '$posixify', $PathResolver_posixify$9 = function $$posixify(path) {
|
|
32444
32555
|
var $a, self = this;
|
|
32445
32556
|
|
|
32446
32557
|
if ($truthy(path)) {
|
|
@@ -32453,18 +32564,18 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32453
32564
|
} else {
|
|
32454
32565
|
return ""
|
|
32455
32566
|
}
|
|
32456
|
-
}, $PathResolver_posixify$
|
|
32567
|
+
}, $PathResolver_posixify$9.$$arity = 1);
|
|
32457
32568
|
Opal.alias(self, "posixfy", "posixify");
|
|
32458
32569
|
|
|
32459
|
-
Opal.def(self, '$expand_path', $PathResolver_expand_path$
|
|
32460
|
-
var $a, $b, $$
|
|
32570
|
+
Opal.def(self, '$expand_path', $PathResolver_expand_path$10 = function $$expand_path(path) {
|
|
32571
|
+
var $a, $b, $$11, self = this, path_segments = nil, path_root = nil, resolved_segments = nil;
|
|
32461
32572
|
|
|
32462
32573
|
|
|
32463
32574
|
$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;
|
|
32464
32575
|
if ($truthy(path['$include?']($$($nesting, 'DOT_DOT')))) {
|
|
32465
32576
|
|
|
32466
32577
|
resolved_segments = [];
|
|
32467
|
-
$send(path_segments, 'each', [], ($$
|
|
32578
|
+
$send(path_segments, 'each', [], ($$11 = function(segment){var self = $$11.$$s || this;
|
|
32468
32579
|
|
|
32469
32580
|
|
|
32470
32581
|
|
|
@@ -32475,14 +32586,14 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32475
32586
|
return resolved_segments.$pop()
|
|
32476
32587
|
} else {
|
|
32477
32588
|
return resolved_segments['$<<'](segment)
|
|
32478
|
-
};}, $$
|
|
32589
|
+
};}, $$11.$$s = self, $$11.$$arity = 1, $$11));
|
|
32479
32590
|
return self.$join_path(resolved_segments, path_root);
|
|
32480
32591
|
} else {
|
|
32481
32592
|
return self.$join_path(path_segments, path_root)
|
|
32482
32593
|
};
|
|
32483
|
-
}, $PathResolver_expand_path$
|
|
32594
|
+
}, $PathResolver_expand_path$10.$$arity = 1);
|
|
32484
32595
|
|
|
32485
|
-
Opal.def(self, '$partition_path', $PathResolver_partition_path$
|
|
32596
|
+
Opal.def(self, '$partition_path', $PathResolver_partition_path$12 = function $$partition_path(path, web) {
|
|
32486
32597
|
var self = this, result = nil, cache = nil, posix_path = nil, root = nil, path_segments = nil, $writer = nil;
|
|
32487
32598
|
|
|
32488
32599
|
|
|
@@ -32507,6 +32618,8 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32507
32618
|
root = $$($nesting, 'DOUBLE_SLASH')
|
|
32508
32619
|
} else if ($truthy(posix_path['$start_with?']($$($nesting, 'SLASH')))) {
|
|
32509
32620
|
root = $$($nesting, 'SLASH')
|
|
32621
|
+
} else if ($truthy(posix_path['$start_with?']($$($nesting, 'URI_CLASSLOADER')))) {
|
|
32622
|
+
root = posix_path.$slice(0, $$($nesting, 'URI_CLASSLOADER').$length())
|
|
32510
32623
|
} else {
|
|
32511
32624
|
root = posix_path.$slice(0, $rb_plus(posix_path.$index($$($nesting, 'SLASH')), 1))
|
|
32512
32625
|
}
|
|
@@ -32523,9 +32636,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32523
32636
|
$writer = [path, [path_segments, root]];
|
|
32524
32637
|
$send(cache, '[]=', Opal.to_a($writer));
|
|
32525
32638
|
return $writer[$rb_minus($writer["length"], 1)];;
|
|
32526
|
-
}, $PathResolver_partition_path$
|
|
32639
|
+
}, $PathResolver_partition_path$12.$$arity = -2);
|
|
32527
32640
|
|
|
32528
|
-
Opal.def(self, '$join_path', $PathResolver_join_path$
|
|
32641
|
+
Opal.def(self, '$join_path', $PathResolver_join_path$13 = function $$join_path(segments, root) {
|
|
32529
32642
|
var self = this;
|
|
32530
32643
|
|
|
32531
32644
|
|
|
@@ -32539,10 +32652,10 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32539
32652
|
|
|
32540
32653
|
return segments.$join($$($nesting, 'SLASH'));
|
|
32541
32654
|
};
|
|
32542
|
-
}, $PathResolver_join_path$
|
|
32655
|
+
}, $PathResolver_join_path$13.$$arity = -2);
|
|
32543
32656
|
|
|
32544
|
-
Opal.def(self, '$system_path', $PathResolver_system_path$
|
|
32545
|
-
var $a, $b, $$
|
|
32657
|
+
Opal.def(self, '$system_path', $PathResolver_system_path$14 = function $$system_path(target, start, jail, opts) {
|
|
32658
|
+
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;
|
|
32546
32659
|
|
|
32547
32660
|
|
|
32548
32661
|
|
|
@@ -32633,7 +32746,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32633
32746
|
$b = self.$partition_path(jail), $a = Opal.to_ary($b), (jail_segments = ($a[0] == null ? nil : $a[0])), $b
|
|
32634
32747
|
};
|
|
32635
32748
|
warned = false;
|
|
32636
|
-
$send(unresolved_segments, 'each', [], ($$
|
|
32749
|
+
$send(unresolved_segments, 'each', [], ($$15 = function(segment){var self = $$15.$$s || this, $c;
|
|
32637
32750
|
|
|
32638
32751
|
|
|
32639
32752
|
|
|
@@ -32656,9 +32769,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32656
32769
|
}
|
|
32657
32770
|
} else {
|
|
32658
32771
|
return resolved_segments['$<<'](segment)
|
|
32659
|
-
};}, $$
|
|
32772
|
+
};}, $$15.$$s = self, $$15.$$arity = 1, $$15));
|
|
32660
32773
|
} else {
|
|
32661
|
-
$send(unresolved_segments, 'each', [], ($$
|
|
32774
|
+
$send(unresolved_segments, 'each', [], ($$16 = function(segment){var self = $$16.$$s || this;
|
|
32662
32775
|
|
|
32663
32776
|
|
|
32664
32777
|
|
|
@@ -32669,7 +32782,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32669
32782
|
return resolved_segments.$pop()
|
|
32670
32783
|
} else {
|
|
32671
32784
|
return resolved_segments['$<<'](segment)
|
|
32672
|
-
};}, $$
|
|
32785
|
+
};}, $$16.$$s = self, $$16.$$arity = 1, $$16))
|
|
32673
32786
|
};};
|
|
32674
32787
|
if ($truthy(recheck)) {
|
|
32675
32788
|
|
|
@@ -32690,10 +32803,10 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32690
32803
|
} else {
|
|
32691
32804
|
return self.$join_path(resolved_segments, jail_root)
|
|
32692
32805
|
};
|
|
32693
|
-
}, $PathResolver_system_path$
|
|
32806
|
+
}, $PathResolver_system_path$14.$$arity = -2);
|
|
32694
32807
|
|
|
32695
|
-
Opal.def(self, '$web_path', $PathResolver_web_path$
|
|
32696
|
-
var $a, $b, $$
|
|
32808
|
+
Opal.def(self, '$web_path', $PathResolver_web_path$17 = function $$web_path(target, start) {
|
|
32809
|
+
var $a, $b, $$18, self = this, uri_prefix = nil, target_segments = nil, target_root = nil, resolved_segments = nil, resolved_path = nil;
|
|
32697
32810
|
|
|
32698
32811
|
|
|
32699
32812
|
|
|
@@ -32712,7 +32825,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32712
32825
|
};
|
|
32713
32826
|
$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;
|
|
32714
32827
|
resolved_segments = [];
|
|
32715
|
-
$send(target_segments, 'each', [], ($$
|
|
32828
|
+
$send(target_segments, 'each', [], ($$18 = function(segment){var self = $$18.$$s || this, $c;
|
|
32716
32829
|
|
|
32717
32830
|
|
|
32718
32831
|
|
|
@@ -32733,7 +32846,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32733
32846
|
}
|
|
32734
32847
|
} else {
|
|
32735
32848
|
return resolved_segments['$<<'](segment)
|
|
32736
|
-
};}, $$
|
|
32849
|
+
};}, $$18.$$s = self, $$18.$$arity = 1, $$18));
|
|
32737
32850
|
if ($truthy((resolved_path = self.$join_path(resolved_segments, target_root))['$include?'](" "))) {
|
|
32738
32851
|
resolved_path = resolved_path.$gsub(" ", "%20")};
|
|
32739
32852
|
if ($truthy(uri_prefix)) {
|
|
@@ -32741,9 +32854,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32741
32854
|
} else {
|
|
32742
32855
|
return resolved_path
|
|
32743
32856
|
};
|
|
32744
|
-
}, $PathResolver_web_path$
|
|
32857
|
+
}, $PathResolver_web_path$17.$$arity = -2);
|
|
32745
32858
|
self.$private();
|
|
32746
|
-
return (Opal.def(self, '$extract_uri_prefix', $PathResolver_extract_uri_prefix$
|
|
32859
|
+
return (Opal.def(self, '$extract_uri_prefix', $PathResolver_extract_uri_prefix$19 = function $$extract_uri_prefix(str) {
|
|
32747
32860
|
var $a, self = this;
|
|
32748
32861
|
|
|
32749
32862
|
if ($truthy(($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$=~'](str) : $a))) {
|
|
@@ -32751,7 +32864,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
32751
32864
|
} else {
|
|
32752
32865
|
return str
|
|
32753
32866
|
}
|
|
32754
|
-
}, $PathResolver_extract_uri_prefix$
|
|
32867
|
+
}, $PathResolver_extract_uri_prefix$19.$$arity = 1), nil) && 'extract_uri_prefix';
|
|
32755
32868
|
})($nesting[0], null, $nesting)
|
|
32756
32869
|
})($nesting[0], $nesting)
|
|
32757
32870
|
};
|
|
@@ -32778,7 +32891,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
32778
32891
|
}
|
|
32779
32892
|
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;
|
|
32780
32893
|
|
|
32781
|
-
Opal.add_stubs(['$include', '$attr_reader', '$+', '$attr_accessor', '$!', '$===', '$split', '$file', '$dir', '$dirname', '$path', '$basename', '$lineno', '$reverse', '$prepare_lines', '$empty?', '$nil_or_empty?', '$peek_line', '
|
|
32894
|
+
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']);
|
|
32782
32895
|
return (function($base, $parent_nesting) {
|
|
32783
32896
|
var self = $module($base, 'Asciidoctor');
|
|
32784
32897
|
|
|
@@ -32923,26 +33036,31 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
32923
33036
|
}, $Reader_next_line_empty$ques$7.$$arity = 0);
|
|
32924
33037
|
|
|
32925
33038
|
Opal.def(self, '$peek_line', $Reader_peek_line$8 = function $$peek_line(direct) {
|
|
32926
|
-
var $a, self = this, line = nil;
|
|
33039
|
+
var $a, $b, self = this, next_line = nil, line = nil;
|
|
32927
33040
|
|
|
32928
33041
|
|
|
32929
33042
|
|
|
32930
33043
|
if (direct == null) {
|
|
32931
33044
|
direct = false;
|
|
32932
33045
|
};
|
|
32933
|
-
|
|
32934
|
-
if ($truthy(self.unescape_next_line)) {
|
|
32935
|
-
|
|
32936
|
-
return (line = self.lines['$[]'](-1)).$slice(1, line.$length());
|
|
32937
|
-
} else {
|
|
32938
|
-
return self.lines['$[]'](-1)
|
|
32939
|
-
}
|
|
32940
|
-
} else if ($truthy(self.lines['$empty?']())) {
|
|
33046
|
+
while ($truthy(true)) {
|
|
32941
33047
|
|
|
32942
|
-
|
|
32943
|
-
|
|
32944
|
-
|
|
32945
|
-
|
|
33048
|
+
next_line = self.lines['$[]'](-1);
|
|
33049
|
+
if ($truthy(($truthy($b = direct) ? $b : $rb_gt(self.look_ahead, 0)))) {
|
|
33050
|
+
return (function() {if ($truthy(self.unescape_next_line)) {
|
|
33051
|
+
|
|
33052
|
+
return next_line.$slice(1, next_line.$length());
|
|
33053
|
+
} else {
|
|
33054
|
+
return next_line
|
|
33055
|
+
}; return nil; })()
|
|
33056
|
+
} else if ($truthy(next_line)) {
|
|
33057
|
+
if ($truthy((line = self.$process_line(next_line)))) {
|
|
33058
|
+
return line}
|
|
33059
|
+
} else {
|
|
33060
|
+
|
|
33061
|
+
self.look_ahead = 0;
|
|
33062
|
+
return nil;
|
|
33063
|
+
};
|
|
32946
33064
|
};
|
|
32947
33065
|
}, $Reader_peek_line$8.$$arity = -1);
|
|
32948
33066
|
|
|
@@ -33557,27 +33675,21 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
33557
33675
|
};
|
|
33558
33676
|
self.path = (path = ($truthy($a = path) ? $a : $$$('::', 'File').$basename(file)));
|
|
33559
33677
|
if ($truthy((self.process_lines = $send(file, 'end_with?', Opal.to_a($$($nesting, 'ASCIIDOC_EXTENSIONS').$keys()))))) {
|
|
33560
|
-
|
|
33561
|
-
$writer = [path.$slice(0, path.$rindex(".")), (function() {if ($truthy(attributes['$[]']("partial-option"))) {
|
|
33678
|
+
($truthy($a = self.includes['$[]'](path.$slice(0, path.$rindex(".")))) ? $a : (($writer = [path.$slice(0, path.$rindex(".")), (function() {if ($truthy(attributes['$[]']("partial-option"))) {
|
|
33562
33679
|
return nil
|
|
33563
33680
|
} else {
|
|
33564
33681
|
return true
|
|
33565
|
-
}; return nil; })()];
|
|
33566
|
-
$send(self.includes, '[]=', Opal.to_a($writer));
|
|
33567
|
-
$writer[$rb_minus($writer["length"], 1)];};
|
|
33682
|
+
}; return nil; })()]), $send(self.includes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))};
|
|
33568
33683
|
} else {
|
|
33569
33684
|
|
|
33570
33685
|
self.dir = ".";
|
|
33571
33686
|
self.process_lines = true;
|
|
33572
33687
|
if ($truthy((self.path = path))) {
|
|
33573
|
-
|
|
33574
|
-
$writer = [$$($nesting, 'Helpers').$rootname(path), (function() {if ($truthy(attributes['$[]']("partial-option"))) {
|
|
33688
|
+
($truthy($a = self.includes['$[]']($$($nesting, 'Helpers').$rootname(path))) ? $a : (($writer = [$$($nesting, 'Helpers').$rootname(path), (function() {if ($truthy(attributes['$[]']("partial-option"))) {
|
|
33575
33689
|
return nil
|
|
33576
33690
|
} else {
|
|
33577
33691
|
return true
|
|
33578
|
-
}; return nil; })()]
|
|
33579
|
-
$send(self.includes, '[]=', Opal.to_a($writer));
|
|
33580
|
-
$writer[$rb_minus($writer["length"], 1)];
|
|
33692
|
+
}; return nil; })()]), $send(self.includes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))
|
|
33581
33693
|
} else {
|
|
33582
33694
|
self.path = "<stdin>"
|
|
33583
33695
|
};
|
|
@@ -33959,7 +34071,10 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
33959
34071
|
ext.$process_method()['$[]'](doc, self, expanded_target, doc.$parse_attributes(attrlist, [], $hash2(["sub_input"], {"sub_input": true})));
|
|
33960
34072
|
return true;
|
|
33961
34073
|
} else if ($truthy($rb_ge(doc.$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')))) {
|
|
33962
|
-
|
|
34074
|
+
|
|
34075
|
+
if ($truthy(expanded_target['$include?'](" "))) {
|
|
34076
|
+
expanded_target = "" + "pass:c[" + (expanded_target) + "]"};
|
|
34077
|
+
return self.$replace_next_line("" + "link:" + (expanded_target) + "[role=include]");
|
|
33963
34078
|
} else if ($truthy(self.maxdepth)) {
|
|
33964
34079
|
|
|
33965
34080
|
if ($truthy($rb_ge(self.include_stack.$size(), self.maxdepth['$[]']("curr")))) {
|
|
@@ -34271,6 +34386,8 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34271
34386
|
self.$push_include(inc_lines, inc_path, relpath, inc_offset, parsed_attrs);};
|
|
34272
34387
|
} else {
|
|
34273
34388
|
|
|
34389
|
+
inc_content = nil;
|
|
34390
|
+
|
|
34274
34391
|
try {
|
|
34275
34392
|
|
|
34276
34393
|
inc_content = $send(reader, 'call', [inc_path, read_mode], ($$79 = function(f){var self = $$79.$$s || this;
|
|
@@ -34282,7 +34399,6 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34282
34399
|
};
|
|
34283
34400
|
return f.$read();}, $$79.$$s = self, $$79.$$arity = 1, $$79));
|
|
34284
34401
|
self.$shift();
|
|
34285
|
-
self.$push_include(inc_content, inc_path, relpath, 1, parsed_attrs);
|
|
34286
34402
|
} catch ($err) {
|
|
34287
34403
|
if (Opal.rescue($err, [$$($nesting, 'StandardError')])) {
|
|
34288
34404
|
try {
|
|
@@ -34291,7 +34407,8 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34291
34407
|
return self.$replace_next_line("" + "Unresolved directive in " + (self.path) + " - include::" + (expanded_target) + "[" + (attrlist) + "]");
|
|
34292
34408
|
} finally { Opal.pop_exception() }
|
|
34293
34409
|
} else { throw $err; }
|
|
34294
|
-
}
|
|
34410
|
+
};;
|
|
34411
|
+
self.$push_include(inc_content, inc_path, relpath, 1, parsed_attrs);
|
|
34295
34412
|
};
|
|
34296
34413
|
return true;
|
|
34297
34414
|
} else {
|
|
@@ -34313,7 +34430,10 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34313
34430
|
|
|
34314
34431
|
if ($truthy(doc['$attr?']("allow-uri-read"))) {
|
|
34315
34432
|
} else {
|
|
34316
|
-
|
|
34433
|
+
|
|
34434
|
+
if ($truthy(target['$include?'](" "))) {
|
|
34435
|
+
target = "" + "pass:c[" + (target) + "]"};
|
|
34436
|
+
return self.$replace_next_line("" + "link:" + (target) + "[role=include]");
|
|
34317
34437
|
};
|
|
34318
34438
|
if ($truthy(doc['$attr?']("cache-uri"))) {
|
|
34319
34439
|
if ($truthy((($b = $$$('::', 'OpenURI', 'skip_raise')) && ($a = $$$($b, 'Cache', 'skip_raise')) ? 'constant' : nil))) {
|
|
@@ -34370,39 +34490,37 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34370
34490
|
}, $PreprocessorReader_split_delimited_value$83.$$arity = 1);
|
|
34371
34491
|
|
|
34372
34492
|
Opal.def(self, '$skip_front_matter!', $PreprocessorReader_skip_front_matter$excl$84 = function(data, increment_linenos) {
|
|
34373
|
-
var $a, $b, self = this,
|
|
34493
|
+
var $a, $b, self = this, delim = nil, original_data = nil, front_matter = nil, eof = nil;
|
|
34374
34494
|
|
|
34375
34495
|
|
|
34376
34496
|
|
|
34377
34497
|
if (increment_linenos == null) {
|
|
34378
34498
|
increment_linenos = true;
|
|
34379
34499
|
};
|
|
34380
|
-
|
|
34381
|
-
|
|
34500
|
+
if ((delim = data['$[]'](0))['$==']("---")) {
|
|
34501
|
+
} else {
|
|
34502
|
+
return nil
|
|
34503
|
+
};
|
|
34504
|
+
original_data = data.$drop(0);
|
|
34505
|
+
data.$shift();
|
|
34506
|
+
front_matter = [];
|
|
34507
|
+
if ($truthy(increment_linenos)) {
|
|
34508
|
+
self.lineno = $rb_plus(self.lineno, 1)};
|
|
34509
|
+
while (!($truthy(($truthy($b = (eof = data['$empty?']())) ? $b : data['$[]'](0)['$=='](delim))))) {
|
|
34382
34510
|
|
|
34383
|
-
|
|
34384
|
-
data.$shift();
|
|
34385
|
-
front_matter = [];
|
|
34511
|
+
front_matter['$<<'](data.$shift());
|
|
34386
34512
|
if ($truthy(increment_linenos)) {
|
|
34387
34513
|
self.lineno = $rb_plus(self.lineno, 1)};
|
|
34388
|
-
|
|
34389
|
-
|
|
34390
|
-
|
|
34391
|
-
|
|
34392
|
-
|
|
34393
|
-
|
|
34394
|
-
|
|
34395
|
-
|
|
34396
|
-
|
|
34397
|
-
|
|
34398
|
-
self.lineno = 0};
|
|
34399
|
-
front_matter = nil;
|
|
34400
|
-
} else {
|
|
34401
|
-
|
|
34402
|
-
data.$shift();
|
|
34403
|
-
if ($truthy(increment_linenos)) {
|
|
34404
|
-
self.lineno = $rb_plus(self.lineno, 1)};
|
|
34405
|
-
};};
|
|
34514
|
+
};
|
|
34515
|
+
if ($truthy(eof)) {
|
|
34516
|
+
|
|
34517
|
+
$send(data, 'unshift', Opal.to_a(original_data));
|
|
34518
|
+
if ($truthy(increment_linenos)) {
|
|
34519
|
+
self.lineno = $rb_minus(self.lineno, original_data.$size())};
|
|
34520
|
+
return nil;};
|
|
34521
|
+
data.$shift();
|
|
34522
|
+
if ($truthy(increment_linenos)) {
|
|
34523
|
+
self.lineno = $rb_plus(self.lineno, 1)};
|
|
34406
34524
|
return front_matter;
|
|
34407
34525
|
}, $PreprocessorReader_skip_front_matter$excl$84.$$arity = -2);
|
|
34408
34526
|
return (Opal.def(self, '$resolve_expr_val', $PreprocessorReader_resolve_expr_val$85 = function $$resolve_expr_val(val) {
|
|
@@ -36284,7 +36402,7 @@ Opal.modules["asciidoctor/syntax_highlighter/highlightjs"] = function(Opal) {
|
|
|
36284
36402
|
return "" + "<script src=\"" + (base_url) + "/languages/" + (lang.$lstrip()) + ".min.js\"></script>\n";}, $$6.$$s = self, $$6.$$arity = 1, $$6)).$join()
|
|
36285
36403
|
} else {
|
|
36286
36404
|
return ""
|
|
36287
|
-
}; 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>"
|
|
36405
|
+
}; 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>"
|
|
36288
36406
|
};
|
|
36289
36407
|
}, $HighlightJsAdapter_docinfo$5.$$arity = 3), nil) && 'docinfo';
|
|
36290
36408
|
})($$($nesting, 'SyntaxHighlighter'), $$$($$($nesting, 'SyntaxHighlighter'), 'Base'), $nesting)
|
|
@@ -37852,7 +37970,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
37852
37970
|
|
|
37853
37971
|
return syntax_hl.$format(node, lang, opts);
|
|
37854
37972
|
} else {
|
|
37855
|
-
return $rb_plus($rb_plus(pre_open,
|
|
37973
|
+
return $rb_plus($rb_plus(pre_open, node.$content()), pre_close)
|
|
37856
37974
|
}; return nil; })()) + "\n" + "</div>\n" + "</div>";
|
|
37857
37975
|
}, $Html5Converter_convert_listing$26.$$arity = 1);
|
|
37858
37976
|
|
|
@@ -37984,7 +38102,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
37984
38102
|
if ((style = node.$style())['$==']("abstract")) {
|
|
37985
38103
|
if ($truthy((($a = node.$parent()['$=='](node.$document())) ? node.$document().$doctype()['$==']("book") : node.$parent()['$=='](node.$document())))) {
|
|
37986
38104
|
|
|
37987
|
-
self.$logger().$warn("abstract block cannot be used in a document without a
|
|
38105
|
+
self.$logger().$warn("abstract block cannot be used in a document without a doctitle when doctype is book. Excluding block content.");
|
|
37988
38106
|
return "";
|
|
37989
38107
|
} else {
|
|
37990
38108
|
|
|
@@ -39066,7 +39184,7 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
39066
39184
|
}
|
|
39067
39185
|
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;
|
|
39068
39186
|
|
|
39069
|
-
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']);
|
|
39187
|
+
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']);
|
|
39070
39188
|
|
|
39071
39189
|
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
39072
39190
|
} else {
|
|
@@ -40004,9 +40122,9 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40004
40122
|
(function($base, $super, $parent_nesting) {
|
|
40005
40123
|
var self = $klass($base, $super, 'Registry');
|
|
40006
40124
|
|
|
40007
|
-
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, $
|
|
40125
|
+
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;
|
|
40008
40126
|
|
|
40009
|
-
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;
|
|
40127
|
+
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;
|
|
40010
40128
|
|
|
40011
40129
|
self.$attr_reader("document");
|
|
40012
40130
|
self.$attr_reader("groups");
|
|
@@ -40020,6 +40138,7 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40020
40138
|
groups = $hash2([], {});
|
|
40021
40139
|
};
|
|
40022
40140
|
self.groups = groups;
|
|
40141
|
+
self.$reset();
|
|
40023
40142
|
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)))))));
|
|
40024
40143
|
return (self.document = nil);
|
|
40025
40144
|
}, $Registry_initialize$53.$$arity = -1);
|
|
@@ -40028,6 +40147,8 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40028
40147
|
var $$55, self = this, ext_groups = nil;
|
|
40029
40148
|
|
|
40030
40149
|
|
|
40150
|
+
if ($truthy(self.document)) {
|
|
40151
|
+
self.$reset()};
|
|
40031
40152
|
self.document = document;
|
|
40032
40153
|
if ($truthy((ext_groups = $rb_plus($$($nesting, 'Extensions').$groups().$values(), self.groups.$values()))['$empty?']())) {
|
|
40033
40154
|
} else {
|
|
@@ -40398,7 +40519,7 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40398
40519
|
};
|
|
40399
40520
|
if ($truthy(processor['$process_block_given?']())) {
|
|
40400
40521
|
} else {
|
|
40401
|
-
self.$raise($$$('::', '
|
|
40522
|
+
self.$raise($$$('::', 'NoMethodError'), "" + "No block specified to process " + (kind_name) + " extension at " + (block.$source_location().$join(":")))
|
|
40402
40523
|
};
|
|
40403
40524
|
processor.$freeze();
|
|
40404
40525
|
extension = $$($nesting, 'ProcessorExtension').$new(kind, processor);
|
|
@@ -40468,11 +40589,11 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40468
40589
|
};
|
|
40469
40590
|
if ($truthy((name = self.$as_symbol(processor.$name())))) {
|
|
40470
40591
|
} else {
|
|
40471
|
-
self.$raise($$$('::', 'ArgumentError'), "" + "No name specified for " + (kind_name) + " extension at " + (block.$source_location()))
|
|
40592
|
+
self.$raise($$$('::', 'ArgumentError'), "" + "No name specified for " + (kind_name) + " extension at " + (block.$source_location().$join(":")))
|
|
40472
40593
|
};
|
|
40473
40594
|
if ($truthy(processor['$process_block_given?']())) {
|
|
40474
40595
|
} else {
|
|
40475
|
-
self.$raise($$$('::', 'NoMethodError'), "" + "No block specified to process " + (kind_name) + " extension at " + (block.$source_location()))
|
|
40596
|
+
self.$raise($$$('::', 'NoMethodError'), "" + "No block specified to process " + (kind_name) + " extension at " + (block.$source_location().$join(":")))
|
|
40476
40597
|
};
|
|
40477
40598
|
processor.$freeze();
|
|
40478
40599
|
|
|
@@ -40525,7 +40646,15 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40525
40646
|
};
|
|
40526
40647
|
}, $Registry_add_syntax_processor$89.$$arity = 2);
|
|
40527
40648
|
|
|
40528
|
-
Opal.def(self, '$
|
|
40649
|
+
Opal.def(self, '$reset', $Registry_reset$91 = function $$reset() {
|
|
40650
|
+
var self = this;
|
|
40651
|
+
|
|
40652
|
+
|
|
40653
|
+
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)))))));
|
|
40654
|
+
return (self.document = nil);
|
|
40655
|
+
}, $Registry_reset$91.$$arity = 0);
|
|
40656
|
+
|
|
40657
|
+
Opal.def(self, '$resolve_args', $Registry_resolve_args$92 = function $$resolve_args(args, expect) {
|
|
40529
40658
|
var self = this, opts = nil, missing = nil;
|
|
40530
40659
|
|
|
40531
40660
|
|
|
@@ -40542,8 +40671,8 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40542
40671
|
args.$pop(missing['$-@']())};
|
|
40543
40672
|
args['$<<'](opts);
|
|
40544
40673
|
return args;
|
|
40545
|
-
}, $Registry_resolve_args$
|
|
40546
|
-
return (Opal.def(self, '$as_symbol', $Registry_as_symbol$
|
|
40674
|
+
}, $Registry_resolve_args$92.$$arity = 2);
|
|
40675
|
+
return (Opal.def(self, '$as_symbol', $Registry_as_symbol$93 = function $$as_symbol(name) {
|
|
40547
40676
|
var self = this;
|
|
40548
40677
|
|
|
40549
40678
|
if ($truthy(name)) {
|
|
@@ -40551,42 +40680,42 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40551
40680
|
} else {
|
|
40552
40681
|
return nil
|
|
40553
40682
|
}
|
|
40554
|
-
}, $Registry_as_symbol$
|
|
40683
|
+
}, $Registry_as_symbol$93.$$arity = 1), nil) && 'as_symbol';
|
|
40555
40684
|
})($nesting[0], null, $nesting);
|
|
40556
40685
|
(function(self, $parent_nesting) {
|
|
40557
|
-
var $nesting = [self].concat($parent_nesting), $generate_name$
|
|
40686
|
+
var $nesting = [self].concat($parent_nesting), $generate_name$94, $next_auto_id$95, $groups$96, $create$97, $register$98, $unregister_all$99, $unregister$100;
|
|
40558
40687
|
|
|
40559
40688
|
|
|
40560
40689
|
|
|
40561
|
-
Opal.def(self, '$generate_name', $generate_name$
|
|
40690
|
+
Opal.def(self, '$generate_name', $generate_name$94 = function $$generate_name() {
|
|
40562
40691
|
var self = this;
|
|
40563
40692
|
|
|
40564
40693
|
return "" + "extgrp" + (self.$next_auto_id())
|
|
40565
|
-
}, $generate_name$
|
|
40694
|
+
}, $generate_name$94.$$arity = 0);
|
|
40566
40695
|
|
|
40567
|
-
Opal.def(self, '$next_auto_id', $next_auto_id$
|
|
40696
|
+
Opal.def(self, '$next_auto_id', $next_auto_id$95 = function $$next_auto_id() {
|
|
40568
40697
|
var $a, self = this;
|
|
40569
40698
|
if (self.auto_id == null) self.auto_id = nil;
|
|
40570
40699
|
|
|
40571
40700
|
|
|
40572
40701
|
self.auto_id = ($truthy($a = self.auto_id) ? $a : -1);
|
|
40573
40702
|
return (self.auto_id = $rb_plus(self.auto_id, 1));
|
|
40574
|
-
}, $next_auto_id$
|
|
40703
|
+
}, $next_auto_id$95.$$arity = 0);
|
|
40575
40704
|
|
|
40576
|
-
Opal.def(self, '$groups', $groups$
|
|
40705
|
+
Opal.def(self, '$groups', $groups$96 = function $$groups() {
|
|
40577
40706
|
var $a, self = this;
|
|
40578
40707
|
if (self.groups == null) self.groups = nil;
|
|
40579
40708
|
|
|
40580
40709
|
return (self.groups = ($truthy($a = self.groups) ? $a : $hash2([], {})))
|
|
40581
|
-
}, $groups$
|
|
40710
|
+
}, $groups$96.$$arity = 0);
|
|
40582
40711
|
|
|
40583
|
-
Opal.def(self, '$create', $create$
|
|
40584
|
-
var $iter = $create$
|
|
40712
|
+
Opal.def(self, '$create', $create$97 = function $$create(name) {
|
|
40713
|
+
var $iter = $create$97.$$p, block = $iter || nil, $a, self = this;
|
|
40585
40714
|
|
|
40586
|
-
if ($iter) $create$
|
|
40715
|
+
if ($iter) $create$97.$$p = null;
|
|
40587
40716
|
|
|
40588
40717
|
|
|
40589
|
-
if ($iter) $create$
|
|
40718
|
+
if ($iter) $create$97.$$p = null;;
|
|
40590
40719
|
|
|
40591
40720
|
if (name == null) {
|
|
40592
40721
|
name = nil;
|
|
@@ -40596,15 +40725,15 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40596
40725
|
} else {
|
|
40597
40726
|
return $$($nesting, 'Registry').$new()
|
|
40598
40727
|
};
|
|
40599
|
-
}, $create$
|
|
40728
|
+
}, $create$97.$$arity = -1);
|
|
40600
40729
|
|
|
40601
|
-
Opal.def(self, '$register', $register$
|
|
40602
|
-
var $iter = $register$
|
|
40730
|
+
Opal.def(self, '$register', $register$98 = function $$register($a) {
|
|
40731
|
+
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;
|
|
40603
40732
|
|
|
40604
|
-
if ($iter) $register$
|
|
40733
|
+
if ($iter) $register$98.$$p = null;
|
|
40605
40734
|
|
|
40606
40735
|
|
|
40607
|
-
if ($iter) $register$
|
|
40736
|
+
if ($iter) $register$98.$$p = null;;
|
|
40608
40737
|
|
|
40609
40738
|
$post_args = Opal.slice.call(arguments, 0, arguments.length);
|
|
40610
40739
|
|
|
@@ -40626,34 +40755,37 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
40626
40755
|
$writer = [name.$to_sym(), resolved_group];
|
|
40627
40756
|
$send(self.$groups(), '[]=', Opal.to_a($writer));
|
|
40628
40757
|
return $writer[$rb_minus($writer["length"], 1)];;
|
|
40629
|
-
}, $register$
|
|
40758
|
+
}, $register$98.$$arity = -1);
|
|
40630
40759
|
|
|
40631
|
-
Opal.def(self, '$unregister_all', $unregister_all$
|
|
40760
|
+
Opal.def(self, '$unregister_all', $unregister_all$99 = function $$unregister_all() {
|
|
40632
40761
|
var self = this;
|
|
40633
40762
|
|
|
40634
40763
|
|
|
40635
40764
|
self.groups = $hash2([], {});
|
|
40636
40765
|
return nil;
|
|
40637
|
-
}, $unregister_all$
|
|
40638
|
-
return (Opal.def(self, '$unregister', $unregister$
|
|
40639
|
-
var $post_args, names, $$
|
|
40766
|
+
}, $unregister_all$99.$$arity = 0);
|
|
40767
|
+
return (Opal.def(self, '$unregister', $unregister$100 = function $$unregister($a) {
|
|
40768
|
+
var $post_args, names, $$101, self = this;
|
|
40640
40769
|
|
|
40641
40770
|
|
|
40642
40771
|
|
|
40643
40772
|
$post_args = Opal.slice.call(arguments, 0, arguments.length);
|
|
40644
40773
|
|
|
40645
40774
|
names = $post_args;;
|
|
40646
|
-
$send(names, '
|
|
40647
|
-
if (self.groups == null) self.groups = nil;
|
|
40775
|
+
$send(names, 'each_with_object', [self.$groups()], ($$101 = function(group, catalog){var self = $$101.$$s || this;
|
|
40648
40776
|
|
|
40649
40777
|
|
|
40650
40778
|
|
|
40651
40779
|
if (group == null) {
|
|
40652
40780
|
group = nil;
|
|
40653
40781
|
};
|
|
40654
|
-
|
|
40782
|
+
|
|
40783
|
+
if (catalog == null) {
|
|
40784
|
+
catalog = nil;
|
|
40785
|
+
};
|
|
40786
|
+
return catalog.$delete(group.$to_sym());}, $$101.$$s = self, $$101.$$arity = 2, $$101));
|
|
40655
40787
|
return nil;
|
|
40656
|
-
}, $unregister$
|
|
40788
|
+
}, $unregister$100.$$arity = -1), nil) && 'unregister';
|
|
40657
40789
|
})(Opal.get_singleton_class(self), $nesting);
|
|
40658
40790
|
})($nesting[0], $nesting)
|
|
40659
40791
|
})($nesting[0], $nesting);
|
|
@@ -41009,7 +41141,8 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
|
|
|
41009
41141
|
self.$require("asciidoctor/converter/html5");
|
|
41010
41142
|
self.$require("asciidoctor/extensions");
|
|
41011
41143
|
self.$require("asciidoctor/js/asciidoctor_ext");
|
|
41012
|
-
|
|
41144
|
+
self.$require("asciidoctor/js/opal_ext/logger");
|
|
41145
|
+
return Opal.const_set($$($nesting, 'Asciidoctor'), 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$$($$($nesting, 'Asciidoctor'), 'CG_BLANK')) + "|\\\\?<(?=\\\\?(?:https?|file|ftp|irc)(:))|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|" + ($$$($$($nesting, 'Asciidoctor'), 'CC_ALL')) + "*?[^\\\\])\\]|(?!\\2)([^\\s]*?)>|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"));
|
|
41013
41146
|
};
|
|
41014
41147
|
|
|
41015
41148
|
/* Generated by Opal 0.11.99.dev */
|
|
@@ -41144,13 +41277,13 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
|
|
|
41144
41277
|
Opal.const_set($nesting[0], 'FILE_READ_MODE', (function() {if ($truthy($$($nesting, 'RUBY_ENGINE_OPAL'))) {
|
|
41145
41278
|
return "r"
|
|
41146
41279
|
} else {
|
|
41147
|
-
return "rb:
|
|
41280
|
+
return "rb:UTF-8:UTF-8"
|
|
41148
41281
|
}; return nil; })());
|
|
41149
41282
|
Opal.const_set($nesting[0], 'URI_READ_MODE', $$($nesting, 'FILE_READ_MODE'));
|
|
41150
41283
|
Opal.const_set($nesting[0], 'FILE_WRITE_MODE', (function() {if ($truthy($$($nesting, 'RUBY_ENGINE_OPAL'))) {
|
|
41151
41284
|
return "w"
|
|
41152
41285
|
} else {
|
|
41153
|
-
return "
|
|
41286
|
+
return "wb:UTF-8"
|
|
41154
41287
|
}; return nil; })());
|
|
41155
41288
|
Opal.const_set($nesting[0], 'DEFAULT_DOCTYPE', "article");
|
|
41156
41289
|
Opal.const_set($nesting[0], 'DEFAULT_BACKEND', "html5");
|
|
@@ -46636,7 +46769,7 @@ Html5Converter.prototype.convert = function (node, transform, opts) {
|
|
|
46636
46769
|
}
|
|
46637
46770
|
|
|
46638
46771
|
|
|
46639
|
-
var ASCIIDOCTOR_JS_VERSION = '2.2.
|
|
46772
|
+
var ASCIIDOCTOR_JS_VERSION = '2.2.7';
|
|
46640
46773
|
|
|
46641
46774
|
/**
|
|
46642
46775
|
* Get Asciidoctor.js version number.
|