@asciidoctor/core 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/asciidoctor.js +385 -296
- package/dist/browser/asciidoctor.min.js +1423 -1423
- package/dist/css/asciidoctor.css +5 -5
- package/dist/graalvm/asciidoctor.js +384 -295
- package/dist/node/asciidoctor.js +384 -295
- package/package.json +1 -1
package/dist/node/asciidoctor.js
CHANGED
|
@@ -1704,7 +1704,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
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;
|
|
1706
1706
|
|
|
1707
|
-
Opal.add_stubs(['$require', '$include?', '$include', '$==', '$===', '$path', '$message', '$raise', '$warn', '$logger', '$chomp', '$empty?', '$slice', '$unpack', '$[]', '$byteslice', '$bytesize', '$[]=', '$-', '$map', '$rstrip', '$encode', '$encoding', '$nil_or_empty?', '$!=', '$tap', '$each_line', '$<<', '$match?', '
|
|
1707
|
+
Opal.add_stubs(['$module_function', '$require', '$include?', '$include', '$==', '$===', '$path', '$message', '$raise', '$warn', '$logger', '$chomp', '$empty?', '$slice', '$unpack', '$[]', '$byteslice', '$bytesize', '$[]=', '$-', '$map', '$rstrip', '$encode', '$encoding', '$nil_or_empty?', '$!=', '$tap', '$each_line', '$<<', '$match?', '$gsub', '$rindex', '$index', '$basename', '$extname', '$!', '$length', '$directory?', '$dirname', '$mkdir_p', '$mkdir', '$private_constant', '$join', '$divmod', '$*', '$+', '$to_i', '$to_s', '$chr', '$ord', '$class_for_name', '$const_get']);
|
|
1708
1708
|
return (function($base, $parent_nesting) {
|
|
1709
1709
|
var self = $module($base, 'Asciidoctor');
|
|
1710
1710
|
|
|
@@ -1713,10 +1713,12 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1713
1713
|
(function($base, $parent_nesting) {
|
|
1714
1714
|
var self = $module($base, 'Helpers');
|
|
1715
1715
|
|
|
1716
|
-
var $nesting = [self].concat($parent_nesting), $Helpers_require_library$1, $Helpers_prepare_source_array$2, $Helpers_prepare_source_string$7, $Helpers_uriish$ques$10, $
|
|
1716
|
+
var $nesting = [self].concat($parent_nesting), $Helpers_require_library$1, $Helpers_prepare_source_array$2, $Helpers_prepare_source_string$7, $Helpers_uriish$ques$10, $Helpers_encode_uri_component$11, $Helpers_encode_spaces_in_uri$12, $Helpers_rootname$13, $Helpers_basename$14, $Helpers_extname$ques$15, $Helpers_extname$16, $Helpers_extname$17, $Helpers_mkdir_p$18, $Helpers_int_to_roman$19, $Helpers_nextval$21, $Helpers_resolve_class$22, $Helpers_class_for_name$23;
|
|
1717
1717
|
|
|
1718
1718
|
|
|
1719
|
-
|
|
1719
|
+
self.$module_function();
|
|
1720
|
+
|
|
1721
|
+
Opal.def(self, '$require_library', $Helpers_require_library$1 = function $$require_library(name, gem_name, on_failure) {
|
|
1720
1722
|
var self = this, $case = nil, details = nil;
|
|
1721
1723
|
if ($gvars["!"] == null) $gvars["!"] = nil;
|
|
1722
1724
|
|
|
@@ -1776,7 +1778,8 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1776
1778
|
} else { throw $err; }
|
|
1777
1779
|
};
|
|
1778
1780
|
}, $Helpers_require_library$1.$$arity = -2);
|
|
1779
|
-
|
|
1781
|
+
|
|
1782
|
+
Opal.def(self, '$prepare_source_array', $Helpers_prepare_source_array$2 = function $$prepare_source_array(data) {
|
|
1780
1783
|
var $$3, $$4, $$5, $$6, self = this, leading_2_bytes = nil, leading_bytes = nil, first = nil, $writer = nil;
|
|
1781
1784
|
|
|
1782
1785
|
|
|
@@ -1835,7 +1838,8 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1835
1838
|
return line.$encode($$($nesting, 'UTF_8')).$rstrip();}, $$6.$$s = self, $$6.$$arity = 1, $$6))
|
|
1836
1839
|
};
|
|
1837
1840
|
}, $Helpers_prepare_source_array$2.$$arity = 1);
|
|
1838
|
-
|
|
1841
|
+
|
|
1842
|
+
Opal.def(self, '$prepare_source_string', $Helpers_prepare_source_string$7 = function $$prepare_source_string(data) {
|
|
1839
1843
|
var $$8, self = this, leading_2_bytes = nil, leading_bytes = nil;
|
|
1840
1844
|
|
|
1841
1845
|
|
|
@@ -1870,22 +1874,15 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1870
1874
|
};
|
|
1871
1875
|
return lines['$<<'](line.$rstrip());}, $$9.$$s = self, $$9.$$arity = 1, $$9));}, $$8.$$s = self, $$8.$$arity = 1, $$8));
|
|
1872
1876
|
}, $Helpers_prepare_source_string$7.$$arity = 1);
|
|
1873
|
-
|
|
1877
|
+
|
|
1878
|
+
Opal.def(self, '$uriish?', $Helpers_uriish$ques$10 = function(str) {
|
|
1874
1879
|
var $a, self = this;
|
|
1875
1880
|
|
|
1876
1881
|
return ($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$match?'](str) : $a)
|
|
1877
1882
|
}, $Helpers_uriish$ques$10.$$arity = 1);
|
|
1878
|
-
Opal.defs(self, '$uri_prefix', $Helpers_uri_prefix$11 = function $$uri_prefix(str) {
|
|
1879
|
-
var $a, self = this;
|
|
1880
|
-
|
|
1881
|
-
if ($truthy(($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$=~'](str) : $a))) {
|
|
1882
|
-
return (($a = $gvars['~']) === nil ? nil : $a['$[]'](0))
|
|
1883
|
-
} else {
|
|
1884
|
-
return nil
|
|
1885
|
-
}
|
|
1886
|
-
}, $Helpers_uri_prefix$11.$$arity = 1);
|
|
1887
1883
|
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
1888
|
-
|
|
1884
|
+
|
|
1885
|
+
Opal.def(self, '$encode_uri_component', $Helpers_encode_uri_component$11 = function $$encode_uri_component(str) {
|
|
1889
1886
|
var self = this;
|
|
1890
1887
|
|
|
1891
1888
|
|
|
@@ -1893,11 +1890,12 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1893
1890
|
return m === '%20' ? '+' : '%' + m.charCodeAt(0).toString(16)
|
|
1894
1891
|
})
|
|
1895
1892
|
|
|
1896
|
-
}, $Helpers_encode_uri_component$
|
|
1893
|
+
}, $Helpers_encode_uri_component$11.$$arity = 1)
|
|
1897
1894
|
} else {
|
|
1898
1895
|
nil
|
|
1899
1896
|
};
|
|
1900
|
-
|
|
1897
|
+
|
|
1898
|
+
Opal.def(self, '$encode_spaces_in_uri', $Helpers_encode_spaces_in_uri$12 = function $$encode_spaces_in_uri(str) {
|
|
1901
1899
|
var self = this;
|
|
1902
1900
|
|
|
1903
1901
|
if ($truthy(str['$include?'](" "))) {
|
|
@@ -1906,8 +1904,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1906
1904
|
} else {
|
|
1907
1905
|
return str
|
|
1908
1906
|
}
|
|
1909
|
-
}, $
|
|
1910
|
-
|
|
1907
|
+
}, $Helpers_encode_spaces_in_uri$12.$$arity = 1);
|
|
1908
|
+
|
|
1909
|
+
Opal.def(self, '$rootname', $Helpers_rootname$13 = function $$rootname(filename) {
|
|
1911
1910
|
var self = this, last_dot_idx = nil;
|
|
1912
1911
|
|
|
1913
1912
|
if ($truthy((last_dot_idx = filename.$rindex(".")))) {
|
|
@@ -1920,8 +1919,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1920
1919
|
} else {
|
|
1921
1920
|
return filename
|
|
1922
1921
|
}
|
|
1923
|
-
}, $Helpers_rootname$
|
|
1924
|
-
|
|
1922
|
+
}, $Helpers_rootname$13.$$arity = 1);
|
|
1923
|
+
|
|
1924
|
+
Opal.def(self, '$basename', $Helpers_basename$14 = function $$basename(filename, drop_ext) {
|
|
1925
1925
|
var self = this;
|
|
1926
1926
|
|
|
1927
1927
|
|
|
@@ -1939,14 +1939,16 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1939
1939
|
} else {
|
|
1940
1940
|
return $$$('::', 'File').$basename(filename)
|
|
1941
1941
|
};
|
|
1942
|
-
}, $Helpers_basename$
|
|
1943
|
-
|
|
1942
|
+
}, $Helpers_basename$14.$$arity = -2);
|
|
1943
|
+
|
|
1944
|
+
Opal.def(self, '$extname?', $Helpers_extname$ques$15 = function(path) {
|
|
1944
1945
|
var $a, self = this, last_dot_idx = nil;
|
|
1945
1946
|
|
|
1946
1947
|
return ($truthy($a = (last_dot_idx = path.$rindex("."))) ? path.$index("/", last_dot_idx)['$!']() : $a)
|
|
1947
|
-
}, $Helpers_extname$ques$
|
|
1948
|
+
}, $Helpers_extname$ques$15.$$arity = 1);
|
|
1948
1949
|
if ($truthy($$$($$$('::', 'File'), 'ALT_SEPARATOR'))) {
|
|
1949
|
-
|
|
1950
|
+
|
|
1951
|
+
Opal.def(self, '$extname', $Helpers_extname$16 = function $$extname(path, fallback) {
|
|
1950
1952
|
var $a, self = this, last_dot_idx = nil;
|
|
1951
1953
|
|
|
1952
1954
|
|
|
@@ -1964,9 +1966,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1964
1966
|
} else {
|
|
1965
1967
|
return fallback
|
|
1966
1968
|
};
|
|
1967
|
-
}, $Helpers_extname$
|
|
1969
|
+
}, $Helpers_extname$16.$$arity = -2)
|
|
1968
1970
|
} else {
|
|
1969
|
-
|
|
1971
|
+
|
|
1972
|
+
Opal.def(self, '$extname', $Helpers_extname$17 = function $$extname(path, fallback) {
|
|
1970
1973
|
var self = this, last_dot_idx = nil;
|
|
1971
1974
|
|
|
1972
1975
|
|
|
@@ -1984,9 +1987,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
1984
1987
|
} else {
|
|
1985
1988
|
return fallback
|
|
1986
1989
|
};
|
|
1987
|
-
}, $Helpers_extname$
|
|
1990
|
+
}, $Helpers_extname$17.$$arity = -2)
|
|
1988
1991
|
};
|
|
1989
|
-
|
|
1992
|
+
|
|
1993
|
+
Opal.def(self, '$mkdir_p', $Helpers_mkdir_p$18 = function $$mkdir_p(dir) {
|
|
1990
1994
|
var self = this, parent_dir = nil;
|
|
1991
1995
|
|
|
1992
1996
|
if ($truthy($$$('::', 'File')['$directory?'](dir))) {
|
|
@@ -2012,12 +2016,14 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
2012
2016
|
} else { throw $err; }
|
|
2013
2017
|
};;
|
|
2014
2018
|
}
|
|
2015
|
-
}, $Helpers_mkdir_p$
|
|
2019
|
+
}, $Helpers_mkdir_p$18.$$arity = 1);
|
|
2016
2020
|
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}));
|
|
2017
|
-
|
|
2018
|
-
|
|
2021
|
+
self.$private_constant("ROMAN_NUMERALS");
|
|
2022
|
+
|
|
2023
|
+
Opal.def(self, '$int_to_roman', $Helpers_int_to_roman$19 = function $$int_to_roman(val) {
|
|
2024
|
+
var $$20, self = this;
|
|
2019
2025
|
|
|
2020
|
-
return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$
|
|
2026
|
+
return $send($$($nesting, 'ROMAN_NUMERALS'), 'map', [], ($$20 = function(l, i){var self = $$20.$$s || this, $a, $b, repeat = nil;
|
|
2021
2027
|
|
|
2022
2028
|
|
|
2023
2029
|
|
|
@@ -2029,9 +2035,10 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
2029
2035
|
i = nil;
|
|
2030
2036
|
};
|
|
2031
2037
|
$b = val.$divmod(i), $a = Opal.to_ary($b), (repeat = ($a[0] == null ? nil : $a[0])), (val = ($a[1] == null ? nil : $a[1])), $b;
|
|
2032
|
-
return $rb_times(l, repeat);}, $$
|
|
2033
|
-
}, $Helpers_int_to_roman$
|
|
2034
|
-
|
|
2038
|
+
return $rb_times(l, repeat);}, $$20.$$s = self, $$20.$$arity = 2, $$20)).$join()
|
|
2039
|
+
}, $Helpers_int_to_roman$19.$$arity = 1);
|
|
2040
|
+
|
|
2041
|
+
Opal.def(self, '$nextval', $Helpers_nextval$21 = function $$nextval(current) {
|
|
2035
2042
|
var self = this, intval = nil;
|
|
2036
2043
|
|
|
2037
2044
|
if ($truthy($$$('::', 'Integer')['$==='](current))) {
|
|
@@ -2045,8 +2052,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
2045
2052
|
return $rb_plus(intval, 1)
|
|
2046
2053
|
};
|
|
2047
2054
|
}
|
|
2048
|
-
}, $Helpers_nextval$
|
|
2049
|
-
|
|
2055
|
+
}, $Helpers_nextval$21.$$arity = 1);
|
|
2056
|
+
|
|
2057
|
+
Opal.def(self, '$resolve_class', $Helpers_resolve_class$22 = function $$resolve_class(object) {
|
|
2050
2058
|
var self = this;
|
|
2051
2059
|
|
|
2052
2060
|
if ($truthy($$$('::', 'Class')['$==='](object))) {
|
|
@@ -2060,8 +2068,9 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
2060
2068
|
return nil
|
|
2061
2069
|
};
|
|
2062
2070
|
}
|
|
2063
|
-
}, $Helpers_resolve_class$
|
|
2064
|
-
|
|
2071
|
+
}, $Helpers_resolve_class$22.$$arity = 1);
|
|
2072
|
+
|
|
2073
|
+
Opal.def(self, '$class_for_name', $Helpers_class_for_name$23 = function $$class_for_name(qualified_name) {
|
|
2065
2074
|
var self = this, resolved = nil;
|
|
2066
2075
|
|
|
2067
2076
|
try {
|
|
@@ -2078,7 +2087,7 @@ Opal.modules["asciidoctor/helpers"] = function(Opal) {
|
|
|
2078
2087
|
} finally { Opal.pop_exception() }
|
|
2079
2088
|
} else { throw $err; }
|
|
2080
2089
|
}
|
|
2081
|
-
}, $Helpers_class_for_name$
|
|
2090
|
+
}, $Helpers_class_for_name$23.$$arity = 1);
|
|
2082
2091
|
})($nesting[0], $nesting)
|
|
2083
2092
|
})($nesting[0], $nesting)
|
|
2084
2093
|
};
|
|
@@ -2635,6 +2644,148 @@ Opal.modules["asciidoctor/logging"] = function(Opal) {
|
|
|
2635
2644
|
})($nesting[0], $nesting);
|
|
2636
2645
|
};
|
|
2637
2646
|
|
|
2647
|
+
/* Generated by Opal 0.11.99.dev */
|
|
2648
|
+
Opal.modules["asciidoctor/rx"] = function(Opal) {
|
|
2649
|
+
function $rb_minus(lhs, rhs) {
|
|
2650
|
+
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);
|
|
2651
|
+
}
|
|
2652
|
+
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $hash2 = Opal.hash2, $send = Opal.send, $truthy = Opal.truthy, $hash = Opal.hash;
|
|
2653
|
+
|
|
2654
|
+
Opal.add_stubs(['$==', '$join', '$to_a', '$new', '$empty?', '$escape', '$[]=', '$-']);
|
|
2655
|
+
return (function($base, $parent_nesting) {
|
|
2656
|
+
var self = $module($base, 'Asciidoctor');
|
|
2657
|
+
|
|
2658
|
+
var $nesting = [self].concat($parent_nesting), $Asciidoctor$1, $Asciidoctor$2;
|
|
2659
|
+
|
|
2660
|
+
|
|
2661
|
+
(function($base, $parent_nesting) {
|
|
2662
|
+
var self = $module($base, 'Rx');
|
|
2663
|
+
|
|
2664
|
+
var $nesting = [self].concat($parent_nesting);
|
|
2665
|
+
|
|
2666
|
+
nil
|
|
2667
|
+
})($nesting[0], $nesting);
|
|
2668
|
+
Opal.const_set($nesting[0], 'AuthorInfoLineRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*)(?: +(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*))?(?: +(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*))?(?: +<([^>]+)>)?$"));
|
|
2669
|
+
Opal.const_set($nesting[0], 'AuthorDelimiterRx', /;(?: |$)/);
|
|
2670
|
+
Opal.const_set($nesting[0], 'RevisionInfoLineRx', new RegExp("" + "^(?:[^\\d{]*(" + ($$($nesting, 'CC_ANY')) + "*?),)? *(?!:)(" + ($$($nesting, 'CC_ANY')) + "*?)(?: *(?!^),?: *(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
|
|
2671
|
+
Opal.const_set($nesting[0], 'ManpageTitleVolnumRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *\\( *(" + ($$($nesting, 'CC_ANY')) + "+?) *\\)$"));
|
|
2672
|
+
Opal.const_set($nesting[0], 'ManpageNamePurposeRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) +- +(" + ($$($nesting, 'CC_ANY')) + "+)$"));
|
|
2673
|
+
Opal.const_set($nesting[0], 'ConditionalDirectiveRx', new RegExp("" + "^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
2674
|
+
Opal.const_set($nesting[0], 'EvalExpressionRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *([=!><]=|[><]) *(" + ($$($nesting, 'CC_ANY')) + "+)$"));
|
|
2675
|
+
Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\[][^\\[]*)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
2676
|
+
Opal.const_set($nesting[0], 'TagDirectiveRx', /\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m);
|
|
2677
|
+
Opal.const_set($nesting[0], 'AttributeEntryRx', new RegExp("" + "^:(!?" + ($$($nesting, 'CG_WORD')) + "[^:]*):(?:[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
|
|
2678
|
+
Opal.const_set($nesting[0], 'InvalidAttributeNameCharsRx', new RegExp("" + "[^" + ($$($nesting, 'CC_WORD')) + "-]"));
|
|
2679
|
+
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
2680
|
+
Opal.const_set($nesting[0], 'AttributeEntryPassMacroRx', new RegExp("" + "^pass:([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*)\\]$"))
|
|
2681
|
+
} else {
|
|
2682
|
+
nil
|
|
2683
|
+
};
|
|
2684
|
+
Opal.const_set($nesting[0], 'AttributeReferenceRx', new RegExp("" + "(\\\\)?\\{(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*|(set|counter2?):" + ($$($nesting, 'CC_ANY')) + "+?)(\\\\)?\\}"));
|
|
2685
|
+
Opal.const_set($nesting[0], 'BlockAnchorRx', new RegExp("" + "^\\[\\[(?:|([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?)\\]\\]$"));
|
|
2686
|
+
Opal.const_set($nesting[0], 'BlockAttributeListRx', new RegExp("" + "^\\[(|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*)\\]$"));
|
|
2687
|
+
Opal.const_set($nesting[0], 'BlockAttributeLineRx', new RegExp("" + "^\\[(?:|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*|\\[(?:|[" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*(?:, *" + ($$($nesting, 'CC_ANY')) + "+)?)\\])\\]$"));
|
|
2688
|
+
Opal.const_set($nesting[0], 'BlockTitleRx', new RegExp("" + "^\\.(\\.?[^ \\t.]" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
2689
|
+
Opal.const_set($nesting[0], 'AdmonitionParagraphRx', new RegExp("" + "^(" + ($$($nesting, 'ADMONITION_STYLES').$to_a().$join("|")) + "):[ \\t]+"));
|
|
2690
|
+
Opal.const_set($nesting[0], 'LiteralParagraphRx', new RegExp("" + "^([ \\t]+" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
2691
|
+
Opal.const_set($nesting[0], 'AtxSectionTitleRx', new RegExp("" + "^(=={0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
|
|
2692
|
+
Opal.const_set($nesting[0], 'ExtAtxSectionTitleRx', new RegExp("" + "^(=={0,5}|#\\\#{0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
|
|
2693
|
+
Opal.const_set($nesting[0], 'SetextSectionTitleRx', new RegExp("" + "^((?!\\.)" + ($$($nesting, 'CC_ANY')) + "*?" + ($$($nesting, 'CG_ALNUM')) + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
2694
|
+
Opal.const_set($nesting[0], 'InlineSectionAnchorRx', new RegExp("" + " (\\\\)?\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?\\]\\]$"));
|
|
2695
|
+
Opal.const_set($nesting[0], 'InvalidSectionIdCharsRx', new RegExp("" + "<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ " + ($$($nesting, 'CC_WORD')) + "\\-.]+?"));
|
|
2696
|
+
Opal.const_set($nesting[0], 'SectionLevelStyleRx', /^sect\d$/);
|
|
2697
|
+
Opal.const_set($nesting[0], 'AnyListRx', new RegExp("" + "^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?(?::::{0,2}|;;)(?:$|[ \\t])|<?\\d+>[ \\t])"));
|
|
2698
|
+
Opal.const_set($nesting[0], 'UnorderedListRx', new RegExp("" + "^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
2699
|
+
Opal.const_set($nesting[0], 'OrderedListRx', new RegExp("" + "^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
2700
|
+
Opal.const_set($nesting[0], 'OrderedListMarkerRxMap', $hash2(["arabic", "loweralpha", "lowerroman", "upperalpha", "upperroman"], {"arabic": /\d+\./, "loweralpha": /[a-z]\./, "lowerroman": /[ivx]+\)/, "upperalpha": /[A-Z]\./, "upperroman": /[IVX]+\)/}));
|
|
2701
|
+
Opal.const_set($nesting[0], 'DescriptionListRx', new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(:::{0,2}|;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"));
|
|
2702
|
+
Opal.const_set($nesting[0], 'DescriptionListSiblingRx', $hash2(["::", ":::", "::::", ";;"], {"::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), ":::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), "::::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), ";;": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)")}));
|
|
2703
|
+
Opal.const_set($nesting[0], 'CalloutListRx', new RegExp("" + "^<(\\d+|\\.)>[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
2704
|
+
Opal.const_set($nesting[0], 'CalloutExtractRx', /((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/);
|
|
2705
|
+
Opal.const_set($nesting[0], 'CalloutExtractRxt', "(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)");
|
|
2706
|
+
Opal.const_set($nesting[0], 'CalloutExtractRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$1 = function(h, k){var self = $Asciidoctor$1.$$s || this, $writer = nil;
|
|
2707
|
+
|
|
2708
|
+
|
|
2709
|
+
|
|
2710
|
+
if (h == null) {
|
|
2711
|
+
h = nil;
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2714
|
+
if (k == null) {
|
|
2715
|
+
k = nil;
|
|
2716
|
+
};
|
|
2717
|
+
$writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
|
|
2718
|
+
return ""
|
|
2719
|
+
} else {
|
|
2720
|
+
return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
|
|
2721
|
+
}; return nil; })()) + ")?" + ($$($nesting, 'CalloutExtractRxt')))];
|
|
2722
|
+
$send(h, '[]=', Opal.to_a($writer));
|
|
2723
|
+
return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$1.$$s = self, $Asciidoctor$1.$$arity = 2, $Asciidoctor$1)));
|
|
2724
|
+
Opal.const_set($nesting[0], 'CalloutScanRx', new RegExp("" + "\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*" + ($$($nesting, 'CC_EOL')) + ")"));
|
|
2725
|
+
Opal.const_set($nesting[0], 'CalloutSourceRx', new RegExp("" + "((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*" + ($$($nesting, 'CC_EOL')) + ")"));
|
|
2726
|
+
Opal.const_set($nesting[0], 'CalloutSourceRxt', "" + "(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*" + ($$($nesting, 'CC_EOL')) + ")");
|
|
2727
|
+
Opal.const_set($nesting[0], 'CalloutSourceRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$2 = function(h, k){var self = $Asciidoctor$2.$$s || this, $writer = nil;
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
if (h == null) {
|
|
2732
|
+
h = nil;
|
|
2733
|
+
};
|
|
2734
|
+
|
|
2735
|
+
if (k == null) {
|
|
2736
|
+
k = nil;
|
|
2737
|
+
};
|
|
2738
|
+
$writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
|
|
2739
|
+
return ""
|
|
2740
|
+
} else {
|
|
2741
|
+
return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
|
|
2742
|
+
}; return nil; })()) + ")?" + ($$($nesting, 'CalloutSourceRxt')))];
|
|
2743
|
+
$send(h, '[]=', Opal.to_a($writer));
|
|
2744
|
+
return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$2.$$s = self, $Asciidoctor$2.$$arity = 2, $Asciidoctor$2)));
|
|
2745
|
+
Opal.const_set($nesting[0], 'ListRxMap', $hash2(["ulist", "olist", "dlist", "colist"], {"ulist": $$($nesting, 'UnorderedListRx'), "olist": $$($nesting, 'OrderedListRx'), "dlist": $$($nesting, 'DescriptionListRx'), "colist": $$($nesting, 'CalloutListRx')}));
|
|
2746
|
+
Opal.const_set($nesting[0], 'ColumnSpecRx', /^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/);
|
|
2747
|
+
Opal.const_set($nesting[0], 'CellSpecStartRx', /^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
|
|
2748
|
+
Opal.const_set($nesting[0], 'CellSpecEndRx', /[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
|
|
2749
|
+
Opal.const_set($nesting[0], 'CustomBlockMacroRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*)::(|\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
2750
|
+
Opal.const_set($nesting[0], 'BlockMediaMacroRx', new RegExp("" + "^(image|video|audio)::(\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
2751
|
+
Opal.const_set($nesting[0], 'BlockTocMacroRx', new RegExp("" + "^toc::\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
2752
|
+
Opal.const_set($nesting[0], 'InlineAnchorRx', new RegExp("" + "(\\\\)?(?:\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]|anchor:([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)\\[(?:\\]|(" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\]))"));
|
|
2753
|
+
Opal.const_set($nesting[0], 'InlineAnchorScanRx', new RegExp("" + "(?:^|[^\\\\\\[])\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]|(?:^|[^\\\\])anchor:([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)\\[(?:\\]|(" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\])"));
|
|
2754
|
+
Opal.const_set($nesting[0], 'LeadingInlineAnchorRx', new RegExp("" + "^\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]"));
|
|
2755
|
+
Opal.const_set($nesting[0], 'InlineBiblioAnchorRx', new RegExp("" + "^\\[\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + "\\-:.]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]\\]"));
|
|
2756
|
+
Opal.const_set($nesting[0], 'InlineEmailRx', new RegExp("" + "([\\\\>:/])?" + ($$($nesting, 'CG_WORD')) + "(?:&|[" + ($$($nesting, 'CC_WORD')) + "\\-.%+])*@" + ($$($nesting, 'CG_ALNUM')) + "[" + ($$($nesting, 'CC_ALNUM')) + "_\\-.]*\\.[a-zA-Z]{2,5}\\b"));
|
|
2757
|
+
Opal.const_set($nesting[0], 'InlineFootnoteMacroRx', new RegExp("" + "\\\\?footnote(?:(ref):|:([" + ($$($nesting, 'CC_WORD')) + "-]+)?)\\[(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))\\]", 'm'));
|
|
2758
|
+
Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
2759
|
+
Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
|
|
2760
|
+
Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
2761
|
+
Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|<|[>\\(\\)\\[\\];])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])?", 'm'));
|
|
2762
|
+
Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
2763
|
+
Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*$"));
|
|
2764
|
+
Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
2765
|
+
Opal.const_set($nesting[0], 'InlineMenuMacroRx', new RegExp("" + "\\\\?menu:(" + ($$($nesting, 'CG_WORD')) + "|[" + ($$($nesting, 'CC_WORD')) + "&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))?\\]", 'm'));
|
|
2766
|
+
Opal.const_set($nesting[0], 'InlineMenuRx', new RegExp("" + "\\\\?\"([" + ($$($nesting, 'CC_WORD')) + "&][^\"]*?[ \\n]+>[ \\n]+[^\"]*)\""));
|
|
2767
|
+
Opal.const_set($nesting[0], 'InlinePassRx', $hash(false, ["+", "`", new RegExp("" + "(^|[^" + ($$($nesting, 'CC_WORD')) + ";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\4)(?!" + ($$($nesting, 'CG_WORD')) + ")", 'm')], true, ["`", nil, new RegExp("" + "(^|[^`" + ($$($nesting, 'CC_WORD')) + "])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\4)(?![`" + ($$($nesting, 'CC_WORD')) + "])", 'm')]));
|
|
2768
|
+
Opal.const_set($nesting[0], 'SinglePlusInlinePassRx', new RegExp("" + "^(\\\\)?\\+(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\+$", 'm'));
|
|
2769
|
+
Opal.const_set($nesting[0], 'InlinePassMacroRx', new RegExp("" + "(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(" + ($$($nesting, 'CC_ALL')) + "*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])", 'm'));
|
|
2770
|
+
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'));
|
|
2771
|
+
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
2772
|
+
Opal.const_set($nesting[0], 'HardLineBreakRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "*) \\+$", 'm'))
|
|
2773
|
+
} else {
|
|
2774
|
+
nil
|
|
2775
|
+
};
|
|
2776
|
+
Opal.const_set($nesting[0], 'MarkdownThematicBreakRx', /^ {0,3}([-*_])( *)\1\2\1$/);
|
|
2777
|
+
Opal.const_set($nesting[0], 'ExtLayoutBreakRx', /^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/);
|
|
2778
|
+
Opal.const_set($nesting[0], 'BlankLineRx', /\n{2,}/);
|
|
2779
|
+
Opal.const_set($nesting[0], 'EscapedSpaceRx', /\\([ \t\n])/);
|
|
2780
|
+
Opal.const_set($nesting[0], 'ReplaceableTextRx', /[&']|--|\.\.\.|\([CRT]M?\)/);
|
|
2781
|
+
Opal.const_set($nesting[0], 'SpaceDelimiterRx', /([^\\])[ \t\n]+/);
|
|
2782
|
+
Opal.const_set($nesting[0], 'SubModifierSniffRx', /[+-]/);
|
|
2783
|
+
Opal.const_set($nesting[0], 'TrailingDigitsRx', /\d+$/);
|
|
2784
|
+
Opal.const_set($nesting[0], 'UriSniffRx', new RegExp("" + "^" + ($$($nesting, 'CG_ALPHA')) + "[" + ($$($nesting, 'CC_ALNUM')) + ".+-]+:/{0,2}"));
|
|
2785
|
+
Opal.const_set($nesting[0], 'XmlSanitizeRx', /<[^>]+>/);
|
|
2786
|
+
})($nesting[0], $nesting)
|
|
2787
|
+
};
|
|
2788
|
+
|
|
2638
2789
|
/* Generated by Opal 0.11.99.dev */
|
|
2639
2790
|
Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
2640
2791
|
function $rb_plus(lhs, rhs) {
|
|
@@ -3147,7 +3298,12 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
3147
3298
|
attrs = self.$parse_attributes((($c = $gvars['~']) === nil ? nil : $c['$[]'](2)), posattrs, $hash2(["unescape_input"], {"unescape_input": true}));
|
|
3148
3299
|
if (type['$==']("icon")) {
|
|
3149
3300
|
} else {
|
|
3150
|
-
|
|
3301
|
+
|
|
3302
|
+
doc.$register("images", target);
|
|
3303
|
+
|
|
3304
|
+
$writer = ["imagesdir", doc_attrs['$[]']("imagesdir")];
|
|
3305
|
+
$send(attrs, '[]=', Opal.to_a($writer));
|
|
3306
|
+
$writer[$rb_minus($writer["length"], 1)];;
|
|
3151
3307
|
};
|
|
3152
3308
|
($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)]));
|
|
3153
3309
|
return $$($nesting, 'Inline').$new(self, "image", nil, $hash2(["type", "target", "attributes"], {"type": type, "target": target, "attributes": attrs})).$convert();}, $$29.$$s = self, $$29.$$arity = 0, $$29))};
|
|
@@ -4516,7 +4672,7 @@ Opal.modules["asciidoctor/version"] = function(Opal) {
|
|
|
4516
4672
|
|
|
4517
4673
|
var $nesting = [self].concat($parent_nesting);
|
|
4518
4674
|
|
|
4519
|
-
Opal.const_set($nesting[0], 'VERSION', "2.0.
|
|
4675
|
+
Opal.const_set($nesting[0], 'VERSION', "2.0.9")
|
|
4520
4676
|
})($nesting[0], $nesting)
|
|
4521
4677
|
};
|
|
4522
4678
|
|
|
@@ -4530,7 +4686,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
|
|
|
4530
4686
|
}
|
|
4531
4687
|
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;
|
|
4532
4688
|
|
|
4533
|
-
Opal.add_stubs(['$include', '$attr_reader', '$attr_accessor', '$==', '$document', '$to_s', '$[]', '$merge', '$raise', '$converter', '$attributes', '$key?', '$[]=', '$-', '$delete', '$tap', '$new', '$each_key', '$end_with?', '$<<', '$slice', '$length', '$update', '$split', '$include?', '$empty?', '$join', '$apply_reftext_subs', '$attr?', '$attr', '$extname?', '$image_uri', '$<', '$safe', '$uriish?', '$
|
|
4689
|
+
Opal.add_stubs(['$include', '$attr_reader', '$attr_accessor', '$==', '$document', '$to_s', '$[]', '$merge', '$raise', '$converter', '$attributes', '$key?', '$[]=', '$-', '$delete', '$tap', '$new', '$each_key', '$end_with?', '$<<', '$slice', '$length', '$update', '$split', '$include?', '$empty?', '$join', '$apply_reftext_subs', '$attr?', '$attr', '$extname?', '$image_uri', '$<', '$safe', '$uriish?', '$encode_spaces_in_uri', '$normalize_web_path', '$generate_data_uri_from_uri', '$generate_data_uri', '$extname', '$normalize_system_path', '$readable?', '$strict_encode64', '$binread', '$warn', '$logger', '$require_library', '$!', '$open_uri', '$content_type', '$read', '$base_dir', '$root?', '$path_resolver', '$system_path', '$web_path', '$===', '$!=', '$prepare_source_string', '$fetch', '$read_asset']);
|
|
4534
4690
|
return (function($base, $parent_nesting) {
|
|
4535
4691
|
var self = $module($base, 'Asciidoctor');
|
|
4536
4692
|
|
|
@@ -4539,7 +4695,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
|
|
|
4539
4695
|
(function($base, $super, $parent_nesting) {
|
|
4540
4696
|
var self = $klass($base, $super, 'AbstractNode');
|
|
4541
4697
|
|
|
4542
|
-
var $nesting = [self].concat($parent_nesting), $AbstractNode_initialize$1, $AbstractNode_block$ques$2, $AbstractNode_inline$ques$3, $AbstractNode_converter$4, $AbstractNode_parent$eq$5, $AbstractNode_attr$6, $AbstractNode_attr$ques$7, $AbstractNode_set_attr$8, $AbstractNode_remove_attr$9, $AbstractNode_option$ques$10, $AbstractNode_set_option$11, $
|
|
4698
|
+
var $nesting = [self].concat($parent_nesting), $AbstractNode_initialize$1, $AbstractNode_block$ques$2, $AbstractNode_inline$ques$3, $AbstractNode_converter$4, $AbstractNode_parent$eq$5, $AbstractNode_attr$6, $AbstractNode_attr$ques$7, $AbstractNode_set_attr$8, $AbstractNode_remove_attr$9, $AbstractNode_option$ques$10, $AbstractNode_set_option$11, $AbstractNode_enabled_options$12, $AbstractNode_update_attributes$15, $AbstractNode_role$16, $AbstractNode_roles$17, $AbstractNode_role$ques$18, $AbstractNode_has_role$ques$19, $AbstractNode_add_role$20, $AbstractNode_remove_role$21, $AbstractNode_reftext$22, $AbstractNode_reftext$ques$23, $AbstractNode_icon_uri$24, $AbstractNode_image_uri$25, $AbstractNode_media_uri$26, $AbstractNode_generate_data_uri$27, $AbstractNode_generate_data_uri_from_uri$28, $AbstractNode_normalize_asset_path$30, $AbstractNode_normalize_system_path$31, $AbstractNode_normalize_web_path$32, $AbstractNode_read_asset$33, $AbstractNode_read_contents$34, $AbstractNode_is_uri$ques$37;
|
|
4543
4699
|
|
|
4544
4700
|
self.$$prototype.document = self.$$prototype.attributes = self.$$prototype.parent = nil;
|
|
4545
4701
|
|
|
@@ -4702,7 +4858,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
|
|
|
4702
4858
|
return nil;
|
|
4703
4859
|
}, $AbstractNode_set_option$11.$$arity = 1);
|
|
4704
4860
|
|
|
4705
|
-
Opal.def(self, '$
|
|
4861
|
+
Opal.def(self, '$enabled_options', $AbstractNode_enabled_options$12 = function $$enabled_options() {
|
|
4706
4862
|
var $$13, self = this;
|
|
4707
4863
|
|
|
4708
4864
|
return $send($$$('::', 'Set').$new(), 'tap', [], ($$13 = function(accum){var self = $$13.$$s || this, $$14;
|
|
@@ -4725,7 +4881,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
|
|
|
4725
4881
|
} else {
|
|
4726
4882
|
return nil
|
|
4727
4883
|
};}, $$14.$$s = self, $$14.$$arity = 1, $$14));}, $$13.$$s = self, $$13.$$arity = 1, $$13))
|
|
4728
|
-
}, $
|
|
4884
|
+
}, $AbstractNode_enabled_options$12.$$arity = 0);
|
|
4729
4885
|
|
|
4730
4886
|
Opal.def(self, '$update_attributes', $AbstractNode_update_attributes$15 = function $$update_attributes(new_attributes) {
|
|
4731
4887
|
var self = this;
|
|
@@ -4862,9 +5018,10 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
|
|
|
4862
5018
|
asset_dir_key = "imagesdir";
|
|
4863
5019
|
};
|
|
4864
5020
|
if ($truthy(($truthy($a = $rb_lt((doc = self.document).$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE'))) ? doc['$attr?']("data-uri") : $a))) {
|
|
4865
|
-
if ($truthy(($truthy($a = ($truthy($b = $$($nesting, 'Helpers')['$uriish?'](target_image)) ? (target_image = $$($nesting, 'Helpers').$
|
|
5021
|
+
if ($truthy(($truthy($a = ($truthy($b = $$($nesting, 'Helpers')['$uriish?'](target_image)) ? (target_image = $$($nesting, 'Helpers').$encode_spaces_in_uri(target_image)) : $b)) ? $a : ($truthy($b = ($truthy($c = ($truthy($d = asset_dir_key) ? (images_base = doc.$attr(asset_dir_key)) : $d)) ? $$($nesting, 'Helpers')['$uriish?'](images_base) : $c)) ? (target_image = self.$normalize_web_path(target_image, images_base, false)) : $b)))) {
|
|
4866
5022
|
if ($truthy(doc['$attr?']("allow-uri-read"))) {
|
|
4867
|
-
|
|
5023
|
+
|
|
5024
|
+
return self.$generate_data_uri_from_uri(target_image, doc['$attr?']("cache-uri"));
|
|
4868
5025
|
} else {
|
|
4869
5026
|
return target_image
|
|
4870
5027
|
}
|
|
@@ -5029,7 +5186,7 @@ Opal.modules["asciidoctor/abstract_node"] = function(Opal) {
|
|
|
5029
5186
|
preserve_uri_target = true;
|
|
5030
5187
|
};
|
|
5031
5188
|
if ($truthy(($truthy($a = preserve_uri_target) ? $$($nesting, 'Helpers')['$uriish?'](target) : $a))) {
|
|
5032
|
-
return $$($nesting, 'Helpers').$
|
|
5189
|
+
return $$($nesting, 'Helpers').$encode_spaces_in_uri(target)
|
|
5033
5190
|
} else {
|
|
5034
5191
|
return self.document.$path_resolver().$web_path(target, start)
|
|
5035
5192
|
};
|
|
@@ -5143,7 +5300,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
5143
5300
|
}
|
|
5144
5301
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $hash2 = Opal.hash2, $send = Opal.send, $truthy = Opal.truthy;
|
|
5145
5302
|
|
|
5146
|
-
Opal.add_stubs(['$attr_reader', '$attr_writer', '$attr_accessor', '$===', '$level', '$file', '$lineno', '$playback_attributes', '$convert', '$converter', '$join', '$map', '$to_s', '
|
|
5303
|
+
Opal.add_stubs(['$attr_reader', '$attr_writer', '$attr_accessor', '$==', '$===', '$level', '$file', '$lineno', '$playback_attributes', '$convert', '$converter', '$join', '$map', '$to_s', '$parent', '$parent=', '$-', '$<<', '$empty?', '$>', '$Integer', '$find_by_internal', '$to_proc', '$context', '$[]', '$items', '$+', '$find_index', '$include?', '$next_adjacent_block', '$blocks', '$select', '$sub_specialchars', '$match?', '$sub_replacements', '$title', '$apply_title_subs', '$delete', '$reftext', '$!', '$sub_placeholder', '$sub_quotes', '$compat_mode', '$attributes', '$chomp', '$increment_and_store_counter', '$index=', '$numbered', '$sectname', '$counter', '$numeral=', '$numeral', '$caption=', '$int_to_roman', '$each', '$assign_numeral', '$reindex_sections', '$protected', '$has_role?', '$raise', '$header?', '$!=', '$flatten', '$head', '$rows', '$merge', '$body', '$foot', '$style', '$inner_document']);
|
|
5147
5304
|
return (function($base, $parent_nesting) {
|
|
5148
5305
|
var self = $module($base, 'Asciidoctor');
|
|
5149
5306
|
|
|
@@ -5166,7 +5323,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
5166
5323
|
self.$attr_reader("subs");
|
|
5167
5324
|
|
|
5168
5325
|
Opal.def(self, '$initialize', $AbstractBlock_initialize$1 = function $$initialize(parent, context, opts) {
|
|
5169
|
-
var $iter = $AbstractBlock_initialize$1.$$p, $yield = $iter || nil, self = this, $
|
|
5326
|
+
var $a, $iter = $AbstractBlock_initialize$1.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
5170
5327
|
|
|
5171
5328
|
if ($iter) $AbstractBlock_initialize$1.$$p = null;
|
|
5172
5329
|
// Prepare super implicit arguments
|
|
@@ -5183,15 +5340,15 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
5183
5340
|
self.blocks = [];
|
|
5184
5341
|
self.subs = [];
|
|
5185
5342
|
self.id = (self.title = (self.caption = (self.numeral = (self.style = (self.default_subs = (self.source_location = nil))))));
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
else
|
|
5191
|
-
return parent.$level()
|
|
5343
|
+
if ($truthy(($truthy($a = context['$==']("document")) ? $a : context['$==']("section")))) {
|
|
5344
|
+
|
|
5345
|
+
self.level = (self.next_section_index = 0);
|
|
5346
|
+
return (self.next_section_ordinal = 1);
|
|
5347
|
+
} else if ($truthy($$($nesting, 'AbstractBlock')['$==='](parent))) {
|
|
5348
|
+
return (self.level = parent.$level())
|
|
5192
5349
|
} else {
|
|
5193
|
-
return nil
|
|
5194
|
-
};
|
|
5350
|
+
return (self.level = nil)
|
|
5351
|
+
};
|
|
5195
5352
|
}, $AbstractBlock_initialize$1.$$arity = -3);
|
|
5196
5353
|
|
|
5197
5354
|
Opal.def(self, '$block?', $AbstractBlock_block$ques$2 = function() {
|
|
@@ -5375,7 +5532,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
5375
5532
|
};
|
|
5376
5533
|
}
|
|
5377
5534
|
} else {
|
|
5378
|
-
return
|
|
5535
|
+
return ""
|
|
5379
5536
|
}
|
|
5380
5537
|
}, $AbstractBlock_alt$19.$$arity = 0);
|
|
5381
5538
|
|
|
@@ -5483,10 +5640,6 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
5483
5640
|
|
|
5484
5641
|
|
|
5485
5642
|
|
|
5486
|
-
if (value == null) {
|
|
5487
|
-
value = nil;
|
|
5488
|
-
};
|
|
5489
|
-
|
|
5490
5643
|
if (caption_context == null) {
|
|
5491
5644
|
caption_context = self.context;
|
|
5492
5645
|
};
|
|
@@ -5499,7 +5652,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
5499
5652
|
} else {
|
|
5500
5653
|
return nil
|
|
5501
5654
|
};
|
|
5502
|
-
}, $AbstractBlock_assign_caption$29.$$arity = -
|
|
5655
|
+
}, $AbstractBlock_assign_caption$29.$$arity = -2);
|
|
5503
5656
|
|
|
5504
5657
|
Opal.def(self, '$assign_numeral', $AbstractBlock_assign_numeral$30 = function $$assign_numeral(section) {
|
|
5505
5658
|
var $a, self = this, $writer = nil, like = nil, sectname = nil, caption = nil;
|
|
@@ -6282,7 +6435,7 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6282
6435
|
}
|
|
6283
6436
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $hash2 = Opal.hash2, $truthy = Opal.truthy, $send = Opal.send, $klass = Opal.klass, $gvars = Opal.gvars;
|
|
6284
6437
|
|
|
6285
|
-
Opal.add_stubs(['$autoload', '$__dir__', '$attr_reader', '$raise', '$class', '$[]', '$sub', '$slice', '$length', '$==', '$[]=', '$backend_traits', '$-', '$derive_backend_traits', '$register', '$new', '$create', '$default', '$each', '$default=', '$registry', '$for', '$===', '$supports_templates?', '$merge', '$private', '$include', '$delete', '$clear', '$private_class_method', '$send', '$extend', '$node_name', '$+', '$receiver', '$
|
|
6438
|
+
Opal.add_stubs(['$autoload', '$__dir__', '$attr_reader', '$raise', '$class', '$[]', '$sub', '$slice', '$length', '$==', '$[]=', '$backend_traits', '$-', '$derive_backend_traits', '$register', '$map', '$to_s', '$new', '$create', '$default', '$each', '$default=', '$registry', '$for', '$===', '$supports_templates?', '$merge', '$private', '$include', '$delete', '$clear', '$private_class_method', '$send', '$extend', '$node_name', '$+', '$receiver', '$name', '$warn', '$logger', '$respond_to?', '$content']);
|
|
6286
6439
|
return (function($base, $parent_nesting) {
|
|
6287
6440
|
var self = $module($base, 'Asciidoctor');
|
|
6288
6441
|
|
|
@@ -6291,7 +6444,7 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6291
6444
|
(function($base, $parent_nesting) {
|
|
6292
6445
|
var self = $module($base, 'Converter');
|
|
6293
6446
|
|
|
6294
|
-
var $nesting = [self].concat($parent_nesting), $Converter_initialize$1, $Converter_convert$2, $Converter_handles$ques$3, $Converter_derive_backend_traits$4, $a, $Converter_included$
|
|
6447
|
+
var $nesting = [self].concat($parent_nesting), $Converter_initialize$1, $Converter_convert$2, $Converter_handles$ques$3, $Converter_derive_backend_traits$4, $a, $Converter_included$28;
|
|
6295
6448
|
|
|
6296
6449
|
|
|
6297
6450
|
self.$autoload("CompositeConverter", "" + (self.$__dir__()) + "/converter/composite");
|
|
@@ -6483,23 +6636,30 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6483
6636
|
|
|
6484
6637
|
|
|
6485
6638
|
Opal.def(self, '$register_for', $Config_register_for$14 = function $$register_for($a) {
|
|
6486
|
-
var $post_args, backends, self = this;
|
|
6639
|
+
var $post_args, backends, $$15, self = this;
|
|
6487
6640
|
|
|
6488
6641
|
|
|
6489
6642
|
|
|
6490
6643
|
$post_args = Opal.slice.call(arguments, 0, arguments.length);
|
|
6491
6644
|
|
|
6492
6645
|
backends = $post_args;;
|
|
6493
|
-
return $send($$($nesting, 'Converter'), 'register', [self].concat(Opal.to_a(backends)
|
|
6646
|
+
return $send($$($nesting, 'Converter'), 'register', [self].concat(Opal.to_a($send(backends, 'map', [], ($$15 = function(backend){var self = $$15.$$s || this;
|
|
6647
|
+
|
|
6648
|
+
|
|
6649
|
+
|
|
6650
|
+
if (backend == null) {
|
|
6651
|
+
backend = nil;
|
|
6652
|
+
};
|
|
6653
|
+
return backend.$to_s();}, $$15.$$s = self, $$15.$$arity = 1, $$15)))));
|
|
6494
6654
|
}, $Config_register_for$14.$$arity = -1)
|
|
6495
6655
|
})($nesting[0], $nesting);
|
|
6496
6656
|
(function($base, $parent_nesting) {
|
|
6497
6657
|
var self = $module($base, 'Factory');
|
|
6498
6658
|
|
|
6499
|
-
var $nesting = [self].concat($parent_nesting), $Factory_new$
|
|
6659
|
+
var $nesting = [self].concat($parent_nesting), $Factory_new$16, $Factory_default$17, $Factory_create$18, $Factory_register$19, $Factory_for$21, $Factory_create$22, $Factory_converters$23, $Factory_registry$24;
|
|
6500
6660
|
|
|
6501
6661
|
|
|
6502
|
-
Opal.defs(self, '$new', $Factory_new$
|
|
6662
|
+
Opal.defs(self, '$new', $Factory_new$16 = function($a, $b) {
|
|
6503
6663
|
var $post_args, $kwargs, converters, proxy_default, self = this;
|
|
6504
6664
|
|
|
6505
6665
|
|
|
@@ -6533,8 +6693,8 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6533
6693
|
|
|
6534
6694
|
return $$($nesting, 'CustomFactory').$new(converters);
|
|
6535
6695
|
};
|
|
6536
|
-
}, $Factory_new$
|
|
6537
|
-
Opal.defs(self, '$default', $Factory_default$
|
|
6696
|
+
}, $Factory_new$16.$$arity = -1);
|
|
6697
|
+
Opal.defs(self, '$default', $Factory_default$17 = function($a) {
|
|
6538
6698
|
var $post_args, args, self = this;
|
|
6539
6699
|
|
|
6540
6700
|
|
|
@@ -6543,8 +6703,8 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6543
6703
|
|
|
6544
6704
|
args = $post_args;;
|
|
6545
6705
|
return $$($nesting, 'Converter');
|
|
6546
|
-
}, $Factory_default$
|
|
6547
|
-
Opal.defs(self, '$create', $Factory_create$
|
|
6706
|
+
}, $Factory_default$17.$$arity = -1);
|
|
6707
|
+
Opal.defs(self, '$create', $Factory_create$18 = function $$create(backend, opts) {
|
|
6548
6708
|
var self = this;
|
|
6549
6709
|
|
|
6550
6710
|
|
|
@@ -6553,17 +6713,17 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6553
6713
|
opts = $hash2([], {});
|
|
6554
6714
|
};
|
|
6555
6715
|
return self.$default().$create(backend, opts);
|
|
6556
|
-
}, $Factory_create$
|
|
6716
|
+
}, $Factory_create$18.$$arity = -2);
|
|
6557
6717
|
|
|
6558
|
-
Opal.def(self, '$register', $Factory_register$
|
|
6559
|
-
var $post_args, backends, $$
|
|
6718
|
+
Opal.def(self, '$register', $Factory_register$19 = function $$register(converter, $a) {
|
|
6719
|
+
var $post_args, backends, $$20, self = this;
|
|
6560
6720
|
|
|
6561
6721
|
|
|
6562
6722
|
|
|
6563
6723
|
$post_args = Opal.slice.call(arguments, 1, arguments.length);
|
|
6564
6724
|
|
|
6565
6725
|
backends = $post_args;;
|
|
6566
|
-
return $send(backends, 'each', [], ($$
|
|
6726
|
+
return $send(backends, 'each', [], ($$20 = function(backend){var self = $$20.$$s || this, $writer = nil;
|
|
6567
6727
|
|
|
6568
6728
|
|
|
6569
6729
|
|
|
@@ -6582,16 +6742,16 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6582
6742
|
$writer = [backend, converter];
|
|
6583
6743
|
$send(self.$registry(), '[]=', Opal.to_a($writer));
|
|
6584
6744
|
return $writer[$rb_minus($writer["length"], 1)];;
|
|
6585
|
-
};}, $$
|
|
6586
|
-
}, $Factory_register$
|
|
6745
|
+
};}, $$20.$$s = self, $$20.$$arity = 1, $$20));
|
|
6746
|
+
}, $Factory_register$19.$$arity = -2);
|
|
6587
6747
|
|
|
6588
|
-
Opal.def(self, '$for', $Factory_for$
|
|
6748
|
+
Opal.def(self, '$for', $Factory_for$21 = function(backend) {
|
|
6589
6749
|
var self = this;
|
|
6590
6750
|
|
|
6591
6751
|
return self.$registry()['$[]'](backend)
|
|
6592
|
-
}, $Factory_for$
|
|
6752
|
+
}, $Factory_for$21.$$arity = 1);
|
|
6593
6753
|
|
|
6594
|
-
Opal.def(self, '$create', $Factory_create$
|
|
6754
|
+
Opal.def(self, '$create', $Factory_create$22 = function $$create(backend, opts) {
|
|
6595
6755
|
var $a, $b, self = this, converter = nil, template_dirs = nil, delegate_backend = nil;
|
|
6596
6756
|
|
|
6597
6757
|
|
|
@@ -6620,30 +6780,30 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6620
6780
|
} else {
|
|
6621
6781
|
return nil
|
|
6622
6782
|
};
|
|
6623
|
-
}, $Factory_create$
|
|
6783
|
+
}, $Factory_create$22.$$arity = -2);
|
|
6624
6784
|
|
|
6625
|
-
Opal.def(self, '$converters', $Factory_converters$
|
|
6785
|
+
Opal.def(self, '$converters', $Factory_converters$23 = function $$converters() {
|
|
6626
6786
|
var self = this;
|
|
6627
6787
|
|
|
6628
6788
|
return self.$registry().$merge()
|
|
6629
|
-
}, $Factory_converters$
|
|
6789
|
+
}, $Factory_converters$23.$$arity = 0);
|
|
6630
6790
|
self.$private();
|
|
6631
6791
|
|
|
6632
|
-
Opal.def(self, '$registry', $Factory_registry$
|
|
6792
|
+
Opal.def(self, '$registry', $Factory_registry$24 = function $$registry() {
|
|
6633
6793
|
var self = this;
|
|
6634
6794
|
|
|
6635
6795
|
return self.$raise($$$('::', 'NotImplementedError'), "" + ($$($nesting, 'Factory')) + " subclass " + (self.$class()) + " must implement the #" + ("registry") + " method")
|
|
6636
|
-
}, $Factory_registry$
|
|
6796
|
+
}, $Factory_registry$24.$$arity = 0);
|
|
6637
6797
|
})($nesting[0], $nesting);
|
|
6638
6798
|
(function($base, $super, $parent_nesting) {
|
|
6639
6799
|
var self = $klass($base, $super, 'CustomFactory');
|
|
6640
6800
|
|
|
6641
|
-
var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$
|
|
6801
|
+
var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$25, $CustomFactory_unregister_all$26;
|
|
6642
6802
|
|
|
6643
6803
|
|
|
6644
6804
|
self.$include($$($nesting, 'Factory'));
|
|
6645
6805
|
|
|
6646
|
-
Opal.def(self, '$initialize', $CustomFactory_initialize$
|
|
6806
|
+
Opal.def(self, '$initialize', $CustomFactory_initialize$25 = function $$initialize(seed_registry) {
|
|
6647
6807
|
var self = this, $writer = nil;
|
|
6648
6808
|
|
|
6649
6809
|
|
|
@@ -6661,34 +6821,34 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6661
6821
|
} else {
|
|
6662
6822
|
return (self.registry = $hash2([], {}))
|
|
6663
6823
|
};
|
|
6664
|
-
}, $CustomFactory_initialize$
|
|
6824
|
+
}, $CustomFactory_initialize$25.$$arity = -1);
|
|
6665
6825
|
|
|
6666
|
-
Opal.def(self, '$unregister_all', $CustomFactory_unregister_all$
|
|
6826
|
+
Opal.def(self, '$unregister_all', $CustomFactory_unregister_all$26 = function $$unregister_all() {
|
|
6667
6827
|
var self = this, $writer = nil;
|
|
6668
6828
|
|
|
6669
6829
|
|
|
6670
6830
|
$writer = [nil];
|
|
6671
6831
|
$send(self.$registry().$clear(), 'default=', Opal.to_a($writer));
|
|
6672
6832
|
return $writer[$rb_minus($writer["length"], 1)];
|
|
6673
|
-
}, $CustomFactory_unregister_all$
|
|
6833
|
+
}, $CustomFactory_unregister_all$26.$$arity = 0);
|
|
6674
6834
|
self.$private();
|
|
6675
6835
|
return self.$attr_reader("registry");
|
|
6676
6836
|
})($nesting[0], null, $nesting);
|
|
6677
6837
|
(function($base, $parent_nesting) {
|
|
6678
6838
|
var self = $module($base, 'DefaultFactory');
|
|
6679
6839
|
|
|
6680
|
-
var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$
|
|
6840
|
+
var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$27;
|
|
6681
6841
|
|
|
6682
6842
|
|
|
6683
6843
|
self.$include($$($nesting, 'Factory'));
|
|
6684
6844
|
self.$private();
|
|
6685
6845
|
(Opal.class_variable_set($nesting[0], '@@registry', $hash2([], {})));
|
|
6686
6846
|
|
|
6687
|
-
Opal.def(self, '$registry', $DefaultFactory_registry$
|
|
6847
|
+
Opal.def(self, '$registry', $DefaultFactory_registry$27 = function $$registry() {
|
|
6688
6848
|
var $a, self = this;
|
|
6689
6849
|
|
|
6690
6850
|
return (($a = $nesting[0].$$cvars['@@registry']) == null ? nil : $a)
|
|
6691
|
-
}, $DefaultFactory_registry$
|
|
6851
|
+
}, $DefaultFactory_registry$27.$$arity = 0);
|
|
6692
6852
|
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
6693
6853
|
} else {
|
|
6694
6854
|
nil
|
|
@@ -6707,23 +6867,23 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6707
6867
|
return nil
|
|
6708
6868
|
};
|
|
6709
6869
|
})($nesting[0], $$($nesting, 'CustomFactory'), $nesting);
|
|
6710
|
-
self.$private_class_method(($truthy($a = (Opal.defs(self, '$included', $Converter_included$
|
|
6870
|
+
self.$private_class_method(($truthy($a = (Opal.defs(self, '$included', $Converter_included$28 = function $$included(into) {
|
|
6711
6871
|
var self = this;
|
|
6712
6872
|
|
|
6713
6873
|
|
|
6714
6874
|
into.$send("include", $$($nesting, 'BackendTraits'));
|
|
6715
6875
|
return into.$extend($$($nesting, 'Config'));
|
|
6716
|
-
}, $Converter_included$
|
|
6876
|
+
}, $Converter_included$28.$$arity = 1), nil) && 'included') ? $a : "included"));
|
|
6717
6877
|
(function($base, $super, $parent_nesting) {
|
|
6718
6878
|
var self = $klass($base, $super, 'Base');
|
|
6719
6879
|
|
|
6720
|
-
var $nesting = [self].concat($parent_nesting), $Base_convert$
|
|
6880
|
+
var $nesting = [self].concat($parent_nesting), $Base_convert$29, $Base_handles$ques$30, $Base_content_only$31, $Base_skip$32;
|
|
6721
6881
|
|
|
6722
6882
|
self.$$prototype.backend = nil;
|
|
6723
6883
|
|
|
6724
6884
|
self.$include($$($nesting, 'Converter'), $$($nesting, 'Logging'));
|
|
6725
6885
|
|
|
6726
|
-
Opal.def(self, '$convert', $Base_convert$
|
|
6886
|
+
Opal.def(self, '$convert', $Base_convert$29 = function $$convert(node, transform, opts) {
|
|
6727
6887
|
var $a, $b, self = this, ex = nil;
|
|
6728
6888
|
if ($gvars["!"] == null) $gvars["!"] = nil;
|
|
6729
6889
|
|
|
@@ -6757,24 +6917,24 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
6757
6917
|
} finally { Opal.pop_exception() }
|
|
6758
6918
|
} else { throw $err; }
|
|
6759
6919
|
};
|
|
6760
|
-
}, $Base_convert$
|
|
6920
|
+
}, $Base_convert$29.$$arity = -2);
|
|
6761
6921
|
|
|
6762
|
-
Opal.def(self, '$handles?', $Base_handles$ques$
|
|
6922
|
+
Opal.def(self, '$handles?', $Base_handles$ques$30 = function(transform) {
|
|
6763
6923
|
var self = this;
|
|
6764
6924
|
|
|
6765
6925
|
return self['$respond_to?']("" + "convert_" + (transform))
|
|
6766
|
-
}, $Base_handles$ques$
|
|
6926
|
+
}, $Base_handles$ques$30.$$arity = 1);
|
|
6767
6927
|
|
|
6768
|
-
Opal.def(self, '$content_only', $Base_content_only$
|
|
6928
|
+
Opal.def(self, '$content_only', $Base_content_only$31 = function $$content_only(node) {
|
|
6769
6929
|
var self = this;
|
|
6770
6930
|
|
|
6771
6931
|
return node.$content()
|
|
6772
|
-
}, $Base_content_only$
|
|
6773
|
-
return (Opal.def(self, '$skip', $Base_skip$
|
|
6932
|
+
}, $Base_content_only$31.$$arity = 1);
|
|
6933
|
+
return (Opal.def(self, '$skip', $Base_skip$32 = function $$skip(node) {
|
|
6774
6934
|
var self = this;
|
|
6775
6935
|
|
|
6776
6936
|
return nil
|
|
6777
|
-
}, $Base_skip$
|
|
6937
|
+
}, $Base_skip$32.$$arity = 1), nil) && 'skip';
|
|
6778
6938
|
})($nesting[0], null, $nesting);
|
|
6779
6939
|
self.$extend($$($nesting, 'DefaultFactory'));
|
|
6780
6940
|
})($nesting[0], $nesting)
|
|
@@ -7443,7 +7603,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
7443
7603
|
else {if ($truthy(self.options['$[]']("catalog_assets"))) {
|
|
7444
7604
|
return self.catalog['$[]'](type)['$<<']((function() {if (type['$==']("images")) {
|
|
7445
7605
|
|
|
7446
|
-
return $$($nesting, 'ImageReference').$new(value
|
|
7606
|
+
return $$($nesting, 'ImageReference').$new(value, self.attributes['$[]']("imagesdir"));
|
|
7447
7607
|
} else {
|
|
7448
7608
|
return value
|
|
7449
7609
|
}; return nil; })())
|
|
@@ -8637,9 +8797,9 @@ Opal.modules["asciidoctor/inline"] = function(Opal) {
|
|
|
8637
8797
|
Opal.alias(self, "render", "convert");
|
|
8638
8798
|
|
|
8639
8799
|
Opal.def(self, '$alt', $Inline_alt$5 = function $$alt() {
|
|
8640
|
-
var self = this;
|
|
8800
|
+
var $a, self = this;
|
|
8641
8801
|
|
|
8642
|
-
return self.$attr("alt")
|
|
8802
|
+
return ($truthy($a = self.$attr("alt")) ? $a : "")
|
|
8643
8803
|
}, $Inline_alt$5.$$arity = 0);
|
|
8644
8804
|
|
|
8645
8805
|
Opal.def(self, '$reftext?', $Inline_reftext$ques$6 = function() {
|
|
@@ -8838,7 +8998,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
8838
8998
|
}
|
|
8839
8999
|
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;
|
|
8840
9000
|
|
|
8841
|
-
Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$finalize_header', '$nil_or_empty?', '$title=', '$-', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$apply_header_subs', '$[]=', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$include?', '$==', '$!', '$register', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$sub_attributes', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$skip_blank_lines', '$save', '$update', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$title', '$split', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$context=', '$style=', '$parent=', '$size', '$content_model', '$shift', '$unwrap_standalone_preamble', '$merge', '$fetch', '$parse_block_metadata_line', '$extensions', '$block_macros?', '$mark', '$read_line', '$terminator', '$to_s', '$masq', '$to_sym', '$registered_for_block?', '$debug?', '$debug', '$cursor_at_mark', '$strict_verbatim_paragraphs', '$unshift_line', '$markdown_syntax', '$keys', '$chr', '$uniform?', '$length', '$end_with?', '$===', '$parse_attributes', '$attribute_missing', '$tr', '$basename', '$assign_caption', '$registered_for_block_macro?', '$config', '$process_method', '$replace', '$parse_callout_list', '$callouts', '$parse_list', '$parse_description_list', '$underline_style_section_titles', '$is_section_title?', '$peek_line', '$atx_section_title?', '$generate_id', '$level=', '$read_paragraph_lines', '$adjust_indentation!', '$map!', '$slice', '$pop', '$build_block', '$apply_subs', '$chop', '$catalog_inline_anchors', '$rekey', '$index', '$strip', '$parse_table', '$each', '$raise', '$title?', '$update_attributes', '$commit_subs', '$sub?', '$catalog_callouts', '$source', '$remove_sub', '$block_terminates_paragraph', '$to_proc', '$nil?', '$lines', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$source_location', '$marker=', '$catalog_inline_biblio_anchor', '$set_option', '$text=', '$resolve_ordered_list_marker', '$read_lines_for_list_item', '$skip_line_comments', '$unshift_lines', '$fold_first', '$text?', '$is_sibling_list_item?', '$concat', '$find', '$
|
|
9001
|
+
Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$finalize_header', '$nil_or_empty?', '$title=', '$-', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$apply_header_subs', '$[]=', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$include?', '$==', '$!', '$register', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$sub_attributes', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$skip_blank_lines', '$save', '$update', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$title', '$split', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$context=', '$style=', '$parent=', '$size', '$content_model', '$shift', '$unwrap_standalone_preamble', '$merge', '$fetch', '$parse_block_metadata_line', '$extensions', '$block_macros?', '$mark', '$read_line', '$terminator', '$to_s', '$masq', '$to_sym', '$registered_for_block?', '$debug?', '$debug', '$cursor_at_mark', '$strict_verbatim_paragraphs', '$unshift_line', '$markdown_syntax', '$keys', '$chr', '$uniform?', '$length', '$end_with?', '$===', '$parse_attributes', '$attribute_missing', '$tr', '$basename', '$assign_caption', '$registered_for_block_macro?', '$config', '$process_method', '$replace', '$parse_callout_list', '$callouts', '$parse_list', '$parse_description_list', '$underline_style_section_titles', '$is_section_title?', '$peek_line', '$atx_section_title?', '$generate_id', '$level=', '$read_paragraph_lines', '$adjust_indentation!', '$map!', '$slice', '$pop', '$build_block', '$apply_subs', '$chop', '$catalog_inline_anchors', '$rekey', '$index', '$strip', '$parse_table', '$each', '$raise', '$title?', '$update_attributes', '$commit_subs', '$sub?', '$catalog_callouts', '$source', '$remove_sub', '$block_terminates_paragraph', '$to_proc', '$nil?', '$lines', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$source_location', '$marker=', '$catalog_inline_biblio_anchor', '$set_option', '$text=', '$resolve_ordered_list_marker', '$read_lines_for_list_item', '$skip_line_comments', '$unshift_lines', '$fold_first', '$text?', '$is_sibling_list_item?', '$concat', '$find', '$casecmp', '$sectname=', '$special=', '$numbered=', '$numbered', '$lineno', '$peek_lines', '$setext_section_title?', '$abs', '$cursor_at_prev_line', '$process_attribute_entries', '$next_line_empty?', '$process_authors', '$rstrip', '$each_with_index', '$compact', '$squeeze', '$to_a', '$parse_style_attribute', '$process_attribute_entry', '$skip_comment_lines', '$store_attribute', '$sanitize_attribute_name', '$set_attribute', '$save_to', '$delete_attribute', '$ord', '$int_to_roman', '$resolve_list_marker', '$parse_colspecs', '$create_columns', '$format', '$starts_with_delimiter?', '$close_open_cell', '$parse_cellspec', '$delimiter', '$match_delimiter', '$pre_match', '$post_match', '$buffer_has_unclosed_quotes?', '$skip_past_delimiter', '$buffer', '$buffer=', '$skip_past_escaped_delimiter', '$keep_cell_open', '$push_cellspec', '$close_cell', '$cell_open?', '$columns', '$assign_column_widths', '$has_header_option=', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
|
|
8842
9002
|
return (function($base, $parent_nesting) {
|
|
8843
9003
|
var self = $module($base, 'Asciidoctor');
|
|
8844
9004
|
|
|
@@ -9446,7 +9606,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
9446
9606
|
}};
|
|
9447
9607
|
if (blk_ctx['$==']("image")) {
|
|
9448
9608
|
|
|
9449
|
-
document.$register("images",
|
|
9609
|
+
document.$register("images", target);
|
|
9610
|
+
|
|
9611
|
+
$writer = ["imagesdir", doc_attrs['$[]']("imagesdir")];
|
|
9612
|
+
$send(attributes, '[]=', Opal.to_a($writer));
|
|
9613
|
+
$writer[$rb_minus($writer["length"], 1)];;
|
|
9450
9614
|
($truthy($b = attributes['$[]']("alt")) ? $b : (($writer = ["alt", ($truthy($c = style) ? $c : (($writer = ["default-alt", $$($nesting, 'Helpers').$basename(target, true).$tr("_-", " ")]), $send(attributes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]))]), $send(attributes, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
9451
9615
|
if ($truthy((scaledwidth = attributes.$delete("scaledwidth"))['$nil_or_empty?']())) {
|
|
9452
9616
|
} else {
|
|
@@ -10631,7 +10795,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
10631
10795
|
if ($truthy(this_line)) {
|
|
10632
10796
|
reader.$unshift_line(this_line)};
|
|
10633
10797
|
if ($truthy(detached_continuation)) {
|
|
10634
|
-
|
|
10798
|
+
|
|
10799
|
+
$writer = [detached_continuation, ""];
|
|
10800
|
+
$send(buffer, '[]=', Opal.to_a($writer));
|
|
10801
|
+
$writer[$rb_minus($writer["length"], 1)];};
|
|
10635
10802
|
while (!($truthy(buffer['$empty?']()))) {
|
|
10636
10803
|
if ($truthy((last_line = buffer['$[]'](-1))['$empty?']())) {
|
|
10637
10804
|
buffer.$pop()
|
|
@@ -12121,9 +12288,9 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
12121
12288
|
function $rb_gt(lhs, rhs) {
|
|
12122
12289
|
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);
|
|
12123
12290
|
}
|
|
12124
|
-
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;
|
|
12291
|
+
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $truthy = Opal.truthy, $hash2 = Opal.hash2, $send = Opal.send, $gvars = Opal.gvars;
|
|
12125
12292
|
|
|
12126
|
-
Opal.add_stubs(['$include', '$attr_accessor', '$root?', '$posixify', '$expand_path', '$pwd', '$start_with?', '$==', '$match?', '$absolute_path?', '$+', '$length', '$descends_from?', '$slice', '$to_s', '$relative_path_from', '$new', '$include?', '$tr', '$partition_path', '$each', '$pop', '$<<', '$join_path', '$[]', '$web_root?', '$unc?', '$index', '$split', '$delete', '$[]=', '$-', '$join', '$raise', '$!', '$fetch', '$warn', '$logger', '$empty?', '$nil_or_empty?', '$chomp', '$!=', '$>', '$size', '$end_with?', '$
|
|
12293
|
+
Opal.add_stubs(['$include', '$attr_accessor', '$root?', '$posixify', '$expand_path', '$pwd', '$start_with?', '$==', '$match?', '$absolute_path?', '$+', '$length', '$descends_from?', '$slice', '$to_s', '$relative_path_from', '$new', '$include?', '$tr', '$partition_path', '$each', '$pop', '$<<', '$join_path', '$[]', '$web_root?', '$unc?', '$index', '$split', '$delete', '$[]=', '$-', '$join', '$raise', '$!', '$fetch', '$warn', '$logger', '$empty?', '$nil_or_empty?', '$chomp', '$!=', '$>', '$size', '$extract_uri_prefix', '$end_with?', '$gsub', '$private', '$=~']);
|
|
12127
12294
|
return (function($base, $parent_nesting) {
|
|
12128
12295
|
var self = $module($base, 'Asciidoctor');
|
|
12129
12296
|
|
|
@@ -12132,7 +12299,7 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
12132
12299
|
(function($base, $super, $parent_nesting) {
|
|
12133
12300
|
var self = $klass($base, $super, 'PathResolver');
|
|
12134
12301
|
|
|
12135
|
-
var $nesting = [self].concat($parent_nesting), $PathResolver_initialize$1, $PathResolver_absolute_path$ques$2, $a, $PathResolver_root$ques$3, $PathResolver_unc$ques$4, $PathResolver_web_root$ques$5, $PathResolver_descends_from$ques$6, $PathResolver_relative_path$7, $PathResolver_posixify$8, $PathResolver_expand_path$9, $PathResolver_partition_path$11, $PathResolver_join_path$12, $PathResolver_system_path$13, $PathResolver_web_path$16;
|
|
12302
|
+
var $nesting = [self].concat($parent_nesting), $PathResolver_initialize$1, $PathResolver_absolute_path$ques$2, $a, $PathResolver_root$ques$3, $PathResolver_unc$ques$4, $PathResolver_web_root$ques$5, $PathResolver_descends_from$ques$6, $PathResolver_relative_path$7, $PathResolver_posixify$8, $PathResolver_expand_path$9, $PathResolver_partition_path$11, $PathResolver_join_path$12, $PathResolver_system_path$13, $PathResolver_web_path$16, $PathResolver_extract_uri_prefix$18;
|
|
12136
12303
|
|
|
12137
12304
|
self.$$prototype.file_separator = self.$$prototype._partition_path_web = self.$$prototype._partition_path_sys = self.$$prototype.working_dir = nil;
|
|
12138
12305
|
|
|
@@ -12490,7 +12657,8 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
12490
12657
|
return self.$join_path(resolved_segments, jail_root)
|
|
12491
12658
|
};
|
|
12492
12659
|
}, $PathResolver_system_path$13.$$arity = -2);
|
|
12493
|
-
|
|
12660
|
+
|
|
12661
|
+
Opal.def(self, '$web_path', $PathResolver_web_path$16 = function $$web_path(target, start) {
|
|
12494
12662
|
var $a, $b, $$17, self = this, uri_prefix = nil, target_segments = nil, target_root = nil, resolved_segments = nil, resolved_path = nil;
|
|
12495
12663
|
|
|
12496
12664
|
|
|
@@ -12500,17 +12668,13 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
12500
12668
|
};
|
|
12501
12669
|
target = self.$posixify(target);
|
|
12502
12670
|
start = self.$posixify(start);
|
|
12503
|
-
uri_prefix = nil;
|
|
12504
12671
|
if ($truthy(($truthy($a = start['$nil_or_empty?']()) ? $a : self['$web_root?'](target)))) {
|
|
12505
12672
|
} else {
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
return "" + (start) + (target)
|
|
12673
|
+
$b = self.$extract_uri_prefix("" + (start) + ((function() {if ($truthy(start['$end_with?']($$($nesting, 'SLASH')))) {
|
|
12674
|
+
return ""
|
|
12509
12675
|
} else {
|
|
12510
|
-
return
|
|
12511
|
-
}; return nil; })()
|
|
12512
|
-
if ($truthy((uri_prefix = $$($nesting, 'Helpers').$uri_prefix(target)))) {
|
|
12513
|
-
target = target['$[]'](Opal.Range.$new(uri_prefix.$length(), -1, false))};
|
|
12676
|
+
return $$($nesting, 'SLASH')
|
|
12677
|
+
}; return nil; })()) + (target)), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (uri_prefix = ($a[1] == null ? nil : $a[1])), $b
|
|
12514
12678
|
};
|
|
12515
12679
|
$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;
|
|
12516
12680
|
resolved_segments = [];
|
|
@@ -12543,7 +12707,17 @@ Opal.modules["asciidoctor/path_resolver"] = function(Opal) {
|
|
|
12543
12707
|
} else {
|
|
12544
12708
|
return resolved_path
|
|
12545
12709
|
};
|
|
12546
|
-
}, $PathResolver_web_path$16.$$arity = -2)
|
|
12710
|
+
}, $PathResolver_web_path$16.$$arity = -2);
|
|
12711
|
+
self.$private();
|
|
12712
|
+
return (Opal.def(self, '$extract_uri_prefix', $PathResolver_extract_uri_prefix$18 = function $$extract_uri_prefix(str) {
|
|
12713
|
+
var $a, self = this;
|
|
12714
|
+
|
|
12715
|
+
if ($truthy(($truthy($a = str['$include?'](":")) ? $$($nesting, 'UriSniffRx')['$=~'](str) : $a))) {
|
|
12716
|
+
return [str.$slice((($a = $gvars['~']) === nil ? nil : $a['$[]'](0)).$length(), str.$length()), (($a = $gvars['~']) === nil ? nil : $a['$[]'](0))]
|
|
12717
|
+
} else {
|
|
12718
|
+
return str
|
|
12719
|
+
}
|
|
12720
|
+
}, $PathResolver_extract_uri_prefix$18.$$arity = 1), nil) && 'extract_uri_prefix';
|
|
12547
12721
|
})($nesting[0], null, $nesting)
|
|
12548
12722
|
})($nesting[0], $nesting)
|
|
12549
12723
|
};
|
|
@@ -15980,7 +16154,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
15980
16154
|
}
|
|
15981
16155
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $hash2 = Opal.hash2, $truthy = Opal.truthy, $send = Opal.send, $klass = Opal.klass;
|
|
15982
16156
|
|
|
15983
|
-
Opal.add_stubs(['$attr_reader', '$raise', '$class', '$private_class_method', '$extend', '$register', '$each', '$[]=', '$registry', '$-', '$[]', '$for', '$===', '$new', '$name', '$private', '$include', '$==', '$join', '$
|
|
16157
|
+
Opal.add_stubs(['$attr_reader', '$raise', '$class', '$private_class_method', '$extend', '$register', '$map', '$to_s', '$each', '$[]=', '$registry', '$-', '$[]', '$for', '$===', '$new', '$name', '$private', '$include', '$==', '$join', '$content']);
|
|
15984
16158
|
|
|
15985
16159
|
(function($base, $parent_nesting) {
|
|
15986
16160
|
var self = $module($base, 'Asciidoctor');
|
|
@@ -16063,32 +16237,39 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
16063
16237
|
|
|
16064
16238
|
|
|
16065
16239
|
Opal.def(self, '$register_for', $Config_register_for$10 = function $$register_for($a) {
|
|
16066
|
-
var $post_args, names, self = this;
|
|
16240
|
+
var $post_args, names, $$11, self = this;
|
|
16067
16241
|
|
|
16068
16242
|
|
|
16069
16243
|
|
|
16070
16244
|
$post_args = Opal.slice.call(arguments, 0, arguments.length);
|
|
16071
16245
|
|
|
16072
16246
|
names = $post_args;;
|
|
16073
|
-
return $send($$($nesting, 'SyntaxHighlighter'), 'register', [self].concat(Opal.to_a(names)
|
|
16247
|
+
return $send($$($nesting, 'SyntaxHighlighter'), 'register', [self].concat(Opal.to_a($send(names, 'map', [], ($$11 = function(name){var self = $$11.$$s || this;
|
|
16248
|
+
|
|
16249
|
+
|
|
16250
|
+
|
|
16251
|
+
if (name == null) {
|
|
16252
|
+
name = nil;
|
|
16253
|
+
};
|
|
16254
|
+
return name.$to_s();}, $$11.$$s = self, $$11.$$arity = 1, $$11)))));
|
|
16074
16255
|
}, $Config_register_for$10.$$arity = -1)
|
|
16075
16256
|
})($nesting[0], $nesting);
|
|
16076
16257
|
(function($base, $parent_nesting) {
|
|
16077
16258
|
var self = $module($base, 'Factory');
|
|
16078
16259
|
|
|
16079
|
-
var $nesting = [self].concat($parent_nesting), $Factory_register$
|
|
16260
|
+
var $nesting = [self].concat($parent_nesting), $Factory_register$12, $Factory_for$14, $Factory_create$15, $Factory_registry$16;
|
|
16080
16261
|
|
|
16081
16262
|
|
|
16082
16263
|
|
|
16083
|
-
Opal.def(self, '$register', $Factory_register$
|
|
16084
|
-
var $post_args, names, $$
|
|
16264
|
+
Opal.def(self, '$register', $Factory_register$12 = function $$register(syntax_highlighter, $a) {
|
|
16265
|
+
var $post_args, names, $$13, self = this;
|
|
16085
16266
|
|
|
16086
16267
|
|
|
16087
16268
|
|
|
16088
16269
|
$post_args = Opal.slice.call(arguments, 1, arguments.length);
|
|
16089
16270
|
|
|
16090
16271
|
names = $post_args;;
|
|
16091
|
-
return $send(names, 'each', [], ($$
|
|
16272
|
+
return $send(names, 'each', [], ($$13 = function(name){var self = $$13.$$s || this, $writer = nil;
|
|
16092
16273
|
|
|
16093
16274
|
|
|
16094
16275
|
|
|
@@ -16097,16 +16278,16 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
16097
16278
|
};
|
|
16098
16279
|
$writer = [name, syntax_highlighter];
|
|
16099
16280
|
$send(self.$registry(), '[]=', Opal.to_a($writer));
|
|
16100
|
-
return $writer[$rb_minus($writer["length"], 1)];}, $$
|
|
16101
|
-
}, $Factory_register$
|
|
16281
|
+
return $writer[$rb_minus($writer["length"], 1)];}, $$13.$$s = self, $$13.$$arity = 1, $$13));
|
|
16282
|
+
}, $Factory_register$12.$$arity = -2);
|
|
16102
16283
|
|
|
16103
|
-
Opal.def(self, '$for', $Factory_for$
|
|
16284
|
+
Opal.def(self, '$for', $Factory_for$14 = function(name) {
|
|
16104
16285
|
var self = this;
|
|
16105
16286
|
|
|
16106
16287
|
return self.$registry()['$[]'](name)
|
|
16107
|
-
}, $Factory_for$
|
|
16288
|
+
}, $Factory_for$14.$$arity = 1);
|
|
16108
16289
|
|
|
16109
|
-
Opal.def(self, '$create', $Factory_create$
|
|
16290
|
+
Opal.def(self, '$create', $Factory_create$15 = function $$create(name, backend, opts) {
|
|
16110
16291
|
var self = this, syntax_hl = nil;
|
|
16111
16292
|
|
|
16112
16293
|
|
|
@@ -16130,25 +16311,25 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
16130
16311
|
} else {
|
|
16131
16312
|
return nil
|
|
16132
16313
|
};
|
|
16133
|
-
}, $Factory_create$
|
|
16314
|
+
}, $Factory_create$15.$$arity = -2);
|
|
16134
16315
|
self.$private();
|
|
16135
16316
|
|
|
16136
|
-
Opal.def(self, '$registry', $Factory_registry$
|
|
16317
|
+
Opal.def(self, '$registry', $Factory_registry$16 = function $$registry() {
|
|
16137
16318
|
var self = this;
|
|
16138
16319
|
|
|
16139
16320
|
return self.$raise($$$('::', 'NotImplementedError'), "" + ($$($nesting, 'Factory')) + " subclass " + (self.$class()) + " must implement the #" + ("registry") + " method")
|
|
16140
|
-
}, $Factory_registry$
|
|
16321
|
+
}, $Factory_registry$16.$$arity = 0);
|
|
16141
16322
|
})($nesting[0], $nesting);
|
|
16142
16323
|
(function($base, $super, $parent_nesting) {
|
|
16143
16324
|
var self = $klass($base, $super, 'CustomFactory');
|
|
16144
16325
|
|
|
16145
|
-
var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$
|
|
16326
|
+
var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$17, $CustomFactory_registry$18;
|
|
16146
16327
|
|
|
16147
16328
|
self.$$prototype.registry = nil;
|
|
16148
16329
|
|
|
16149
16330
|
self.$include($$($nesting, 'Factory'));
|
|
16150
16331
|
|
|
16151
|
-
Opal.def(self, '$initialize', $CustomFactory_initialize$
|
|
16332
|
+
Opal.def(self, '$initialize', $CustomFactory_initialize$17 = function $$initialize(seed_registry) {
|
|
16152
16333
|
var $a, self = this;
|
|
16153
16334
|
|
|
16154
16335
|
|
|
@@ -16157,29 +16338,29 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
16157
16338
|
seed_registry = nil;
|
|
16158
16339
|
};
|
|
16159
16340
|
return (self.registry = ($truthy($a = seed_registry) ? $a : $hash2([], {})));
|
|
16160
|
-
}, $CustomFactory_initialize$
|
|
16341
|
+
}, $CustomFactory_initialize$17.$$arity = -1);
|
|
16161
16342
|
self.$private();
|
|
16162
|
-
return (Opal.def(self, '$registry', $CustomFactory_registry$
|
|
16343
|
+
return (Opal.def(self, '$registry', $CustomFactory_registry$18 = function $$registry() {
|
|
16163
16344
|
var self = this;
|
|
16164
16345
|
|
|
16165
16346
|
return self.registry
|
|
16166
|
-
}, $CustomFactory_registry$
|
|
16347
|
+
}, $CustomFactory_registry$18.$$arity = 0), nil) && 'registry';
|
|
16167
16348
|
})($nesting[0], null, $nesting);
|
|
16168
16349
|
(function($base, $parent_nesting) {
|
|
16169
16350
|
var self = $module($base, 'DefaultFactory');
|
|
16170
16351
|
|
|
16171
|
-
var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$
|
|
16352
|
+
var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$19;
|
|
16172
16353
|
|
|
16173
16354
|
|
|
16174
16355
|
self.$include($$($nesting, 'Factory'));
|
|
16175
16356
|
self.$private();
|
|
16176
16357
|
(Opal.class_variable_set($nesting[0], '@@registry', $hash2([], {})));
|
|
16177
16358
|
|
|
16178
|
-
Opal.def(self, '$registry', $DefaultFactory_registry$
|
|
16359
|
+
Opal.def(self, '$registry', $DefaultFactory_registry$19 = function $$registry() {
|
|
16179
16360
|
var $a, self = this;
|
|
16180
16361
|
|
|
16181
16362
|
return (($a = $nesting[0].$$cvars['@@registry']) == null ? nil : $a)
|
|
16182
|
-
}, $DefaultFactory_registry$
|
|
16363
|
+
}, $DefaultFactory_registry$19.$$arity = 0);
|
|
16183
16364
|
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
16184
16365
|
} else {
|
|
16185
16366
|
nil
|
|
@@ -16201,13 +16382,13 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
16201
16382
|
(function($base, $super, $parent_nesting) {
|
|
16202
16383
|
var self = $klass($base, $super, 'Base');
|
|
16203
16384
|
|
|
16204
|
-
var $nesting = [self].concat($parent_nesting), $Base_format$
|
|
16385
|
+
var $nesting = [self].concat($parent_nesting), $Base_format$20;
|
|
16205
16386
|
|
|
16206
16387
|
self.$$prototype.pre_class = nil;
|
|
16207
16388
|
|
|
16208
16389
|
self.$include($$($nesting, 'SyntaxHighlighter'));
|
|
16209
|
-
return (Opal.def(self, '$format', $Base_format$
|
|
16210
|
-
var $$
|
|
16390
|
+
return (Opal.def(self, '$format', $Base_format$20 = function $$format(node, lang, opts) {
|
|
16391
|
+
var $$21, $$22, self = this, class_attr_val = nil, transform = nil, pre = nil, code = nil;
|
|
16211
16392
|
|
|
16212
16393
|
|
|
16213
16394
|
class_attr_val = (function() {if ($truthy(opts['$[]']("nowrap"))) {
|
|
@@ -16224,7 +16405,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
16224
16405
|
return $hash2([], {})
|
|
16225
16406
|
}; return nil; })();
|
|
16226
16407
|
transform['$[]'](pre, code);
|
|
16227
|
-
return "" + "<pre" + ($send(pre, 'map', [], ($$
|
|
16408
|
+
return "" + "<pre" + ($send(pre, 'map', [], ($$21 = function(k, v){var self = $$21.$$s || this;
|
|
16228
16409
|
|
|
16229
16410
|
|
|
16230
16411
|
|
|
@@ -16235,7 +16416,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
16235
16416
|
if (v == null) {
|
|
16236
16417
|
v = nil;
|
|
16237
16418
|
};
|
|
16238
|
-
return "" + " " + (k) + "=\"" + (v) + "\"";}, $$
|
|
16419
|
+
return "" + " " + (k) + "=\"" + (v) + "\"";}, $$21.$$s = self, $$21.$$arity = 2, $$21)).$join()) + "><code" + ($send(code, 'map', [], ($$22 = function(k, v){var self = $$22.$$s || this;
|
|
16239
16420
|
|
|
16240
16421
|
|
|
16241
16422
|
|
|
@@ -16246,7 +16427,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
16246
16427
|
if (v == null) {
|
|
16247
16428
|
v = nil;
|
|
16248
16429
|
};
|
|
16249
|
-
return "" + " " + (k) + "=\"" + (v) + "\"";}, $$
|
|
16430
|
+
return "" + " " + (k) + "=\"" + (v) + "\"";}, $$22.$$s = self, $$22.$$arity = 2, $$22)).$join()) + ">" + (node.$content()) + "</code></pre>";
|
|
16250
16431
|
} else {
|
|
16251
16432
|
return "" + "<pre class=\"" + (class_attr_val) + "\"><code" + ((function() {if ($truthy(lang)) {
|
|
16252
16433
|
return "" + " data-lang=\"" + (lang) + "\""
|
|
@@ -16254,7 +16435,7 @@ Opal.modules["asciidoctor/syntax_highlighter"] = function(Opal) {
|
|
|
16254
16435
|
return ""
|
|
16255
16436
|
}; return nil; })()) + ">" + (node.$content()) + "</code></pre>"
|
|
16256
16437
|
};
|
|
16257
|
-
}, $Base_format$
|
|
16438
|
+
}, $Base_format$20.$$arity = 3), nil) && 'format';
|
|
16258
16439
|
})($nesting[0], null, $nesting);
|
|
16259
16440
|
self.$extend($$($nesting, 'DefaultFactory'));
|
|
16260
16441
|
})($nesting[0], $nesting)
|
|
@@ -16589,9 +16770,14 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
16589
16770
|
$writer[$rb_minus($writer["length"], 1)];;
|
|
16590
16771
|
Opal.const_set($nesting[0], 'DropAnchorRx', /<(?:a[^>+]+|\/a)>/);
|
|
16591
16772
|
Opal.const_set($nesting[0], 'StemBreakRx', / *\\\n(?:\\?\n)*|\n\n+/);
|
|
16592
|
-
|
|
16593
|
-
|
|
16594
|
-
|
|
16773
|
+
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
16774
|
+
|
|
16775
|
+
Opal.const_set($nesting[0], 'SvgPreambleRx', new RegExp("" + "^" + ($$($nesting, 'CC_ALL')) + "*?(?=<svg\\b)"));
|
|
16776
|
+
Opal.const_set($nesting[0], 'SvgStartTagRx', /^<svg[^>]*>/);
|
|
16777
|
+
} else {
|
|
16778
|
+
nil
|
|
16779
|
+
};
|
|
16780
|
+
Opal.const_set($nesting[0], 'DimensionAttributeRx', new RegExp("" + "\\s(?:width|height|style)=([\"'])" + ($$($nesting, 'CC_ANY')) + "*?\\1"));
|
|
16595
16781
|
|
|
16596
16782
|
Opal.def(self, '$initialize', $Html5Converter_initialize$1 = function $$initialize(backend, opts) {
|
|
16597
16783
|
var self = this, syntax = nil;
|
|
@@ -18429,10 +18615,10 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
18429
18615
|
}, $Html5Converter_convert_inline_footnote$53.$$arity = 1);
|
|
18430
18616
|
|
|
18431
18617
|
Opal.def(self, '$convert_inline_image', $Html5Converter_convert_inline_image$54 = function $$convert_inline_image(node) {
|
|
18432
|
-
var $a, $$55, $$56, $
|
|
18618
|
+
var $a, $b, $$55, $$56, $c, $d, self = this, type = nil, class_attr_val = nil, title_attr = nil, img = nil, target = nil, attrs = nil, svg = nil, obj = nil, fallback = nil, role = nil;
|
|
18433
18619
|
|
|
18434
18620
|
|
|
18435
|
-
if ($truthy((($a = (type = node.$type())['$==']("icon")) ? node.$document()['$attr?']("icons", "font") : (type = node.$type())['$==']("icon")))) {
|
|
18621
|
+
if ($truthy((($a = (type = ($truthy($b = node.$type()) ? $b : "image"))['$==']("icon")) ? node.$document()['$attr?']("icons", "font") : (type = ($truthy($b = node.$type()) ? $b : "image"))['$==']("icon")))) {
|
|
18436
18622
|
|
|
18437
18623
|
class_attr_val = "" + "fa fa-" + (node.$target());
|
|
18438
18624
|
$send($hash2(["size", "rotate", "flip"], {"size": "fa-", "rotate": "fa-rotate-", "flip": "fa-flip-"}), 'each', [], ($$55 = function(key, prefix){var self = $$55.$$s || this;
|
|
@@ -19557,7 +19743,7 @@ Opal.modules["asciidoctor/extensions"] = function(Opal) {
|
|
|
19557
19743
|
return "(){0}"
|
|
19558
19744
|
} else {
|
|
19559
19745
|
return "(\\S+?)"
|
|
19560
|
-
}; return nil; })()) + "\\[(
|
|
19746
|
+
}; return nil; })()) + "\\[(|" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\]")]), $send((($b = $nesting[0].$$cvars['@@rx_cache']) == null ? nil : $b), '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
19561
19747
|
}, $InlineMacroProcessor_resolve_regexp$46.$$arity = 2), nil) && 'resolve_regexp';
|
|
19562
19748
|
})($nesting[0], $$($nesting, 'MacroProcessor'), $nesting);
|
|
19563
19749
|
(function($base, $parent_nesting) {
|
|
@@ -20656,9 +20842,9 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
|
|
|
20656
20842
|
function $rb_minus(lhs, rhs) {
|
|
20657
20843
|
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);
|
|
20658
20844
|
}
|
|
20659
|
-
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $send = Opal.send, $hash2 = Opal.hash2, $truthy = Opal.truthy
|
|
20845
|
+
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $send = Opal.send, $hash2 = Opal.hash2, $truthy = Opal.truthy;
|
|
20660
20846
|
|
|
20661
|
-
Opal.add_stubs(['$require', '$==', '$tap', '$each', '$constants', '$const_get', '$downcase', '$to_s', '$[]=', '$-', '$upcase', '$[]', '$values', '$new', '$attr_reader', '$instance_variable_set', '$send', '$singleton_class', '$<<', '$define', '$dirname', '$absolute_path', '$__dir__', '$join', '$home', '$pwd', '$to_set', '$each_key', '$slice', '$length', '$merge', '$default=', '$
|
|
20847
|
+
Opal.add_stubs(['$require', '$==', '$tap', '$each', '$constants', '$const_get', '$downcase', '$to_s', '$[]=', '$-', '$upcase', '$[]', '$values', '$new', '$attr_reader', '$instance_variable_set', '$send', '$singleton_class', '$<<', '$define', '$dirname', '$absolute_path', '$__dir__', '$join', '$home', '$pwd', '$to_set', '$chr', '$each_key', '$slice', '$length', '$merge', '$default=', '$drop', '$insert']);
|
|
20662
20848
|
|
|
20663
20849
|
self.$require("set");
|
|
20664
20850
|
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
@@ -20669,7 +20855,7 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
|
|
|
20669
20855
|
(function($base, $parent_nesting) {
|
|
20670
20856
|
var self = $module($base, 'Asciidoctor');
|
|
20671
20857
|
|
|
20672
|
-
var $nesting = [self].concat($parent_nesting), $a, $b, $Asciidoctor$7, $Asciidoctor$9, $Asciidoctor$11, $Asciidoctor$
|
|
20858
|
+
var $nesting = [self].concat($parent_nesting), $a, $b, $Asciidoctor$7, $Asciidoctor$9, $Asciidoctor$11, $Asciidoctor$13, $writer = nil;
|
|
20673
20859
|
|
|
20674
20860
|
|
|
20675
20861
|
Opal.const_set($nesting[0], 'RUBY_ENGINE_OPAL', Opal.const_set($nesting[0], 'RUBY_ENGINE', $$$('::', 'RUBY_ENGINE'))['$==']("opal"));
|
|
@@ -20797,18 +20983,32 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
|
|
|
20797
20983
|
Opal.const_set($nesting[0], 'ASCIIDOC_EXTENSIONS', $hash2([".adoc", ".asciidoc", ".asc", ".ad", ".txt"], {".adoc": true, ".asciidoc": true, ".asc": true, ".ad": true, ".txt": true}));
|
|
20798
20984
|
Opal.const_set($nesting[0], 'SETEXT_SECTION_LEVELS', $hash2(["=", "-", "~", "^", "+"], {"=": 0, "-": 1, "~": 2, "^": 3, "+": 4}));
|
|
20799
20985
|
Opal.const_set($nesting[0], 'ADMONITION_STYLES', ["NOTE", "TIP", "IMPORTANT", "WARNING", "CAUTION"].$to_set());
|
|
20800
|
-
Opal.const_set($nesting[0], 'ADMONITION_STYLE_HEADS',
|
|
20986
|
+
Opal.const_set($nesting[0], 'ADMONITION_STYLE_HEADS', $send($$$('::', 'Set').$new(), 'tap', [], ($Asciidoctor$7 = function(accum){var self = $Asciidoctor$7.$$s || this, $$8;
|
|
20987
|
+
|
|
20988
|
+
|
|
20989
|
+
|
|
20990
|
+
if (accum == null) {
|
|
20991
|
+
accum = nil;
|
|
20992
|
+
};
|
|
20993
|
+
return $send($$($nesting, 'ADMONITION_STYLES'), 'each', [], ($$8 = function(s){var self = $$8.$$s || this;
|
|
20994
|
+
|
|
20995
|
+
|
|
20996
|
+
|
|
20997
|
+
if (s == null) {
|
|
20998
|
+
s = nil;
|
|
20999
|
+
};
|
|
21000
|
+
return accum['$<<'](s.$chr());}, $$8.$$s = self, $$8.$$arity = 1, $$8));}, $Asciidoctor$7.$$s = self, $Asciidoctor$7.$$arity = 1, $Asciidoctor$7)));
|
|
20801
21001
|
Opal.const_set($nesting[0], 'PARAGRAPH_STYLES', ["comment", "example", "literal", "listing", "normal", "open", "pass", "quote", "sidebar", "source", "verse", "abstract", "partintro"].$to_set());
|
|
20802
21002
|
Opal.const_set($nesting[0], 'VERBATIM_STYLES', ["literal", "listing", "source", "verse"].$to_set());
|
|
20803
21003
|
Opal.const_set($nesting[0], 'DELIMITED_BLOCKS', $hash2(["--", "----", "....", "====", "****", "____", "++++", "|===", ",===", ":===", "!===", "////", "```"], {"--": ["open", ["comment", "example", "literal", "listing", "pass", "quote", "sidebar", "source", "verse", "admonition", "abstract", "partintro"].$to_set()], "----": ["listing", ["literal", "source"].$to_set()], "....": ["literal", ["listing", "source"].$to_set()], "====": ["example", ["admonition"].$to_set()], "****": ["sidebar", $$$('::', 'Set').$new()], "____": ["quote", ["verse"].$to_set()], "++++": ["pass", ["stem", "latexmath", "asciimath"].$to_set()], "|===": ["table", $$$('::', 'Set').$new()], ",===": ["table", $$$('::', 'Set').$new()], ":===": ["table", $$$('::', 'Set').$new()], "!===": ["table", $$$('::', 'Set').$new()], "////": ["comment", $$$('::', 'Set').$new()], "```": ["fenced_code", $$$('::', 'Set').$new()]}));
|
|
20804
|
-
Opal.const_set($nesting[0], 'DELIMITED_BLOCK_HEADS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$
|
|
21004
|
+
Opal.const_set($nesting[0], 'DELIMITED_BLOCK_HEADS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$9 = function(accum){var self = $Asciidoctor$9.$$s || this, $$10;
|
|
20805
21005
|
|
|
20806
21006
|
|
|
20807
21007
|
|
|
20808
21008
|
if (accum == null) {
|
|
20809
21009
|
accum = nil;
|
|
20810
21010
|
};
|
|
20811
|
-
return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$
|
|
21011
|
+
return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$10 = function(k){var self = $$10.$$s || this, $writer = nil;
|
|
20812
21012
|
|
|
20813
21013
|
|
|
20814
21014
|
|
|
@@ -20817,15 +21017,15 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
|
|
|
20817
21017
|
};
|
|
20818
21018
|
$writer = [k.$slice(0, 2), true];
|
|
20819
21019
|
$send(accum, '[]=', Opal.to_a($writer));
|
|
20820
|
-
return $writer[$rb_minus($writer["length"], 1)];}, $$
|
|
20821
|
-
Opal.const_set($nesting[0], 'DELIMITED_BLOCK_TAILS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$
|
|
21020
|
+
return $writer[$rb_minus($writer["length"], 1)];}, $$10.$$s = self, $$10.$$arity = 1, $$10));}, $Asciidoctor$9.$$s = self, $Asciidoctor$9.$$arity = 1, $Asciidoctor$9)));
|
|
21021
|
+
Opal.const_set($nesting[0], 'DELIMITED_BLOCK_TAILS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$11 = function(accum){var self = $Asciidoctor$11.$$s || this, $$12;
|
|
20822
21022
|
|
|
20823
21023
|
|
|
20824
21024
|
|
|
20825
21025
|
if (accum == null) {
|
|
20826
21026
|
accum = nil;
|
|
20827
21027
|
};
|
|
20828
|
-
return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$
|
|
21028
|
+
return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$12 = function(k){var self = $$12.$$s || this, $writer = nil;
|
|
20829
21029
|
|
|
20830
21030
|
|
|
20831
21031
|
|
|
@@ -20839,7 +21039,7 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
|
|
|
20839
21039
|
return $writer[$rb_minus($writer["length"], 1)];
|
|
20840
21040
|
} else {
|
|
20841
21041
|
return nil
|
|
20842
|
-
};}, $$
|
|
21042
|
+
};}, $$12.$$s = self, $$12.$$arity = 1, $$12));}, $Asciidoctor$11.$$s = self, $Asciidoctor$11.$$arity = 1, $Asciidoctor$11)));
|
|
20843
21043
|
Opal.const_set($nesting[0], 'CAPTION_ATTR_NAMES', $hash2(["example", "figure", "listing", "table"], {"example": "example-caption", "figure": "figure-caption", "listing": "listing-caption", "table": "table-caption"}));
|
|
20844
21044
|
Opal.const_set($nesting[0], 'LAYOUT_BREAK_CHARS', $hash2(["'", "<"], {"'": "thematic_break", "<": "page_break"}));
|
|
20845
21045
|
Opal.const_set($nesting[0], 'MARKDOWN_THEMATIC_BREAK_CHARS', $hash2(["-", "*", "_"], {"-": "thematic_break", "*": "thematic_break", "_": "thematic_break"}));
|
|
@@ -20862,129 +21062,11 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
|
|
|
20862
21062
|
Opal.const_set($nesting[0], 'HIGHLIGHT_JS_VERSION', "9.15.6");
|
|
20863
21063
|
Opal.const_set($nesting[0], 'MATHJAX_VERSION', "2.7.5");
|
|
20864
21064
|
Opal.const_set($nesting[0], 'FLEXIBLE_ATTRIBUTES', ["sectnums"]);
|
|
21065
|
+
Opal.const_set($nesting[0], 'INTRINSIC_ATTRIBUTES', $hash2(["startsb", "endsb", "vbar", "caret", "asterisk", "tilde", "plus", "backslash", "backtick", "blank", "empty", "sp", "two-colons", "two-semicolons", "nbsp", "deg", "zwsp", "quot", "apos", "lsquo", "rsquo", "ldquo", "rdquo", "wj", "brvbar", "pp", "cpp", "amp", "lt", "gt"], {"startsb": "[", "endsb": "]", "vbar": "|", "caret": "^", "asterisk": "*", "tilde": "~", "plus": "+", "backslash": "\\", "backtick": "`", "blank": "", "empty": "", "sp": " ", "two-colons": "::", "two-semicolons": ";;", "nbsp": " ", "deg": "°", "zwsp": "​", "quot": """, "apos": "'", "lsquo": "‘", "rsquo": "’", "ldquo": "“", "rdquo": "”", "wj": "⁠", "brvbar": "¦", "pp": "++", "cpp": "C++", "amp": "&", "lt": "<", "gt": ">"}));
|
|
20865
21066
|
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
20866
21067
|
} else {
|
|
20867
21068
|
nil
|
|
20868
21069
|
};
|
|
20869
|
-
Opal.const_set($nesting[0], 'AuthorInfoLineRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*)(?: +(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*))?(?: +(" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "\\-'.]*))?(?: +<([^>]+)>)?$"));
|
|
20870
|
-
Opal.const_set($nesting[0], 'AuthorDelimiterRx', /;(?: |$)/);
|
|
20871
|
-
Opal.const_set($nesting[0], 'RevisionInfoLineRx', new RegExp("" + "^(?:[^\\d{]*(" + ($$($nesting, 'CC_ANY')) + "*?),)? *(?!:)(" + ($$($nesting, 'CC_ANY')) + "*?)(?: *(?!^),?: *(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
|
|
20872
|
-
Opal.const_set($nesting[0], 'ManpageTitleVolnumRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *\\( *(" + ($$($nesting, 'CC_ANY')) + "+?) *\\)$"));
|
|
20873
|
-
Opal.const_set($nesting[0], 'ManpageNamePurposeRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) +- +(" + ($$($nesting, 'CC_ANY')) + "+)$"));
|
|
20874
|
-
Opal.const_set($nesting[0], 'ConditionalDirectiveRx', new RegExp("" + "^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
20875
|
-
Opal.const_set($nesting[0], 'EvalExpressionRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "+?) *([=!><]=|[><]) *(" + ($$($nesting, 'CC_ANY')) + "+)$"));
|
|
20876
|
-
Opal.const_set($nesting[0], 'IncludeDirectiveRx', new RegExp("" + "^(\\\\)?include::([^\\[][^\\[]*)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
20877
|
-
Opal.const_set($nesting[0], 'TagDirectiveRx', /\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m);
|
|
20878
|
-
Opal.const_set($nesting[0], 'AttributeEntryRx', new RegExp("" + "^:(!?" + ($$($nesting, 'CG_WORD')) + "[^:]*):(?:[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*))?$"));
|
|
20879
|
-
Opal.const_set($nesting[0], 'InvalidAttributeNameCharsRx', new RegExp("" + "[^-" + ($$($nesting, 'CC_WORD')) + "]"));
|
|
20880
|
-
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
20881
|
-
Opal.const_set($nesting[0], 'AttributeEntryPassMacroRx', new RegExp("" + "^pass:([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*)\\]$"))
|
|
20882
|
-
} else {
|
|
20883
|
-
nil
|
|
20884
|
-
};
|
|
20885
|
-
Opal.const_set($nesting[0], 'AttributeReferenceRx', new RegExp("" + "(\\\\)?\\{(" + ($$($nesting, 'CG_WORD')) + "[-" + ($$($nesting, 'CC_WORD')) + "]*|(set|counter2?):" + ($$($nesting, 'CC_ANY')) + "+?)(\\\\)?\\}"));
|
|
20886
|
-
Opal.const_set($nesting[0], 'BlockAnchorRx', new RegExp("" + "^\\[\\[(?:|([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?)\\]\\]$"));
|
|
20887
|
-
Opal.const_set($nesting[0], 'BlockAttributeListRx', new RegExp("" + "^\\[(|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*)\\]$"));
|
|
20888
|
-
Opal.const_set($nesting[0], 'BlockAttributeLineRx', new RegExp("" + "^\\[(?:|[" + ($$($nesting, 'CC_WORD')) + ".#%{,\"']" + ($$($nesting, 'CC_ANY')) + "*|\\[(?:|[" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*(?:, *" + ($$($nesting, 'CC_ANY')) + "+)?)\\])\\]$"));
|
|
20889
|
-
Opal.const_set($nesting[0], 'BlockTitleRx', new RegExp("" + "^\\.(\\.?[^ \\t.]" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
20890
|
-
Opal.const_set($nesting[0], 'AdmonitionParagraphRx', new RegExp("" + "^(" + ($$($nesting, 'ADMONITION_STYLES').$to_a().$join("|")) + "):[ \\t]+"));
|
|
20891
|
-
Opal.const_set($nesting[0], 'LiteralParagraphRx', new RegExp("" + "^([ \\t]+" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
20892
|
-
Opal.const_set($nesting[0], 'AtxSectionTitleRx', new RegExp("" + "^(=={0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
|
|
20893
|
-
Opal.const_set($nesting[0], 'ExtAtxSectionTitleRx', new RegExp("" + "^(=={0,5}|#\\\#{0,5})[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "+?)(?:[ \\t]+\\1)?$"));
|
|
20894
|
-
Opal.const_set($nesting[0], 'SetextSectionTitleRx', new RegExp("" + "^((?!\\.)" + ($$($nesting, 'CC_ANY')) + "*?" + ($$($nesting, 'CG_ALNUM')) + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
20895
|
-
Opal.const_set($nesting[0], 'InlineSectionAnchorRx', new RegExp("" + " (\\\\)?\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+))?\\]\\]$"));
|
|
20896
|
-
Opal.const_set($nesting[0], 'InvalidSectionIdCharsRx', new RegExp("" + "<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ " + ($$($nesting, 'CC_WORD')) + "\\-.]+?"));
|
|
20897
|
-
Opal.const_set($nesting[0], 'SectionLevelStyleRx', /^sect\d$/);
|
|
20898
|
-
Opal.const_set($nesting[0], 'AnyListRx', new RegExp("" + "^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?(?::::{0,2}|;;)(?:$|[ \\t])|<?\\d+>[ \\t])"));
|
|
20899
|
-
Opal.const_set($nesting[0], 'UnorderedListRx', new RegExp("" + "^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
20900
|
-
Opal.const_set($nesting[0], 'OrderedListRx', new RegExp("" + "^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
20901
|
-
Opal.const_set($nesting[0], 'OrderedListMarkerRxMap', $hash2(["arabic", "loweralpha", "lowerroman", "upperalpha", "upperroman"], {"arabic": /\d+\./, "loweralpha": /[a-z]\./, "lowerroman": /[ivx]+\)/, "upperalpha": /[A-Z]\./, "upperroman": /[IVX]+\)/}));
|
|
20902
|
-
Opal.const_set($nesting[0], 'DescriptionListRx', new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(:::{0,2}|;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"));
|
|
20903
|
-
Opal.const_set($nesting[0], 'DescriptionListSiblingRx', $hash2(["::", ":::", "::::", ";;"], {"::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), ":::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), "::::": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)"), ";;": new RegExp("" + "^(?!//[^/])[ \\t]*([^ \\t]" + ($$($nesting, 'CC_ANY')) + "*?)(;;)(?:$|[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$)")}));
|
|
20904
|
-
Opal.const_set($nesting[0], 'CalloutListRx', new RegExp("" + "^<(\\d+|\\.)>[ \\t]+(" + ($$($nesting, 'CC_ANY')) + "*)$"));
|
|
20905
|
-
Opal.const_set($nesting[0], 'CalloutExtractRx', /((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/);
|
|
20906
|
-
Opal.const_set($nesting[0], 'CalloutExtractRxt', "(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)");
|
|
20907
|
-
Opal.const_set($nesting[0], 'CalloutExtractRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$11 = function(h, k){var self = $Asciidoctor$11.$$s || this;
|
|
20908
|
-
|
|
20909
|
-
|
|
20910
|
-
|
|
20911
|
-
if (h == null) {
|
|
20912
|
-
h = nil;
|
|
20913
|
-
};
|
|
20914
|
-
|
|
20915
|
-
if (k == null) {
|
|
20916
|
-
k = nil;
|
|
20917
|
-
};
|
|
20918
|
-
$writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
|
|
20919
|
-
return ""
|
|
20920
|
-
} else {
|
|
20921
|
-
return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
|
|
20922
|
-
}; return nil; })()) + ")?" + ($$($nesting, 'CalloutExtractRxt')))];
|
|
20923
|
-
$send(h, '[]=', Opal.to_a($writer));
|
|
20924
|
-
return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$11.$$s = self, $Asciidoctor$11.$$arity = 2, $Asciidoctor$11)));
|
|
20925
|
-
Opal.const_set($nesting[0], 'CalloutScanRx', new RegExp("" + "\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*" + ($$($nesting, 'CC_EOL')) + ")"));
|
|
20926
|
-
Opal.const_set($nesting[0], 'CalloutSourceRx', new RegExp("" + "((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*" + ($$($nesting, 'CC_EOL')) + ")"));
|
|
20927
|
-
Opal.const_set($nesting[0], 'CalloutSourceRxt', "" + "(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*" + ($$($nesting, 'CC_EOL')) + ")");
|
|
20928
|
-
Opal.const_set($nesting[0], 'CalloutSourceRxMap', $send($$$('::', 'Hash'), 'new', [], ($Asciidoctor$12 = function(h, k){var self = $Asciidoctor$12.$$s || this;
|
|
20929
|
-
|
|
20930
|
-
|
|
20931
|
-
|
|
20932
|
-
if (h == null) {
|
|
20933
|
-
h = nil;
|
|
20934
|
-
};
|
|
20935
|
-
|
|
20936
|
-
if (k == null) {
|
|
20937
|
-
k = nil;
|
|
20938
|
-
};
|
|
20939
|
-
$writer = [k, new RegExp("" + "(" + ((function() {if ($truthy(k['$empty?']())) {
|
|
20940
|
-
return ""
|
|
20941
|
-
} else {
|
|
20942
|
-
return "" + ($$$('::', 'Regexp').$escape(k)) + " ?"
|
|
20943
|
-
}; return nil; })()) + ")?" + ($$($nesting, 'CalloutSourceRxt')))];
|
|
20944
|
-
$send(h, '[]=', Opal.to_a($writer));
|
|
20945
|
-
return $writer[$rb_minus($writer["length"], 1)];}, $Asciidoctor$12.$$s = self, $Asciidoctor$12.$$arity = 2, $Asciidoctor$12)));
|
|
20946
|
-
Opal.const_set($nesting[0], 'ListRxMap', $hash2(["ulist", "olist", "dlist", "colist"], {"ulist": $$($nesting, 'UnorderedListRx'), "olist": $$($nesting, 'OrderedListRx'), "dlist": $$($nesting, 'DescriptionListRx'), "colist": $$($nesting, 'CalloutListRx')}));
|
|
20947
|
-
Opal.const_set($nesting[0], 'ColumnSpecRx', /^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/);
|
|
20948
|
-
Opal.const_set($nesting[0], 'CellSpecStartRx', /^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
|
|
20949
|
-
Opal.const_set($nesting[0], 'CellSpecEndRx', /[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);
|
|
20950
|
-
Opal.const_set($nesting[0], 'CustomBlockMacroRx', new RegExp("" + "^(" + ($$($nesting, 'CG_WORD')) + "[-" + ($$($nesting, 'CC_WORD')) + "]*)::(|\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
20951
|
-
Opal.const_set($nesting[0], 'BlockMediaMacroRx', new RegExp("" + "^(image|video|audio)::(\\S|\\S" + ($$($nesting, 'CC_ANY')) + "*?\\S)\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
20952
|
-
Opal.const_set($nesting[0], 'BlockTocMacroRx', new RegExp("" + "^toc::\\[(" + ($$($nesting, 'CC_ANY')) + "+)?\\]$"));
|
|
20953
|
-
Opal.const_set($nesting[0], 'InlineAnchorRx', new RegExp("" + "(\\\\)?(?:\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]|anchor:([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)\\[(?:\\]|(" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\]))"));
|
|
20954
|
-
Opal.const_set($nesting[0], 'InlineAnchorScanRx', new RegExp("" + "(?:^|[^\\\\\\[])\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]|(?:^|[^\\\\])anchor:([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)\\[(?:\\]|(" + ($$($nesting, 'CC_ANY')) + "*?[^\\\\])\\])"));
|
|
20955
|
-
Opal.const_set($nesting[0], 'LeadingInlineAnchorRx', new RegExp("" + "^\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]"));
|
|
20956
|
-
Opal.const_set($nesting[0], 'InlineBiblioAnchorRx', new RegExp("" + "^\\[\\[\\[([" + ($$($nesting, 'CC_ALPHA')) + "_:][" + ($$($nesting, 'CC_WORD')) + ":.-]*)(?:, *(" + ($$($nesting, 'CC_ANY')) + "+?))?\\]\\]\\]"));
|
|
20957
|
-
Opal.const_set($nesting[0], 'InlineEmailRx', new RegExp("" + "([\\\\>:/])?" + ($$($nesting, 'CG_WORD')) + "(?:&|[" + ($$($nesting, 'CC_WORD')) + ".%+-])*@" + ($$($nesting, 'CG_ALNUM')) + "[" + ($$($nesting, 'CC_ALNUM')) + "_.-]*\\.[a-zA-Z]{2,5}\\b"));
|
|
20958
|
-
Opal.const_set($nesting[0], 'InlineFootnoteMacroRx', new RegExp("" + "\\\\?footnote(?:(ref):|:([\\w-]+)?)\\[(?:|(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\]))\\]", 'm'));
|
|
20959
|
-
Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
20960
|
-
Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
|
|
20961
|
-
Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
20962
|
-
Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|<|[>\\(\\)\\[\\];])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])?", 'm'));
|
|
20963
|
-
Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
20964
|
-
Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[-" + ($$($nesting, 'CC_WORD')) + "]*$"));
|
|
20965
|
-
Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
20966
|
-
Opal.const_set($nesting[0], 'InlineMenuMacroRx', new RegExp("" + "\\\\?menu:(" + ($$($nesting, 'CG_WORD')) + "|[" + ($$($nesting, 'CC_WORD')) + "&][^\\n\\[]*[^\\s\\[])\\[ *(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])?\\]", 'm'));
|
|
20967
|
-
Opal.const_set($nesting[0], 'InlineMenuRx', new RegExp("" + "\\\\?\"([" + ($$($nesting, 'CC_WORD')) + "&][^\"]*?[ \\n]+>[ \\n]+[^\"]*)\""));
|
|
20968
|
-
Opal.const_set($nesting[0], 'InlinePassRx', $hash(false, ["+", "`", new RegExp("" + "(^|[^" + ($$($nesting, 'CC_WORD')) + ";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\4)(?!" + ($$($nesting, 'CG_WORD')) + ")", 'm')], true, ["`", nil, new RegExp("" + "(^|[^`" + ($$($nesting, 'CC_WORD')) + "])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\4)(?![`" + ($$($nesting, 'CC_WORD')) + "])", 'm')]));
|
|
20969
|
-
Opal.const_set($nesting[0], 'SinglePlusInlinePassRx', new RegExp("" + "^(\\\\)?\\+(\\S|\\S" + ($$($nesting, 'CC_ALL')) + "*?\\S)\\+$", 'm'));
|
|
20970
|
-
Opal.const_set($nesting[0], 'InlinePassMacroRx', new RegExp("" + "(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(" + ($$($nesting, 'CC_ALL')) + "*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\])", 'm'));
|
|
20971
|
-
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'));
|
|
20972
|
-
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
20973
|
-
Opal.const_set($nesting[0], 'HardLineBreakRx', new RegExp("" + "^(" + ($$($nesting, 'CC_ANY')) + "*) \\+$", 'm'))
|
|
20974
|
-
} else {
|
|
20975
|
-
nil
|
|
20976
|
-
};
|
|
20977
|
-
Opal.const_set($nesting[0], 'MarkdownThematicBreakRx', /^ {0,3}([-*_])( *)\1\2\1$/);
|
|
20978
|
-
Opal.const_set($nesting[0], 'ExtLayoutBreakRx', /^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/);
|
|
20979
|
-
Opal.const_set($nesting[0], 'BlankLineRx', /\n{2,}/);
|
|
20980
|
-
Opal.const_set($nesting[0], 'EscapedSpaceRx', /\\([ \t\n])/);
|
|
20981
|
-
Opal.const_set($nesting[0], 'ReplaceableTextRx', /[&']|--|\.\.\.|\([CRT]M?\)/);
|
|
20982
|
-
Opal.const_set($nesting[0], 'SpaceDelimiterRx', /([^\\])[ \t\n]+/);
|
|
20983
|
-
Opal.const_set($nesting[0], 'SubModifierSniffRx', /[+-]/);
|
|
20984
|
-
Opal.const_set($nesting[0], 'TrailingDigitsRx', /\d+$/);
|
|
20985
|
-
Opal.const_set($nesting[0], 'UriSniffRx', new RegExp("" + "^" + ($$($nesting, 'CG_ALPHA')) + "[" + ($$($nesting, 'CC_ALNUM')) + ".+-]+:/{0,2}"));
|
|
20986
|
-
Opal.const_set($nesting[0], 'XmlSanitizeRx', /<[^>]+>/);
|
|
20987
|
-
Opal.const_set($nesting[0], 'INTRINSIC_ATTRIBUTES', $hash2(["startsb", "endsb", "vbar", "caret", "asterisk", "tilde", "plus", "backslash", "backtick", "blank", "empty", "sp", "two-colons", "two-semicolons", "nbsp", "deg", "zwsp", "quot", "apos", "lsquo", "rsquo", "ldquo", "rdquo", "wj", "brvbar", "pp", "cpp", "amp", "lt", "gt"], {"startsb": "[", "endsb": "]", "vbar": "|", "caret": "^", "asterisk": "*", "tilde": "~", "plus": "+", "backslash": "\\", "backtick": "`", "blank": "", "empty": "", "sp": " ", "two-colons": "::", "two-semicolons": ";;", "nbsp": " ", "deg": "°", "zwsp": "​", "quot": """, "apos": "'", "lsquo": "‘", "rsquo": "’", "ldquo": "“", "rdquo": "”", "wj": "⁠", "brvbar": "¦", "pp": "++", "cpp": "C++", "amp": "&", "lt": "<", "gt": ">"}));
|
|
20988
21070
|
Opal.const_set($nesting[0], 'QUOTE_SUBS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$13 = function(accum){var self = $Asciidoctor$13.$$s || this, normal = nil, compat = nil;
|
|
20989
21071
|
|
|
20990
21072
|
|
|
@@ -21030,6 +21112,7 @@ Opal.modules["asciidoctor/js/postscript"] = function(Opal) {
|
|
|
21030
21112
|
self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/core_ext");
|
|
21031
21113
|
self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/helpers");
|
|
21032
21114
|
self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/logging");
|
|
21115
|
+
self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/rx");
|
|
21033
21116
|
self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/substitutors");
|
|
21034
21117
|
self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/version");
|
|
21035
21118
|
self.$require("asciidoctor.rb"+ '/../' + "asciidoctor/abstract_node");
|
|
@@ -24086,6 +24169,12 @@ InlineMacroProcessor.prototype.getName = function () {
|
|
|
24086
24169
|
InlineMacroProcessor.prototype.parseContentAs = function (value) {
|
|
24087
24170
|
this.$parse_content_as(value)
|
|
24088
24171
|
}
|
|
24172
|
+
/**
|
|
24173
|
+
* @memberof Extensions/InlineMacroProcessor
|
|
24174
|
+
*/
|
|
24175
|
+
InlineMacroProcessor.prototype.matchFormat = function (value) {
|
|
24176
|
+
this.$match_format(value)
|
|
24177
|
+
}
|
|
24089
24178
|
|
|
24090
24179
|
/**
|
|
24091
24180
|
* @namespace
|
|
@@ -24510,7 +24599,7 @@ Html5Converter.prototype.convert = function (node, transform, opts) {
|
|
|
24510
24599
|
}
|
|
24511
24600
|
|
|
24512
24601
|
|
|
24513
|
-
var ASCIIDOCTOR_JS_VERSION = '2.0.
|
|
24602
|
+
var ASCIIDOCTOR_JS_VERSION = '2.0.3';
|
|
24514
24603
|
|
|
24515
24604
|
/**
|
|
24516
24605
|
* Get Asciidoctor.js version number.
|