@asciidoctor/core 2.2.5 → 2.2.6
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 +444 -358
- package/dist/browser/asciidoctor.min.js +1444 -1440
- package/dist/css/asciidoctor.css +7 -8
- package/dist/graalvm/asciidoctor.js +443 -357
- package/dist/node/asciidoctor.js +443 -357
- package/package.json +23 -26
- package/types/index.d.ts +31 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Asciidoctor.js 2.2.
|
|
2
|
+
* @license Asciidoctor.js 2.2.6 | MIT | https://github.com/asciidoctor/asciidoctor.js
|
|
3
3
|
*/
|
|
4
4
|
(function(undefined) {
|
|
5
5
|
// @note
|
|
@@ -21834,9 +21834,9 @@ Opal.modules["asciidoctor/core_ext/hash/merge"] = function(Opal) {
|
|
|
21834
21834
|
function $rb_gt(lhs, rhs) {
|
|
21835
21835
|
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);
|
|
21836
21836
|
}
|
|
21837
|
-
var $$1, self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $send = Opal.send, $truthy = Opal.truthy
|
|
21837
|
+
var $$1, self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $send = Opal.send, $truthy = Opal.truthy;
|
|
21838
21838
|
|
|
21839
|
-
Opal.add_stubs(['$==', '$arity', '$instance_method', '$send', '$new', '$<', '$length', '$>', '$inject', '$merge', '$[]']);
|
|
21839
|
+
Opal.add_stubs(['$==', '$arity', '$instance_method', '$send', '$new', '$<', '$length', '$dup', '$>', '$inject', '$merge', '$[]']);
|
|
21840
21840
|
if ($$($nesting, 'Hash').$instance_method("merge").$arity()['$=='](1)) {
|
|
21841
21841
|
return $$($nesting, 'Hash').$send("prepend", $send($$($nesting, 'Module'), 'new', [], ($$1 = function(){var self = $$1.$$s || this, $merge$2;
|
|
21842
21842
|
|
|
@@ -21850,7 +21850,7 @@ Opal.modules["asciidoctor/core_ext/hash/merge"] = function(Opal) {
|
|
|
21850
21850
|
|
|
21851
21851
|
args = $post_args;;
|
|
21852
21852
|
if ($truthy($rb_lt((len = args.$length()), 1))) {
|
|
21853
|
-
return
|
|
21853
|
+
return self.$dup()
|
|
21854
21854
|
} else {
|
|
21855
21855
|
|
|
21856
21856
|
if ($truthy($rb_gt(len, 1))) {
|
|
@@ -25018,7 +25018,7 @@ Opal.modules["asciidoctor/version"] = function(Opal) {
|
|
|
25018
25018
|
|
|
25019
25019
|
var $nesting = [self].concat($parent_nesting);
|
|
25020
25020
|
|
|
25021
|
-
Opal.const_set($nesting[0], 'VERSION', "2.0.
|
|
25021
|
+
Opal.const_set($nesting[0], 'VERSION', "2.0.17")
|
|
25022
25022
|
})($nesting[0], $nesting)
|
|
25023
25023
|
};
|
|
25024
25024
|
|
|
@@ -25644,15 +25644,12 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
25644
25644
|
function $rb_minus(lhs, rhs) {
|
|
25645
25645
|
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);
|
|
25646
25646
|
}
|
|
25647
|
-
function $rb_gt(lhs, rhs) {
|
|
25648
|
-
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);
|
|
25649
|
-
}
|
|
25650
25647
|
function $rb_plus(lhs, rhs) {
|
|
25651
25648
|
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs + rhs : lhs['$+'](rhs);
|
|
25652
25649
|
}
|
|
25653
25650
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $hash2 = Opal.hash2, $send = Opal.send, $truthy = Opal.truthy;
|
|
25654
25651
|
|
|
25655
|
-
Opal.add_stubs(['$attr_reader', '$attr_writer', '$attr_accessor', '$==', '$===', '$level', '$file', '$lineno', '$playback_attributes', '$convert', '$converter', '$join', '$map', '$to_s', '$parent', '$parent=', '$-', '$<<', '$empty?', '
|
|
25652
|
+
Opal.add_stubs(['$attr_reader', '$attr_writer', '$attr_accessor', '$==', '$===', '$level', '$file', '$lineno', '$playback_attributes', '$convert', '$converter', '$join', '$map', '$to_s', '$parent', '$parent=', '$-', '$<<', '$empty?', '$Integer', '$find_by_internal', '$to_proc', '$context', '$[]', '$items', '$+', '$find_index', '$include?', '$next_adjacent_block', '$blocks', '$select', '$sub_specialchars', '$match?', '$sub_replacements', '$title', '$apply_title_subs', '$delete', '$reftext', '$!', '$nil_or_empty?', '$sub_placeholder', '$sub_quotes', '$compat_mode', '$attributes', '$chomp', '$increment_and_store_counter', '$index=', '$numbered', '$sectname', '$counter', '$numeral=', '$numeral', '$caption=', '$int_to_roman', '$each', '$assign_numeral', '$reindex_sections', '$protected', '$has_role?', '$raise', '$header?', '$!=', '$flatten', '$head', '$rows', '$merge', '$body', '$foot', '$style', '$inner_document']);
|
|
25656
25653
|
return (function($base, $parent_nesting) {
|
|
25657
25654
|
var self = $module($base, 'Asciidoctor');
|
|
25658
25655
|
|
|
@@ -25663,7 +25660,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
25663
25660
|
|
|
25664
25661
|
var $nesting = [self].concat($parent_nesting), $AbstractBlock_initialize$1, $AbstractBlock_block$ques$2, $AbstractBlock_inline$ques$3, $AbstractBlock_file$4, $AbstractBlock_lineno$5, $AbstractBlock_convert$6, $AbstractBlock_content$7, $AbstractBlock_context$eq$9, $AbstractBlock_$lt$lt$10, $AbstractBlock_blocks$ques$11, $AbstractBlock_sections$ques$12, $AbstractBlock_number$13, $AbstractBlock_number$eq$14, $AbstractBlock_find_by$15, $AbstractBlock_next_adjacent_block$16, $AbstractBlock_sections$18, $AbstractBlock_alt$20, $AbstractBlock_caption$21, $AbstractBlock_captioned_title$22, $AbstractBlock_list_marker_keyword$23, $AbstractBlock_title$24, $AbstractBlock_title$ques$25, $AbstractBlock_title$eq$26, $AbstractBlock_sub$ques$27, $AbstractBlock_remove_sub$28, $AbstractBlock_xreftext$29, $AbstractBlock_assign_caption$30, $AbstractBlock_assign_numeral$31, $AbstractBlock_reindex_sections$32, $AbstractBlock_find_by_internal$34;
|
|
25665
25662
|
|
|
25666
|
-
self.$$prototype.source_location = self.$$prototype.document = self.$$prototype.attributes = self.$$prototype.blocks = self.$$prototype.
|
|
25663
|
+
self.$$prototype.source_location = self.$$prototype.document = self.$$prototype.attributes = self.$$prototype.blocks = self.$$prototype.numeral = self.$$prototype.context = self.$$prototype.parent = self.$$prototype.caption = self.$$prototype.style = self.$$prototype.converted_title = self.$$prototype.title = self.$$prototype.subs = self.$$prototype.next_section_index = self.$$prototype.next_section_ordinal = self.$$prototype.id = self.$$prototype.header = nil;
|
|
25667
25664
|
|
|
25668
25665
|
self.$attr_reader("blocks");
|
|
25669
25666
|
self.$attr_writer("caption");
|
|
@@ -25784,7 +25781,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
25784
25781
|
Opal.def(self, '$sections?', $AbstractBlock_sections$ques$12 = function() {
|
|
25785
25782
|
var self = this;
|
|
25786
25783
|
|
|
25787
|
-
return
|
|
25784
|
+
return false
|
|
25788
25785
|
}, $AbstractBlock_sections$ques$12.$$arity = 0);
|
|
25789
25786
|
|
|
25790
25787
|
Opal.def(self, '$number', $AbstractBlock_number$13 = function $$number() {
|
|
@@ -26766,7 +26763,7 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
26766
26763
|
}
|
|
26767
26764
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $hash2 = Opal.hash2, $truthy = Opal.truthy, $send = Opal.send, $klass = Opal.klass, $gvars = Opal.gvars;
|
|
26768
26765
|
|
|
26769
|
-
Opal.add_stubs(['$autoload', '$__dir__', '$attr_reader', '$raise', '$class', '$[]', '$sub', '$slice', '$length', '
|
|
26766
|
+
Opal.add_stubs(['$autoload', '$__dir__', '$==', '$attr_reader', '$raise', '$class', '$[]', '$sub', '$slice', '$length', '$[]=', '$backend_traits', '$-', '$derive_backend_traits', '$register', '$map', '$to_s', '$new', '$create', '$default', '$each', '$default=', '$registry', '$for', '$===', '$supports_templates?', '$merge', '$private', '$include', '$delete', '$clear', '$send', '$extend', '$private_class_method', '$node_name', '$+', '$receiver', '$name', '$warn', '$logger', '$respond_to?', '$content']);
|
|
26770
26767
|
return (function($base, $parent_nesting) {
|
|
26771
26768
|
var self = $module($base, 'Asciidoctor');
|
|
26772
26769
|
|
|
@@ -26779,7 +26776,10 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
26779
26776
|
|
|
26780
26777
|
|
|
26781
26778
|
self.$autoload("CompositeConverter", "" + (self.$__dir__()) + "/converter/composite");
|
|
26782
|
-
|
|
26779
|
+
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
26780
|
+
} else {
|
|
26781
|
+
nil
|
|
26782
|
+
};
|
|
26783
26783
|
self.$attr_reader("backend");
|
|
26784
26784
|
|
|
26785
26785
|
Opal.def(self, '$initialize', $Converter_initialize$1 = function $$initialize(backend, opts) {
|
|
@@ -27307,7 +27307,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27307
27307
|
}
|
|
27308
27308
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $send = Opal.send, $truthy = Opal.truthy, $hash2 = Opal.hash2, $hash = Opal.hash, $gvars = Opal.gvars;
|
|
27309
27309
|
|
|
27310
|
-
Opal.add_stubs(['$new', '$attr_reader', '$nil?', '$<<', '$[]', '$[]=', '$-', '$include?', '$strip', '$squeeze', '$gsub', '$empty?', '$!', '$rpartition', '$attr_accessor', '$delete', '$base_dir', '$options', '$merge', '$catalog', '$instance_variable_get', '$attributes', '$safe', '$compat_mode', '$outfilesuffix', '$sourcemap', '$path_resolver', '$converter', '$extensions', '$syntax_highlighter', '$each', '$end_with?', '$start_with?', '$slice', '$length', '$chop', '$==', '$downcase', '$===', '$extname', '$value_for_name', '$key?', '$freeze', '$attribute_undefined', '$attribute_missing', '$update', '$&', '$keys', '$name_for_value', '$expand_path', '$pwd', '$to_s', '$>=', '$+', '$abs', '$to_i', '$delete_if', '$update_doctype_attributes', '$cursor', '$parse', '$restore_attributes', '$update_backend_attributes', '$fetch', '$fill_datetime_attributes', '$activate', '$groups', '$create', '$to_proc', '$preprocessors?', '$preprocessors', '$process_method', '$tree_processors?', '$tree_processors', '$!=', '$counter', '$attribute_locked?', '$nil_or_empty?', '$nextval', '$value', '$save_to', '$register', '$tap', '$xreftext', '$source', '$source_lines', '$doctitle', '$sectname=', '$title=', '$first_section', '$title', '$reftext', '
|
|
27310
|
+
Opal.add_stubs(['$new', '$attr_reader', '$nil?', '$<<', '$[]', '$[]=', '$-', '$include?', '$strip', '$squeeze', '$gsub', '$empty?', '$!', '$rpartition', '$attr_accessor', '$delete', '$base_dir', '$options', '$merge', '$catalog', '$instance_variable_get', '$attributes', '$safe', '$compat_mode', '$outfilesuffix', '$sourcemap', '$path_resolver', '$converter', '$extensions', '$syntax_highlighter', '$each', '$end_with?', '$start_with?', '$slice', '$length', '$chop', '$==', '$downcase', '$===', '$extname', '$value_for_name', '$key?', '$freeze', '$attribute_undefined', '$attribute_missing', '$update', '$&', '$keys', '$name_for_value', '$expand_path', '$pwd', '$to_s', '$>=', '$+', '$abs', '$to_i', '$delete_if', '$update_doctype_attributes', '$cursor', '$parse', '$restore_attributes', '$update_backend_attributes', '$fetch', '$fill_datetime_attributes', '$activate', '$groups', '$create', '$to_proc', '$preprocessors?', '$preprocessors', '$process_method', '$tree_processors?', '$tree_processors', '$!=', '$counter', '$attribute_locked?', '$nil_or_empty?', '$nextval', '$value', '$save_to', '$register', '$tap', '$xreftext', '$>', '$source', '$source_lines', '$doctitle', '$sectname=', '$title=', '$first_section', '$title', '$reftext', '$<', '$find', '$context', '$assign_numeral', '$clear_playback_attributes', '$save_attributes', '$name', '$negate', '$rewind', '$replace', '$apply_attribute_value_subs', '$delete?', '$start', '$doctype', '$content_model', '$warn', '$logger', '$content', '$convert', '$postprocessors?', '$postprocessors', '$record', '$write', '$respond_to?', '$chomp', '$class', '$write_alternate_pages', '$map', '$split', '$resolve_docinfo_subs', '$normalize_system_path', '$read_asset', '$apply_subs', '$docinfo_processors?', '$join', '$concat', '$compact', '$docinfo_processors', '$object_id', '$inspect', '$size', '$private', '$=~', '$resolve_pass_subs', '$apply_header_subs', '$limit_bytesize', '$bytesize', '$valid_encoding?', '$byteslice', '$resolve_subs', '$utc', '$at', '$Integer', '$now', '$index', '$strftime', '$year', '$utc_offset', '$partition', '$create_converter', '$basebackend', '$filetype', '$htmlsyntax', '$derive_backend_traits', '$raise']);
|
|
27311
27311
|
return (function($base, $parent_nesting) {
|
|
27312
27312
|
var self = $module($base, 'Asciidoctor');
|
|
27313
27313
|
|
|
@@ -27316,9 +27316,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27316
27316
|
(function($base, $super, $parent_nesting) {
|
|
27317
27317
|
var self = $klass($base, $super, 'Document');
|
|
27318
27318
|
|
|
27319
|
-
var $nesting = [self].concat($parent_nesting), $Document$1, $Document_initialize$8, $Document_parse$11, $Document_parsed$ques$14, $Document_counter$15, $Document_increment_and_store_counter$16, $Document_register$17, $Document_resolve_id$18, $
|
|
27319
|
+
var $nesting = [self].concat($parent_nesting), $Document$1, $Document_initialize$8, $Document_parse$11, $Document_parsed$ques$14, $Document_counter$15, $Document_increment_and_store_counter$16, $Document_register$17, $Document_resolve_id$18, $Document_sections$ques$22, $Document_footnotes$ques$23, $Document_footnotes$24, $Document_callouts$25, $Document_nested$ques$26, $Document_embedded$ques$27, $Document_extensions$ques$28, $Document_source$29, $Document_source_lines$30, $Document_basebackend$ques$31, $Document_title$32, $Document_title$eq$33, $Document_doctitle$34, $Document_xreftext$35, $Document_author$36, $Document_authors$37, $Document_revdate$38, $Document_notitle$39, $Document_noheader$40, $Document_nofooter$41, $Document_first_section$42, $Document_header$ques$44, $Document_$lt$lt$45, $Document_finalize_header$46, $Document_playback_attributes$47, $Document_restore_attributes$49, $Document_set_attribute$50, $Document_delete_attribute$51, $Document_attribute_locked$ques$52, $Document_set_header_attribute$53, $Document_convert$54, $Document_write$56, $Document_content$57, $Document_docinfo$58, $Document_docinfo_processors$ques$61, $Document_to_s$62, $Document_apply_attribute_value_subs$63, $Document_limit_bytesize$64, $Document_resolve_docinfo_subs$65, $Document_create_converter$66, $Document_clear_playback_attributes$67, $Document_save_attributes$68, $Document_fill_datetime_attributes$70, $Document_update_backend_attributes$71, $Document_update_doctype_attributes$72;
|
|
27320
27320
|
|
|
27321
|
-
self.$$prototype.attributes = self.$$prototype.safe = self.$$prototype.sourcemap = self.$$prototype.reader = self.$$prototype.base_dir = self.$$prototype.parsed = self.$$prototype.parent_document = self.$$prototype.extensions = self.$$prototype.options = self.$$prototype.counters = self.$$prototype.catalog = self.$$prototype.reftexts = self.$$prototype.header = self.$$prototype.blocks = self.$$prototype.header_attributes = self.$$prototype.attributes_modified = self.$$prototype.backend = self.$$prototype.attribute_overrides = self.$$prototype.timings = self.$$prototype.converter = self.$$prototype.outfilesuffix = self.$$prototype.docinfo_processor_extensions = self.$$prototype.document = self.$$prototype.max_attribute_value_size = self.$$prototype.id = self.$$prototype.doctype = nil;
|
|
27321
|
+
self.$$prototype.attributes = self.$$prototype.safe = self.$$prototype.sourcemap = self.$$prototype.reader = self.$$prototype.base_dir = self.$$prototype.parsed = self.$$prototype.parent_document = self.$$prototype.extensions = self.$$prototype.options = self.$$prototype.counters = self.$$prototype.catalog = self.$$prototype.reftexts = self.$$prototype.next_section_index = self.$$prototype.header = self.$$prototype.blocks = self.$$prototype.header_attributes = self.$$prototype.attributes_modified = self.$$prototype.backend = self.$$prototype.attribute_overrides = self.$$prototype.timings = self.$$prototype.converter = self.$$prototype.outfilesuffix = self.$$prototype.docinfo_processor_extensions = self.$$prototype.document = self.$$prototype.max_attribute_value_size = self.$$prototype.id = self.$$prototype.doctype = nil;
|
|
27322
27322
|
|
|
27323
27323
|
Opal.const_set($nesting[0], 'ImageReference', $send($$$('::', 'Struct'), 'new', ["target", "imagesdir"], ($Document$1 = function(){var self = $Document$1.$$s || this;
|
|
27324
27324
|
|
|
@@ -27952,7 +27952,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27952
27952
|
}
|
|
27953
27953
|
}, $Document_resolve_id$18.$$arity = 1);
|
|
27954
27954
|
|
|
27955
|
-
Opal.def(self, '$
|
|
27955
|
+
Opal.def(self, '$sections?', $Document_sections$ques$22 = function() {
|
|
27956
|
+
var self = this;
|
|
27957
|
+
|
|
27958
|
+
return $rb_gt(self.next_section_index, 0)
|
|
27959
|
+
}, $Document_sections$ques$22.$$arity = 0);
|
|
27960
|
+
|
|
27961
|
+
Opal.def(self, '$footnotes?', $Document_footnotes$ques$23 = function() {
|
|
27956
27962
|
var self = this;
|
|
27957
27963
|
|
|
27958
27964
|
if ($truthy(self.catalog['$[]']("footnotes")['$empty?']())) {
|
|
@@ -27960,21 +27966,21 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27960
27966
|
} else {
|
|
27961
27967
|
return true
|
|
27962
27968
|
}
|
|
27963
|
-
}, $Document_footnotes$ques$
|
|
27969
|
+
}, $Document_footnotes$ques$23.$$arity = 0);
|
|
27964
27970
|
|
|
27965
|
-
Opal.def(self, '$footnotes', $Document_footnotes$
|
|
27971
|
+
Opal.def(self, '$footnotes', $Document_footnotes$24 = function $$footnotes() {
|
|
27966
27972
|
var self = this;
|
|
27967
27973
|
|
|
27968
27974
|
return self.catalog['$[]']("footnotes")
|
|
27969
|
-
}, $Document_footnotes$
|
|
27975
|
+
}, $Document_footnotes$24.$$arity = 0);
|
|
27970
27976
|
|
|
27971
|
-
Opal.def(self, '$callouts', $Document_callouts$
|
|
27977
|
+
Opal.def(self, '$callouts', $Document_callouts$25 = function $$callouts() {
|
|
27972
27978
|
var self = this;
|
|
27973
27979
|
|
|
27974
27980
|
return self.catalog['$[]']("callouts")
|
|
27975
|
-
}, $Document_callouts$
|
|
27981
|
+
}, $Document_callouts$25.$$arity = 0);
|
|
27976
27982
|
|
|
27977
|
-
Opal.def(self, '$nested?', $Document_nested$ques$
|
|
27983
|
+
Opal.def(self, '$nested?', $Document_nested$ques$26 = function() {
|
|
27978
27984
|
var self = this;
|
|
27979
27985
|
|
|
27980
27986
|
if ($truthy(self.parent_document)) {
|
|
@@ -27982,15 +27988,15 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27982
27988
|
} else {
|
|
27983
27989
|
return false
|
|
27984
27990
|
}
|
|
27985
|
-
}, $Document_nested$ques$
|
|
27991
|
+
}, $Document_nested$ques$26.$$arity = 0);
|
|
27986
27992
|
|
|
27987
|
-
Opal.def(self, '$embedded?', $Document_embedded$ques$
|
|
27993
|
+
Opal.def(self, '$embedded?', $Document_embedded$ques$27 = function() {
|
|
27988
27994
|
var self = this;
|
|
27989
27995
|
|
|
27990
27996
|
return self.attributes['$key?']("embedded")
|
|
27991
|
-
}, $Document_embedded$ques$
|
|
27997
|
+
}, $Document_embedded$ques$27.$$arity = 0);
|
|
27992
27998
|
|
|
27993
|
-
Opal.def(self, '$extensions?', $Document_extensions$ques$
|
|
27999
|
+
Opal.def(self, '$extensions?', $Document_extensions$ques$28 = function() {
|
|
27994
28000
|
var self = this;
|
|
27995
28001
|
|
|
27996
28002
|
if ($truthy(self.extensions)) {
|
|
@@ -27998,9 +28004,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27998
28004
|
} else {
|
|
27999
28005
|
return false
|
|
28000
28006
|
}
|
|
28001
|
-
}, $Document_extensions$ques$
|
|
28007
|
+
}, $Document_extensions$ques$28.$$arity = 0);
|
|
28002
28008
|
|
|
28003
|
-
Opal.def(self, '$source', $Document_source$
|
|
28009
|
+
Opal.def(self, '$source', $Document_source$29 = function $$source() {
|
|
28004
28010
|
var self = this;
|
|
28005
28011
|
|
|
28006
28012
|
if ($truthy(self.reader)) {
|
|
@@ -28008,9 +28014,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28008
28014
|
} else {
|
|
28009
28015
|
return nil
|
|
28010
28016
|
}
|
|
28011
|
-
}, $Document_source$
|
|
28017
|
+
}, $Document_source$29.$$arity = 0);
|
|
28012
28018
|
|
|
28013
|
-
Opal.def(self, '$source_lines', $Document_source_lines$
|
|
28019
|
+
Opal.def(self, '$source_lines', $Document_source_lines$30 = function $$source_lines() {
|
|
28014
28020
|
var self = this;
|
|
28015
28021
|
|
|
28016
28022
|
if ($truthy(self.reader)) {
|
|
@@ -28018,21 +28024,21 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28018
28024
|
} else {
|
|
28019
28025
|
return nil
|
|
28020
28026
|
}
|
|
28021
|
-
}, $Document_source_lines$
|
|
28027
|
+
}, $Document_source_lines$30.$$arity = 0);
|
|
28022
28028
|
|
|
28023
|
-
Opal.def(self, '$basebackend?', $Document_basebackend$ques$
|
|
28029
|
+
Opal.def(self, '$basebackend?', $Document_basebackend$ques$31 = function(base) {
|
|
28024
28030
|
var self = this;
|
|
28025
28031
|
|
|
28026
28032
|
return self.attributes['$[]']("basebackend")['$=='](base)
|
|
28027
|
-
}, $Document_basebackend$ques$
|
|
28033
|
+
}, $Document_basebackend$ques$31.$$arity = 1);
|
|
28028
28034
|
|
|
28029
|
-
Opal.def(self, '$title', $Document_title$
|
|
28035
|
+
Opal.def(self, '$title', $Document_title$32 = function $$title() {
|
|
28030
28036
|
var self = this;
|
|
28031
28037
|
|
|
28032
28038
|
return self.$doctitle()
|
|
28033
|
-
}, $Document_title$
|
|
28039
|
+
}, $Document_title$32.$$arity = 0);
|
|
28034
28040
|
|
|
28035
|
-
Opal.def(self, '$title=', $Document_title$eq$
|
|
28041
|
+
Opal.def(self, '$title=', $Document_title$eq$33 = function(title) {
|
|
28036
28042
|
var self = this, sect = nil, $writer = nil;
|
|
28037
28043
|
|
|
28038
28044
|
|
|
@@ -28047,9 +28053,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28047
28053
|
$writer = [title];
|
|
28048
28054
|
$send(sect, 'title=', Opal.to_a($writer));
|
|
28049
28055
|
return $writer[$rb_minus($writer["length"], 1)];;
|
|
28050
|
-
}, $Document_title$eq$
|
|
28056
|
+
}, $Document_title$eq$33.$$arity = 1);
|
|
28051
28057
|
|
|
28052
|
-
Opal.def(self, '$doctitle', $Document_doctitle$
|
|
28058
|
+
Opal.def(self, '$doctitle', $Document_doctitle$34 = function $$doctitle(opts) {
|
|
28053
28059
|
var $a, self = this, val = nil, sect = nil, separator = nil;
|
|
28054
28060
|
|
|
28055
28061
|
|
|
@@ -28073,10 +28079,10 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28073
28079
|
} else {
|
|
28074
28080
|
return val
|
|
28075
28081
|
};
|
|
28076
|
-
}, $Document_doctitle$
|
|
28082
|
+
}, $Document_doctitle$34.$$arity = -1);
|
|
28077
28083
|
Opal.alias(self, "name", "doctitle");
|
|
28078
28084
|
|
|
28079
|
-
Opal.def(self, '$xreftext', $Document_xreftext$
|
|
28085
|
+
Opal.def(self, '$xreftext', $Document_xreftext$35 = function $$xreftext(xrefstyle) {
|
|
28080
28086
|
var $a, self = this, val = nil;
|
|
28081
28087
|
|
|
28082
28088
|
|
|
@@ -28089,15 +28095,15 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28089
28095
|
} else {
|
|
28090
28096
|
return self.$title()
|
|
28091
28097
|
};
|
|
28092
|
-
}, $Document_xreftext$
|
|
28098
|
+
}, $Document_xreftext$35.$$arity = -1);
|
|
28093
28099
|
|
|
28094
|
-
Opal.def(self, '$author', $Document_author$
|
|
28100
|
+
Opal.def(self, '$author', $Document_author$36 = function $$author() {
|
|
28095
28101
|
var self = this;
|
|
28096
28102
|
|
|
28097
28103
|
return self.attributes['$[]']("author")
|
|
28098
|
-
}, $Document_author$
|
|
28104
|
+
}, $Document_author$36.$$arity = 0);
|
|
28099
28105
|
|
|
28100
|
-
Opal.def(self, '$authors', $Document_authors$
|
|
28106
|
+
Opal.def(self, '$authors', $Document_authors$37 = function $$authors() {
|
|
28101
28107
|
var $a, self = this, attrs = nil, authors = nil, num_authors = nil, idx = nil;
|
|
28102
28108
|
|
|
28103
28109
|
if ($truthy((attrs = self.attributes)['$key?']("author"))) {
|
|
@@ -28115,46 +28121,46 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28115
28121
|
} else {
|
|
28116
28122
|
return []
|
|
28117
28123
|
}
|
|
28118
|
-
}, $Document_authors$
|
|
28124
|
+
}, $Document_authors$37.$$arity = 0);
|
|
28119
28125
|
|
|
28120
|
-
Opal.def(self, '$revdate', $Document_revdate$
|
|
28126
|
+
Opal.def(self, '$revdate', $Document_revdate$38 = function $$revdate() {
|
|
28121
28127
|
var self = this;
|
|
28122
28128
|
|
|
28123
28129
|
return self.attributes['$[]']("revdate")
|
|
28124
|
-
}, $Document_revdate$
|
|
28130
|
+
}, $Document_revdate$38.$$arity = 0);
|
|
28125
28131
|
|
|
28126
|
-
Opal.def(self, '$notitle', $Document_notitle$
|
|
28132
|
+
Opal.def(self, '$notitle', $Document_notitle$39 = function $$notitle() {
|
|
28127
28133
|
var self = this;
|
|
28128
28134
|
|
|
28129
28135
|
return self.attributes['$key?']("notitle")
|
|
28130
|
-
}, $Document_notitle$
|
|
28136
|
+
}, $Document_notitle$39.$$arity = 0);
|
|
28131
28137
|
|
|
28132
|
-
Opal.def(self, '$noheader', $Document_noheader$
|
|
28138
|
+
Opal.def(self, '$noheader', $Document_noheader$40 = function $$noheader() {
|
|
28133
28139
|
var self = this;
|
|
28134
28140
|
|
|
28135
28141
|
return self.attributes['$key?']("noheader")
|
|
28136
|
-
}, $Document_noheader$
|
|
28142
|
+
}, $Document_noheader$40.$$arity = 0);
|
|
28137
28143
|
|
|
28138
|
-
Opal.def(self, '$nofooter', $Document_nofooter$
|
|
28144
|
+
Opal.def(self, '$nofooter', $Document_nofooter$41 = function $$nofooter() {
|
|
28139
28145
|
var self = this;
|
|
28140
28146
|
|
|
28141
28147
|
return self.attributes['$key?']("nofooter")
|
|
28142
|
-
}, $Document_nofooter$
|
|
28148
|
+
}, $Document_nofooter$41.$$arity = 0);
|
|
28143
28149
|
|
|
28144
|
-
Opal.def(self, '$first_section', $Document_first_section$
|
|
28145
|
-
var $a, $$
|
|
28150
|
+
Opal.def(self, '$first_section', $Document_first_section$42 = function $$first_section() {
|
|
28151
|
+
var $a, $$43, self = this;
|
|
28146
28152
|
|
|
28147
|
-
return ($truthy($a = self.header) ? $a : $send(self.blocks, 'find', [], ($$
|
|
28153
|
+
return ($truthy($a = self.header) ? $a : $send(self.blocks, 'find', [], ($$43 = function(e){var self = $$43.$$s || this;
|
|
28148
28154
|
|
|
28149
28155
|
|
|
28150
28156
|
|
|
28151
28157
|
if (e == null) {
|
|
28152
28158
|
e = nil;
|
|
28153
28159
|
};
|
|
28154
|
-
return e.$context()['$==']("section");}, $$
|
|
28155
|
-
}, $Document_first_section$
|
|
28160
|
+
return e.$context()['$==']("section");}, $$43.$$s = self, $$43.$$arity = 1, $$43)))
|
|
28161
|
+
}, $Document_first_section$42.$$arity = 0);
|
|
28156
28162
|
|
|
28157
|
-
Opal.def(self, '$header?', $Document_header$ques$
|
|
28163
|
+
Opal.def(self, '$header?', $Document_header$ques$44 = function() {
|
|
28158
28164
|
var self = this;
|
|
28159
28165
|
|
|
28160
28166
|
if ($truthy(self.header)) {
|
|
@@ -28162,13 +28168,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28162
28168
|
} else {
|
|
28163
28169
|
return false
|
|
28164
28170
|
}
|
|
28165
|
-
}, $Document_header$ques$
|
|
28171
|
+
}, $Document_header$ques$44.$$arity = 0);
|
|
28166
28172
|
Opal.alias(self, "has_header?", "header?");
|
|
28167
28173
|
|
|
28168
|
-
Opal.def(self, '$<<', $Document_$lt$lt$
|
|
28169
|
-
var $iter = $Document_$lt$lt$
|
|
28174
|
+
Opal.def(self, '$<<', $Document_$lt$lt$45 = function(block) {
|
|
28175
|
+
var $iter = $Document_$lt$lt$45.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
28170
28176
|
|
|
28171
|
-
if ($iter) $Document_$lt$lt$
|
|
28177
|
+
if ($iter) $Document_$lt$lt$45.$$p = null;
|
|
28172
28178
|
// Prepare super implicit arguments
|
|
28173
28179
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
28174
28180
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
@@ -28176,10 +28182,10 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28176
28182
|
|
|
28177
28183
|
if (block.$context()['$==']("section")) {
|
|
28178
28184
|
self.$assign_numeral(block)};
|
|
28179
|
-
return $send(self, Opal.find_super_dispatcher(self, '<<', $Document_$lt$lt$
|
|
28180
|
-
}, $Document_$lt$lt$
|
|
28185
|
+
return $send(self, Opal.find_super_dispatcher(self, '<<', $Document_$lt$lt$45, false), $zuper, $iter);
|
|
28186
|
+
}, $Document_$lt$lt$45.$$arity = 1);
|
|
28181
28187
|
|
|
28182
|
-
Opal.def(self, '$finalize_header', $Document_finalize_header$
|
|
28188
|
+
Opal.def(self, '$finalize_header', $Document_finalize_header$46 = function $$finalize_header(unrooted_attributes, header_valid) {
|
|
28183
28189
|
var self = this, $writer = nil;
|
|
28184
28190
|
|
|
28185
28191
|
|
|
@@ -28197,13 +28203,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28197
28203
|
$writer[$rb_minus($writer["length"], 1)];
|
|
28198
28204
|
};
|
|
28199
28205
|
return unrooted_attributes;
|
|
28200
|
-
}, $Document_finalize_header$
|
|
28206
|
+
}, $Document_finalize_header$46.$$arity = -2);
|
|
28201
28207
|
|
|
28202
|
-
Opal.def(self, '$playback_attributes', $Document_playback_attributes$
|
|
28203
|
-
var $$
|
|
28208
|
+
Opal.def(self, '$playback_attributes', $Document_playback_attributes$47 = function $$playback_attributes(block_attributes) {
|
|
28209
|
+
var $$48, self = this;
|
|
28204
28210
|
|
|
28205
28211
|
if ($truthy(block_attributes['$key?']("attribute_entries"))) {
|
|
28206
|
-
return $send(block_attributes['$[]']("attribute_entries"), 'each', [], ($$
|
|
28212
|
+
return $send(block_attributes['$[]']("attribute_entries"), 'each', [], ($$48 = function(entry){var self = $$48.$$s || this, name = nil, $writer = nil;
|
|
28207
28213
|
if (self.attributes == null) self.attributes = nil;
|
|
28208
28214
|
|
|
28209
28215
|
|
|
@@ -28231,13 +28237,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28231
28237
|
} else {
|
|
28232
28238
|
return nil
|
|
28233
28239
|
};
|
|
28234
|
-
};}, $$
|
|
28240
|
+
};}, $$48.$$s = self, $$48.$$arity = 1, $$48))
|
|
28235
28241
|
} else {
|
|
28236
28242
|
return nil
|
|
28237
28243
|
}
|
|
28238
|
-
}, $Document_playback_attributes$
|
|
28244
|
+
}, $Document_playback_attributes$47.$$arity = 1);
|
|
28239
28245
|
|
|
28240
|
-
Opal.def(self, '$restore_attributes', $Document_restore_attributes$
|
|
28246
|
+
Opal.def(self, '$restore_attributes', $Document_restore_attributes$49 = function $$restore_attributes() {
|
|
28241
28247
|
var self = this;
|
|
28242
28248
|
|
|
28243
28249
|
|
|
@@ -28246,9 +28252,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28246
28252
|
self.catalog['$[]']("callouts").$rewind()
|
|
28247
28253
|
};
|
|
28248
28254
|
return self.attributes.$replace(self.header_attributes);
|
|
28249
|
-
}, $Document_restore_attributes$
|
|
28255
|
+
}, $Document_restore_attributes$49.$$arity = 0);
|
|
28250
28256
|
|
|
28251
|
-
Opal.def(self, '$set_attribute', $Document_set_attribute$
|
|
28257
|
+
Opal.def(self, '$set_attribute', $Document_set_attribute$50 = function $$set_attribute(name, value) {
|
|
28252
28258
|
var $a, self = this, $writer = nil, $case = nil;
|
|
28253
28259
|
|
|
28254
28260
|
|
|
@@ -28282,9 +28288,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28282
28288
|
};
|
|
28283
28289
|
return value;
|
|
28284
28290
|
};
|
|
28285
|
-
}, $Document_set_attribute$
|
|
28291
|
+
}, $Document_set_attribute$50.$$arity = -2);
|
|
28286
28292
|
|
|
28287
|
-
Opal.def(self, '$delete_attribute', $Document_delete_attribute$
|
|
28293
|
+
Opal.def(self, '$delete_attribute', $Document_delete_attribute$51 = function $$delete_attribute(name) {
|
|
28288
28294
|
var self = this;
|
|
28289
28295
|
|
|
28290
28296
|
if ($truthy(self['$attribute_locked?'](name))) {
|
|
@@ -28295,15 +28301,15 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28295
28301
|
self.attributes_modified['$<<'](name);
|
|
28296
28302
|
return true;
|
|
28297
28303
|
}
|
|
28298
|
-
}, $Document_delete_attribute$
|
|
28304
|
+
}, $Document_delete_attribute$51.$$arity = 1);
|
|
28299
28305
|
|
|
28300
|
-
Opal.def(self, '$attribute_locked?', $Document_attribute_locked$ques$
|
|
28306
|
+
Opal.def(self, '$attribute_locked?', $Document_attribute_locked$ques$52 = function(name) {
|
|
28301
28307
|
var self = this;
|
|
28302
28308
|
|
|
28303
28309
|
return self.attribute_overrides['$key?'](name)
|
|
28304
|
-
}, $Document_attribute_locked$ques$
|
|
28310
|
+
}, $Document_attribute_locked$ques$52.$$arity = 1);
|
|
28305
28311
|
|
|
28306
|
-
Opal.def(self, '$set_header_attribute', $Document_set_header_attribute$
|
|
28312
|
+
Opal.def(self, '$set_header_attribute', $Document_set_header_attribute$53 = function $$set_header_attribute(name, value, overwrite) {
|
|
28307
28313
|
var $a, self = this, attrs = nil, $writer = nil;
|
|
28308
28314
|
|
|
28309
28315
|
|
|
@@ -28326,10 +28332,10 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28326
28332
|
$writer[$rb_minus($writer["length"], 1)];;
|
|
28327
28333
|
return true;
|
|
28328
28334
|
};
|
|
28329
|
-
}, $Document_set_header_attribute$
|
|
28335
|
+
}, $Document_set_header_attribute$53.$$arity = -2);
|
|
28330
28336
|
|
|
28331
|
-
Opal.def(self, '$convert', $Document_convert$
|
|
28332
|
-
var $a, $$
|
|
28337
|
+
Opal.def(self, '$convert', $Document_convert$54 = function $$convert(opts) {
|
|
28338
|
+
var $a, $$55, self = this, $writer = nil, block = nil, output = nil, transform = nil, exts = nil;
|
|
28333
28339
|
|
|
28334
28340
|
|
|
28335
28341
|
|
|
@@ -28386,21 +28392,21 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28386
28392
|
};
|
|
28387
28393
|
if ($truthy(self.parent_document)) {
|
|
28388
28394
|
} else if ($truthy(($truthy($a = (exts = self.extensions)) ? exts['$postprocessors?']() : $a))) {
|
|
28389
|
-
$send(exts.$postprocessors(), 'each', [], ($$
|
|
28395
|
+
$send(exts.$postprocessors(), 'each', [], ($$55 = function(ext){var self = $$55.$$s || this;
|
|
28390
28396
|
|
|
28391
28397
|
|
|
28392
28398
|
|
|
28393
28399
|
if (ext == null) {
|
|
28394
28400
|
ext = nil;
|
|
28395
28401
|
};
|
|
28396
|
-
return (output = ext.$process_method()['$[]'](self, output));}, $$
|
|
28402
|
+
return (output = ext.$process_method()['$[]'](self, output));}, $$55.$$s = self, $$55.$$arity = 1, $$55))};
|
|
28397
28403
|
if ($truthy(self.timings)) {
|
|
28398
28404
|
self.timings.$record("convert")};
|
|
28399
28405
|
return output;
|
|
28400
|
-
}, $Document_convert$
|
|
28406
|
+
}, $Document_convert$54.$$arity = -1);
|
|
28401
28407
|
Opal.alias(self, "render", "convert");
|
|
28402
28408
|
|
|
28403
|
-
Opal.def(self, '$write', $Document_write$
|
|
28409
|
+
Opal.def(self, '$write', $Document_write$56 = function $$write(output, target) {
|
|
28404
28410
|
var $a, $b, self = this;
|
|
28405
28411
|
|
|
28406
28412
|
|
|
@@ -28426,23 +28432,23 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28426
28432
|
if ($truthy(self.timings)) {
|
|
28427
28433
|
self.timings.$record("write")};
|
|
28428
28434
|
return nil;
|
|
28429
|
-
}, $Document_write$
|
|
28435
|
+
}, $Document_write$56.$$arity = 2);
|
|
28430
28436
|
|
|
28431
|
-
Opal.def(self, '$content', $Document_content$
|
|
28432
|
-
var $iter = $Document_content$
|
|
28437
|
+
Opal.def(self, '$content', $Document_content$57 = function $$content() {
|
|
28438
|
+
var $iter = $Document_content$57.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
28433
28439
|
|
|
28434
|
-
if ($iter) $Document_content$
|
|
28440
|
+
if ($iter) $Document_content$57.$$p = null;
|
|
28435
28441
|
// Prepare super implicit arguments
|
|
28436
28442
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
28437
28443
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
28438
28444
|
}
|
|
28439
28445
|
|
|
28440
28446
|
self.attributes.$delete("title");
|
|
28441
|
-
return $send(self, Opal.find_super_dispatcher(self, 'content', $Document_content$
|
|
28442
|
-
}, $Document_content$
|
|
28447
|
+
return $send(self, Opal.find_super_dispatcher(self, 'content', $Document_content$57, false), $zuper, $iter);
|
|
28448
|
+
}, $Document_content$57.$$arity = 0);
|
|
28443
28449
|
|
|
28444
|
-
Opal.def(self, '$docinfo', $Document_docinfo$
|
|
28445
|
-
var $a, $$
|
|
28450
|
+
Opal.def(self, '$docinfo', $Document_docinfo$58 = function $$docinfo(location, suffix) {
|
|
28451
|
+
var $a, $$59, $$60, self = this, qualifier = nil, docinfo = nil, content = nil, docinfo_file = nil, docinfo_dir = nil, docinfo_subs = nil, docinfo_path = nil, shared_docinfo = nil, private_docinfo = nil;
|
|
28446
28452
|
|
|
28447
28453
|
|
|
28448
28454
|
|
|
@@ -28473,14 +28479,14 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28473
28479
|
}; return nil; })()
|
|
28474
28480
|
}
|
|
28475
28481
|
} else {
|
|
28476
|
-
docinfo = $send(docinfo.$split(","), 'map', [], ($$
|
|
28482
|
+
docinfo = $send(docinfo.$split(","), 'map', [], ($$59 = function(it){var self = $$59.$$s || this;
|
|
28477
28483
|
|
|
28478
28484
|
|
|
28479
28485
|
|
|
28480
28486
|
if (it == null) {
|
|
28481
28487
|
it = nil;
|
|
28482
28488
|
};
|
|
28483
|
-
return it.$strip();}, $$
|
|
28489
|
+
return it.$strip();}, $$59.$$s = self, $$59.$$arity = 1, $$59))
|
|
28484
28490
|
};
|
|
28485
28491
|
if ($truthy(docinfo)) {
|
|
28486
28492
|
|
|
@@ -28501,22 +28507,22 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28501
28507
|
content['$<<'](self.$apply_subs(private_docinfo, docinfo_subs))};
|
|
28502
28508
|
};};};
|
|
28503
28509
|
if ($truthy(($truthy($a = self.extensions) ? self['$docinfo_processors?'](location) : $a))) {
|
|
28504
|
-
return ($truthy($a = content) ? $a : []).$concat($send(self.docinfo_processor_extensions['$[]'](location), 'map', [], ($$
|
|
28510
|
+
return ($truthy($a = content) ? $a : []).$concat($send(self.docinfo_processor_extensions['$[]'](location), 'map', [], ($$60 = function(ext){var self = $$60.$$s || this;
|
|
28505
28511
|
|
|
28506
28512
|
|
|
28507
28513
|
|
|
28508
28514
|
if (ext == null) {
|
|
28509
28515
|
ext = nil;
|
|
28510
28516
|
};
|
|
28511
|
-
return ext.$process_method()['$[]'](self);}, $$
|
|
28517
|
+
return ext.$process_method()['$[]'](self);}, $$60.$$s = self, $$60.$$arity = 1, $$60)).$compact()).$join($$($nesting, 'LF'))
|
|
28512
28518
|
} else if ($truthy(content)) {
|
|
28513
28519
|
return content.$join($$($nesting, 'LF'))
|
|
28514
28520
|
} else {
|
|
28515
28521
|
return ""
|
|
28516
28522
|
};
|
|
28517
|
-
}, $Document_docinfo$
|
|
28523
|
+
}, $Document_docinfo$58.$$arity = -1);
|
|
28518
28524
|
|
|
28519
|
-
Opal.def(self, '$docinfo_processors?', $Document_docinfo_processors$ques$
|
|
28525
|
+
Opal.def(self, '$docinfo_processors?', $Document_docinfo_processors$ques$61 = function(location) {
|
|
28520
28526
|
var $a, self = this, $writer = nil;
|
|
28521
28527
|
|
|
28522
28528
|
|
|
@@ -28534,16 +28540,16 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28534
28540
|
$send(self.docinfo_processor_extensions, '[]=', Opal.to_a($writer));
|
|
28535
28541
|
return $writer[$rb_minus($writer["length"], 1)];
|
|
28536
28542
|
};
|
|
28537
|
-
}, $Document_docinfo_processors$ques$
|
|
28543
|
+
}, $Document_docinfo_processors$ques$61.$$arity = -1);
|
|
28538
28544
|
|
|
28539
|
-
Opal.def(self, '$to_s', $Document_to_s$
|
|
28545
|
+
Opal.def(self, '$to_s', $Document_to_s$62 = function $$to_s() {
|
|
28540
28546
|
var $a, self = this;
|
|
28541
28547
|
|
|
28542
28548
|
return "" + "#<" + (self.$class()) + "@" + (self.$object_id()) + " {doctype: " + (self.$doctype().$inspect()) + ", doctitle: " + (($truthy($a = self.header) ? self.header.$title() : $a).$inspect()) + ", blocks: " + (self.blocks.$size()) + "}>"
|
|
28543
|
-
}, $Document_to_s$
|
|
28549
|
+
}, $Document_to_s$62.$$arity = 0);
|
|
28544
28550
|
self.$private();
|
|
28545
28551
|
|
|
28546
|
-
Opal.def(self, '$apply_attribute_value_subs', $Document_apply_attribute_value_subs$
|
|
28552
|
+
Opal.def(self, '$apply_attribute_value_subs', $Document_apply_attribute_value_subs$63 = function $$apply_attribute_value_subs(value) {
|
|
28547
28553
|
var $a, self = this;
|
|
28548
28554
|
|
|
28549
28555
|
|
|
@@ -28561,9 +28567,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28561
28567
|
} else {
|
|
28562
28568
|
return value
|
|
28563
28569
|
};
|
|
28564
|
-
}, $Document_apply_attribute_value_subs$
|
|
28570
|
+
}, $Document_apply_attribute_value_subs$63.$$arity = 1);
|
|
28565
28571
|
|
|
28566
|
-
Opal.def(self, '$limit_bytesize', $Document_limit_bytesize$
|
|
28572
|
+
Opal.def(self, '$limit_bytesize', $Document_limit_bytesize$64 = function $$limit_bytesize(str, max) {
|
|
28567
28573
|
var $a, self = this;
|
|
28568
28574
|
|
|
28569
28575
|
|
|
@@ -28572,9 +28578,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28572
28578
|
max = $rb_minus(max, 1)
|
|
28573
28579
|
}};
|
|
28574
28580
|
return str;
|
|
28575
|
-
}, $Document_limit_bytesize$
|
|
28581
|
+
}, $Document_limit_bytesize$64.$$arity = 2);
|
|
28576
28582
|
|
|
28577
|
-
Opal.def(self, '$resolve_docinfo_subs', $Document_resolve_docinfo_subs$
|
|
28583
|
+
Opal.def(self, '$resolve_docinfo_subs', $Document_resolve_docinfo_subs$65 = function $$resolve_docinfo_subs() {
|
|
28578
28584
|
var self = this;
|
|
28579
28585
|
|
|
28580
28586
|
if ($truthy(self.attributes['$key?']("docinfosubs"))) {
|
|
@@ -28583,9 +28589,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28583
28589
|
} else {
|
|
28584
28590
|
return ["attributes"]
|
|
28585
28591
|
}
|
|
28586
|
-
}, $Document_resolve_docinfo_subs$
|
|
28592
|
+
}, $Document_resolve_docinfo_subs$65.$$arity = 0);
|
|
28587
28593
|
|
|
28588
|
-
Opal.def(self, '$create_converter', $Document_create_converter$
|
|
28594
|
+
Opal.def(self, '$create_converter', $Document_create_converter$66 = function $$create_converter(backend, delegate_backend) {
|
|
28589
28595
|
var $a, self = this, converter_opts = nil, template_dirs = nil, opts = nil, $writer = nil, converter = nil;
|
|
28590
28596
|
|
|
28591
28597
|
|
|
@@ -28626,16 +28632,16 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28626
28632
|
} else {
|
|
28627
28633
|
return opts.$fetch("converter_factory", $$($nesting, 'Converter')).$create(backend, converter_opts)
|
|
28628
28634
|
};
|
|
28629
|
-
}, $Document_create_converter$
|
|
28635
|
+
}, $Document_create_converter$66.$$arity = 2);
|
|
28630
28636
|
|
|
28631
|
-
Opal.def(self, '$clear_playback_attributes', $Document_clear_playback_attributes$
|
|
28637
|
+
Opal.def(self, '$clear_playback_attributes', $Document_clear_playback_attributes$67 = function $$clear_playback_attributes(attributes) {
|
|
28632
28638
|
var self = this;
|
|
28633
28639
|
|
|
28634
28640
|
return attributes.$delete("attribute_entries")
|
|
28635
|
-
}, $Document_clear_playback_attributes$
|
|
28641
|
+
}, $Document_clear_playback_attributes$67.$$arity = 1);
|
|
28636
28642
|
|
|
28637
|
-
Opal.def(self, '$save_attributes', $Document_save_attributes$
|
|
28638
|
-
var $a, $$
|
|
28643
|
+
Opal.def(self, '$save_attributes', $Document_save_attributes$68 = function $$save_attributes() {
|
|
28644
|
+
var $a, $$69, self = this, attrs = nil, doctitle_val = nil, $writer = nil, toc_val = nil, toc_position_val = nil, toc_placement_val = nil, default_toc_position = nil, default_toc_class = nil, position = nil, $case = nil, icons_val = nil, basebackend = nil, syntax_hl_name = nil, syntax_hl_factory = nil, syntax_hls = nil;
|
|
28639
28645
|
|
|
28640
28646
|
|
|
28641
28647
|
if ($truthy(($truthy($a = (attrs = self.attributes)['$key?']("doctitle")) ? $a : (doctitle_val = self.$doctitle())['$!']()))) {
|
|
@@ -28762,7 +28768,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28762
28768
|
$writer[$rb_minus($writer["length"], 1)];
|
|
28763
28769
|
};};
|
|
28764
28770
|
self.outfilesuffix = attrs['$[]']("outfilesuffix");
|
|
28765
|
-
$send($$($nesting, 'FLEXIBLE_ATTRIBUTES'), 'each', [], ($$
|
|
28771
|
+
$send($$($nesting, 'FLEXIBLE_ATTRIBUTES'), 'each', [], ($$69 = function(name){var self = $$69.$$s || this, $b;
|
|
28766
28772
|
if (self.attribute_overrides == null) self.attribute_overrides = nil;
|
|
28767
28773
|
|
|
28768
28774
|
|
|
@@ -28774,12 +28780,12 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28774
28780
|
return self.attribute_overrides.$delete(name)
|
|
28775
28781
|
} else {
|
|
28776
28782
|
return nil
|
|
28777
|
-
};}, $$
|
|
28783
|
+
};}, $$69.$$s = self, $$69.$$arity = 1, $$69));
|
|
28778
28784
|
};
|
|
28779
28785
|
return (self.header_attributes = attrs.$merge());
|
|
28780
|
-
}, $Document_save_attributes$
|
|
28786
|
+
}, $Document_save_attributes$68.$$arity = 0);
|
|
28781
28787
|
|
|
28782
|
-
Opal.def(self, '$fill_datetime_attributes', $Document_fill_datetime_attributes$
|
|
28788
|
+
Opal.def(self, '$fill_datetime_attributes', $Document_fill_datetime_attributes$70 = function $$fill_datetime_attributes(attrs, input_mtime) {
|
|
28783
28789
|
var $a, $b, self = this, now = nil, source_date_epoch = nil, localdate = nil, $writer = nil, localtime = nil, docdate = nil, doctime = nil;
|
|
28784
28790
|
|
|
28785
28791
|
|
|
@@ -28827,9 +28833,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28827
28833
|
}; return nil; })()))]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
28828
28834
|
($truthy($a = attrs['$[]']("docdatetime")) ? $a : (($writer = ["docdatetime", "" + (docdate) + " " + (doctime)]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
28829
28835
|
return nil;
|
|
28830
|
-
}, $Document_fill_datetime_attributes$
|
|
28836
|
+
}, $Document_fill_datetime_attributes$70.$$arity = 2);
|
|
28831
28837
|
|
|
28832
|
-
Opal.def(self, '$update_backend_attributes', $Document_update_backend_attributes$
|
|
28838
|
+
Opal.def(self, '$update_backend_attributes', $Document_update_backend_attributes$71 = function $$update_backend_attributes(new_backend, init) {
|
|
28833
28839
|
var $a, $b, self = this, current_backend = nil, current_basebackend = nil, attrs = nil, current_doctype = nil, actual_backend = nil, _ = nil, $writer = nil, delegate_backend = nil, converter = nil, new_basebackend = nil, new_filetype = nil, htmlsyntax = nil, backend_traits = nil, current_filetype = nil, page_width = nil;
|
|
28834
28840
|
|
|
28835
28841
|
|
|
@@ -28957,8 +28963,8 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28957
28963
|
} else {
|
|
28958
28964
|
return nil
|
|
28959
28965
|
};
|
|
28960
|
-
}, $Document_update_backend_attributes$
|
|
28961
|
-
return (Opal.def(self, '$update_doctype_attributes', $Document_update_doctype_attributes$
|
|
28966
|
+
}, $Document_update_backend_attributes$71.$$arity = -2);
|
|
28967
|
+
return (Opal.def(self, '$update_doctype_attributes', $Document_update_doctype_attributes$72 = function $$update_doctype_attributes(new_doctype) {
|
|
28962
28968
|
var $a, self = this, attrs = nil, current_backend = nil, current_basebackend = nil, current_doctype = nil, $writer = nil;
|
|
28963
28969
|
|
|
28964
28970
|
if ($truthy(($truthy($a = new_doctype) ? new_doctype['$!='](self.doctype) : $a))) {
|
|
@@ -29002,7 +29008,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
29002
29008
|
} else {
|
|
29003
29009
|
return nil
|
|
29004
29010
|
}
|
|
29005
|
-
}, $Document_update_doctype_attributes$
|
|
29011
|
+
}, $Document_update_doctype_attributes$72.$$arity = 1), nil) && 'update_doctype_attributes';
|
|
29006
29012
|
})($nesting[0], $$($nesting, 'AbstractBlock'), $nesting)
|
|
29007
29013
|
})($nesting[0], $nesting)
|
|
29008
29014
|
};
|
|
@@ -29265,7 +29271,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29265
29271
|
}
|
|
29266
29272
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $send = Opal.send, $truthy = Opal.truthy, $hash2 = Opal.hash2, $gvars = Opal.gvars;
|
|
29267
29273
|
|
|
29268
|
-
Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$skip_blank_lines', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$finalize_header', '$nil_or_empty?', '$title=', '
|
|
29274
|
+
Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$skip_blank_lines', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$[]=', '$-', '$finalize_header', '$nil_or_empty?', '$title=', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$include?', '$sub_specialchars', '$sub_attributes', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$==', '$!', '$register', '$process_authors', '$update', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$save', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$split', '$title', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$context=', '$style=', '$parent=', '$size', '$content_model', '$shift', '$unwrap_standalone_preamble', '$source_location', '$merge', '$fetch', '$parse_block_metadata_line', '$extensions', '$block_macros?', '$mark', '$read_line', '$terminator', '$to_s', '$masq', '$to_sym', '$registered_for_block?', '$debug?', '$debug', '$cursor_at_mark', '$strict_verbatim_paragraphs', '$unshift_line', '$markdown_syntax', '$keys', '$chr', '$uniform?', '$length', '$end_with?', '$===', '$parse_attributes', '$attribute_missing', '$tr', '$basename', '$assign_caption', '$registered_for_block_macro?', '$config', '$process_method', '$replace', '$parse_callout_list', '$callouts', '$parse_list', '$parse_description_list', '$underline_style_section_titles', '$is_section_title?', '$peek_line', '$atx_section_title?', '$generate_id', '$level=', '$read_paragraph_lines', '$adjust_indentation!', '$map!', '$slice', '$pop', '$build_block', '$apply_subs', '$chop', '$catalog_inline_anchors', '$rekey', '$index', '$strip', '$parse_table', '$each', '$raise', '$title?', '$update_attributes', '$commit_subs', '$sub?', '$catalog_callouts', '$source', '$remove_sub', '$block_terminates_paragraph', '$to_proc', '$nil?', '$lines', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$marker=', '$catalog_inline_biblio_anchor', '$set_option', '$text=', '$resolve_ordered_list_marker', '$read_lines_for_list_item', '$skip_line_comments', '$unshift_lines', '$fold_first', '$text?', '$is_sibling_list_item?', '$concat', '$find', '$casecmp', '$sectname=', '$special=', '$numbered=', '$numbered', '$lineno', '$peek_lines', '$setext_section_title?', '$abs', '$cursor_at_prev_line', '$process_attribute_entries', '$next_line_empty?', '$apply_header_subs', '$rstrip', '$each_with_index', '$compact', '$to_h', '$squeeze', '$to_a', '$parse_style_attribute', '$process_attribute_entry', '$skip_comment_lines', '$store_attribute', '$sanitize_attribute_name', '$set_attribute', '$save_to', '$delete_attribute', '$ord', '$int_to_roman', '$resolve_list_marker', '$parse_colspecs', '$create_columns', '$has_header_option=', '$format', '$starts_with_delimiter?', '$close_open_cell', '$parse_cellspec', '$delimiter', '$match_delimiter', '$pre_match', '$post_match', '$buffer_has_unclosed_quotes?', '$skip_past_delimiter', '$buffer', '$buffer=', '$skip_past_escaped_delimiter', '$keep_cell_open', '$push_cellspec', '$close_cell', '$cell_open?', '$columns', '$assign_column_widths', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
|
|
29269
29275
|
return (function($base, $parent_nesting) {
|
|
29270
29276
|
var self = $module($base, 'Asciidoctor');
|
|
29271
29277
|
|
|
@@ -29312,15 +29318,15 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29312
29318
|
Opal.const_set($nesting[0], 'TableCellStyles', $hash2(["d", "s", "e", "m", "h", "l", "a"], {"d": "none", "s": "strong", "e": "emphasis", "m": "monospaced", "h": "header", "l": "literal", "a": "asciidoc"}));
|
|
29313
29319
|
self.$private_class_method("new");
|
|
29314
29320
|
Opal.defs(self, '$parse', $Parser_parse$4 = function $$parse(reader, document, options) {
|
|
29315
|
-
var $a, $b, $c, self = this, block_attributes = nil, new_section = nil;
|
|
29321
|
+
var $a, $b, $c, self = this, block_attributes = nil, header_only = nil, new_section = nil;
|
|
29316
29322
|
|
|
29317
29323
|
|
|
29318
29324
|
|
|
29319
29325
|
if (options == null) {
|
|
29320
29326
|
options = $hash2([], {});
|
|
29321
29327
|
};
|
|
29322
|
-
block_attributes = self.$parse_document_header(reader, document);
|
|
29323
|
-
if ($truthy(
|
|
29328
|
+
block_attributes = self.$parse_document_header(reader, document, (header_only = options['$[]']("header_only")));
|
|
29329
|
+
if ($truthy(header_only)) {
|
|
29324
29330
|
} else {
|
|
29325
29331
|
while ($truthy(reader['$has_more_lines?']())) {
|
|
29326
29332
|
|
|
@@ -29333,10 +29339,14 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29333
29339
|
};
|
|
29334
29340
|
return document;
|
|
29335
29341
|
}, $Parser_parse$4.$$arity = -3);
|
|
29336
|
-
Opal.defs(self, '$parse_document_header', $Parser_parse_document_header$5 = function $$parse_document_header(reader, document) {
|
|
29337
|
-
var $a, $b, self = this, block_attrs = nil, doc_attrs = nil, implicit_doctitle = nil,
|
|
29342
|
+
Opal.defs(self, '$parse_document_header', $Parser_parse_document_header$5 = function $$parse_document_header(reader, document, header_only) {
|
|
29343
|
+
var $a, $b, self = this, block_attrs = nil, doc_attrs = nil, implicit_doctitle = nil, $writer = nil, val = nil, doctitle_attr_val = nil, source_location = nil, _ = nil, l0_section_title = nil, atx = nil, separator = nil, doc_id = nil, role = nil, reftext = nil, modified_attrs = nil, author = nil, author_metadata = nil;
|
|
29338
29344
|
|
|
29339
29345
|
|
|
29346
|
+
|
|
29347
|
+
if (header_only == null) {
|
|
29348
|
+
header_only = false;
|
|
29349
|
+
};
|
|
29340
29350
|
block_attrs = (function() {if ($truthy(reader.$skip_blank_lines())) {
|
|
29341
29351
|
|
|
29342
29352
|
return self.$parse_block_metadata_lines(reader, document);
|
|
@@ -29345,7 +29355,12 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29345
29355
|
}; return nil; })();
|
|
29346
29356
|
doc_attrs = document.$attributes();
|
|
29347
29357
|
if ($truthy(($truthy($a = (implicit_doctitle = self['$is_next_line_doctitle?'](reader, block_attrs, doc_attrs['$[]']("leveloffset")))) ? block_attrs['$[]']("title") : $a))) {
|
|
29348
|
-
|
|
29358
|
+
|
|
29359
|
+
|
|
29360
|
+
$writer = ["authorcount", 0];
|
|
29361
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
29362
|
+
$writer[$rb_minus($writer["length"], 1)];;
|
|
29363
|
+
return document.$finalize_header(block_attrs, false);};
|
|
29349
29364
|
if ($truthy((val = doc_attrs['$[]']("doctitle"))['$nil_or_empty?']())) {
|
|
29350
29365
|
} else {
|
|
29351
29366
|
|
|
@@ -29412,7 +29427,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29412
29427
|
$writer[$rb_minus($writer["length"], 1)];};
|
|
29413
29428
|
block_attrs.$clear();
|
|
29414
29429
|
(modified_attrs = document.$instance_variable_get("@attributes_modified")).$delete("doctitle");
|
|
29415
|
-
self.$parse_header_metadata(reader, document);
|
|
29430
|
+
self.$parse_header_metadata(reader, document, nil);
|
|
29416
29431
|
if ($truthy(modified_attrs['$include?']("doctitle"))) {
|
|
29417
29432
|
if ($truthy(($truthy($a = (val = doc_attrs['$[]']("doctitle"))['$nil_or_empty?']()) ? $a : val['$=='](doctitle_attr_val)))) {
|
|
29418
29433
|
|
|
@@ -29428,15 +29443,35 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29428
29443
|
} else if ($truthy(l0_section_title['$!']())) {
|
|
29429
29444
|
modified_attrs['$<<']("doctitle")};
|
|
29430
29445
|
if ($truthy(doc_id)) {
|
|
29431
|
-
document.$register("refs", [doc_id, document])};
|
|
29446
|
+
document.$register("refs", [doc_id, document])};
|
|
29447
|
+
} else if ($truthy((author = doc_attrs['$[]']("author")))) {
|
|
29448
|
+
|
|
29449
|
+
author_metadata = self.$process_authors(author, true, false);
|
|
29450
|
+
if ($truthy(doc_attrs['$[]']("authorinitials"))) {
|
|
29451
|
+
author_metadata.$delete("authorinitials")};
|
|
29452
|
+
doc_attrs.$update(author_metadata);
|
|
29453
|
+
} else if ($truthy((author = doc_attrs['$[]']("authors")))) {
|
|
29454
|
+
|
|
29455
|
+
author_metadata = self.$process_authors(author, true);
|
|
29456
|
+
doc_attrs.$update(author_metadata);
|
|
29457
|
+
} else {
|
|
29458
|
+
|
|
29459
|
+
$writer = ["authorcount", 0];
|
|
29460
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
29461
|
+
$writer[$rb_minus($writer["length"], 1)];
|
|
29462
|
+
};
|
|
29432
29463
|
if (document.$doctype()['$==']("manpage")) {
|
|
29433
|
-
self.$parse_manpage_header(reader, document, block_attrs)};
|
|
29464
|
+
self.$parse_manpage_header(reader, document, block_attrs, header_only)};
|
|
29434
29465
|
return document.$finalize_header(block_attrs);
|
|
29435
|
-
}, $Parser_parse_document_header$5.$$arity =
|
|
29436
|
-
Opal.defs(self, '$parse_manpage_header', $Parser_parse_manpage_header$6 = function $$parse_manpage_header(reader, document, block_attributes) {
|
|
29466
|
+
}, $Parser_parse_document_header$5.$$arity = -3);
|
|
29467
|
+
Opal.defs(self, '$parse_manpage_header', $Parser_parse_manpage_header$6 = function $$parse_manpage_header(reader, document, block_attributes, header_only) {
|
|
29437
29468
|
var $a, $b, $$7, $$8, self = this, doc_attrs = nil, $writer = nil, manvolnum = nil, mantitle = nil, manname = nil, name_section_level = nil, name_section = nil, name_section_buffer = nil, mannames = nil, manpurpose = nil, error_msg = nil;
|
|
29438
29469
|
|
|
29439
29470
|
|
|
29471
|
+
|
|
29472
|
+
if (header_only == null) {
|
|
29473
|
+
header_only = false;
|
|
29474
|
+
};
|
|
29440
29475
|
if ($truthy($$($nesting, 'ManpageTitleVolnumRx')['$=~']((doc_attrs = document.$attributes())['$[]']("doctitle")))) {
|
|
29441
29476
|
|
|
29442
29477
|
|
|
@@ -29481,6 +29516,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29481
29516
|
$writer = ["outfilesuffix", "" + "." + (manvolnum)];
|
|
29482
29517
|
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
29483
29518
|
$writer[$rb_minus($writer["length"], 1)];;};
|
|
29519
|
+
} else if ($truthy(header_only)) {
|
|
29484
29520
|
} else {
|
|
29485
29521
|
|
|
29486
29522
|
reader.$skip_blank_lines();
|
|
@@ -29580,7 +29616,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29580
29616
|
};
|
|
29581
29617
|
};
|
|
29582
29618
|
return nil;
|
|
29583
|
-
}, $Parser_parse_manpage_header$6.$$arity =
|
|
29619
|
+
}, $Parser_parse_manpage_header$6.$$arity = -4);
|
|
29584
29620
|
Opal.defs(self, '$next_section', $Parser_next_section$9 = function $$next_section(reader, parent, attributes) {
|
|
29585
29621
|
var $a, $b, $c, $d, self = this, preamble = nil, intro = nil, part = nil, has_header = nil, book = nil, document = nil, $writer = nil, section = nil, current_level = nil, expected_next_level = nil, expected_next_level_alt = nil, title = nil, sectname = nil, next_level = nil, expected_condition = nil, new_section = nil, block_cursor = nil, new_block = nil, first_block = nil, child_block = nil;
|
|
29586
29622
|
|
|
@@ -29963,7 +29999,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29963
29999
|
old_v = nil;
|
|
29964
30000
|
};
|
|
29965
30001
|
return old_v;}, $$11.$$s = self, $$11.$$arity = 2, $$11))};
|
|
29966
|
-
if ($truthy((block = extension.$process_method()['$[]'](parent, target, attributes)))) {
|
|
30002
|
+
if ($truthy(($truthy($b = (block = extension.$process_method()['$[]'](parent, target, attributes))) ? block['$!='](parent) : $b))) {
|
|
29967
30003
|
|
|
29968
30004
|
attributes.$replace(block.$attributes());
|
|
29969
30005
|
break;;
|
|
@@ -30498,7 +30534,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30498
30534
|
};
|
|
30499
30535
|
}, $Parser_is_delimited_block$ques$15.$$arity = -2);
|
|
30500
30536
|
Opal.defs(self, '$build_block', $Parser_build_block$16 = function $$build_block(block_context, content_model, terminator, parent, reader, attributes, options) {
|
|
30501
|
-
var $a, self = this, $case = nil, skip_processing = nil, parse_as_content_model = nil, lines = nil, block_reader = nil, block_cursor = nil, tab_size = nil, indent = nil, extension = nil, block = nil;
|
|
30537
|
+
var $a, $b, self = this, $case = nil, skip_processing = nil, parse_as_content_model = nil, lines = nil, block_reader = nil, block_cursor = nil, tab_size = nil, indent = nil, extension = nil, block = nil;
|
|
30502
30538
|
|
|
30503
30539
|
|
|
30504
30540
|
|
|
@@ -30545,10 +30581,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30545
30581
|
if ($truthy((extension = options['$[]']("extension")))) {
|
|
30546
30582
|
|
|
30547
30583
|
attributes.$delete("style");
|
|
30548
|
-
if ($truthy((block = extension.$process_method()['$[]'](parent, ($truthy($
|
|
30584
|
+
if ($truthy(($truthy($a = (block = extension.$process_method()['$[]'](parent, ($truthy($b = block_reader) ? $b : $$($nesting, 'Reader').$new(lines)), attributes.$merge()))) ? block['$!='](parent) : $a))) {
|
|
30549
30585
|
|
|
30550
30586
|
attributes.$replace(block.$attributes());
|
|
30551
|
-
if ($truthy((($a = block.$content_model()['$==']("compound")) ? (lines = block.$lines())['$empty?']()['$!']() :
|
|
30587
|
+
if ($truthy(($truthy($a = (($b = block.$content_model()['$==']("compound")) ? $$($nesting, 'Block')['$==='](block) : block.$content_model()['$==']("compound"))) ? (lines = block.$lines())['$empty?']()['$!']() : $a))) {
|
|
30552
30588
|
|
|
30553
30589
|
content_model = "compound";
|
|
30554
30590
|
block_reader = $$($nesting, 'Reader').$new(lines);};
|
|
@@ -31291,60 +31327,58 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31291
31327
|
sect_level = 0};};
|
|
31292
31328
|
return [sect_id, sect_reftext, sect_title, sect_level, atx];
|
|
31293
31329
|
}, $Parser_parse_section_title$40.$$arity = -3);
|
|
31294
|
-
Opal.defs(self, '$parse_header_metadata', $Parser_parse_header_metadata$41 = function $$parse_header_metadata(reader, document) {
|
|
31295
|
-
var $a, $$42, $$43, $$44, self = this, doc_attrs = nil,
|
|
31330
|
+
Opal.defs(self, '$parse_header_metadata', $Parser_parse_header_metadata$41 = function $$parse_header_metadata(reader, document, retrieve) {
|
|
31331
|
+
var $a, $$42, $$43, $$44, self = this, doc_attrs = nil, authorcount = nil, implicit_author_metadata = nil, $writer = nil, implicit_author = nil, implicit_authorinitials = nil, implicit_authors = nil, rev_line = nil, match = nil, rev_metadata = nil, component = nil, author_line = nil, author_metadata = nil, authors = nil, author_idx = nil, author_key = nil, explicit = nil, sparse = nil, author_override = nil;
|
|
31296
31332
|
|
|
31297
31333
|
|
|
31298
31334
|
|
|
31299
31335
|
if (document == null) {
|
|
31300
31336
|
document = nil;
|
|
31301
31337
|
};
|
|
31338
|
+
|
|
31339
|
+
if (retrieve == null) {
|
|
31340
|
+
retrieve = true;
|
|
31341
|
+
};
|
|
31302
31342
|
doc_attrs = ($truthy($a = document) ? document.$attributes() : $a);
|
|
31303
31343
|
self.$process_attribute_entries(reader, document);
|
|
31304
|
-
$a = [(implicit_authors = $hash2([], {})), nil, nil], (metadata = $a[0]), (implicit_author = $a[1]), (implicit_authorinitials = $a[2]), $a;
|
|
31305
31344
|
if ($truthy(($truthy($a = reader['$has_more_lines?']()) ? reader['$next_line_empty?']()['$!']() : $a))) {
|
|
31306
31345
|
|
|
31307
|
-
|
|
31308
|
-
|
|
31346
|
+
authorcount = (implicit_author_metadata = self.$process_authors(reader.$read_line())).$delete("authorcount");
|
|
31347
|
+
if ($truthy(($truthy($a = document) ? $rb_gt((($writer = ["authorcount", authorcount]), $send(doc_attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]), 0) : $a))) {
|
|
31309
31348
|
|
|
31310
|
-
|
|
31311
|
-
|
|
31312
|
-
$send(author_metadata, 'each', [], ($$42 = function(key, val){var self = $$42.$$s || this, $writer = nil;
|
|
31349
|
+
$send(implicit_author_metadata, 'each', [], ($$42 = function(key, val){var self = $$42.$$s || this;
|
|
31313
31350
|
|
|
31351
|
+
|
|
31314
31352
|
|
|
31353
|
+
if (key == null) {
|
|
31354
|
+
key = nil;
|
|
31355
|
+
};
|
|
31356
|
+
|
|
31357
|
+
if (val == null) {
|
|
31358
|
+
val = nil;
|
|
31359
|
+
};
|
|
31360
|
+
if ($truthy(doc_attrs['$key?'](key))) {
|
|
31361
|
+
return nil
|
|
31362
|
+
} else {
|
|
31315
31363
|
|
|
31316
|
-
|
|
31317
|
-
|
|
31318
|
-
|
|
31319
|
-
|
|
31320
|
-
|
|
31321
|
-
|
|
31322
|
-
|
|
31323
|
-
|
|
31324
|
-
|
|
31325
|
-
|
|
31326
|
-
|
|
31327
|
-
$writer = [key, (function() {if ($truthy($$$('::', 'String')['$==='](val))) {
|
|
31328
|
-
|
|
31329
|
-
return document.$apply_header_subs(val);
|
|
31330
|
-
} else {
|
|
31331
|
-
return val
|
|
31332
|
-
}; return nil; })()];
|
|
31333
|
-
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31334
|
-
return $writer[$rb_minus($writer["length"], 1)];
|
|
31335
|
-
};}, $$42.$$s = self, $$42.$$arity = 2, $$42));
|
|
31336
|
-
implicit_author = doc_attrs['$[]']("author");
|
|
31337
|
-
implicit_authorinitials = doc_attrs['$[]']("authorinitials");
|
|
31338
|
-
implicit_authors = doc_attrs['$[]']("authors");};
|
|
31339
|
-
metadata = author_metadata;
|
|
31340
|
-
};
|
|
31364
|
+
$writer = [key, document.$apply_header_subs(val)];
|
|
31365
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31366
|
+
return $writer[$rb_minus($writer["length"], 1)];
|
|
31367
|
+
};}, $$42.$$s = self, $$42.$$arity = 2, $$42));
|
|
31368
|
+
implicit_author = doc_attrs['$[]']("author");
|
|
31369
|
+
implicit_authorinitials = doc_attrs['$[]']("authorinitials");
|
|
31370
|
+
implicit_authors = doc_attrs['$[]']("authors");};
|
|
31371
|
+
|
|
31372
|
+
$writer = ["authorcount", authorcount];
|
|
31373
|
+
$send(implicit_author_metadata, '[]=', Opal.to_a($writer));
|
|
31374
|
+
$writer[$rb_minus($writer["length"], 1)];;
|
|
31341
31375
|
self.$process_attribute_entries(reader, document);
|
|
31342
|
-
rev_metadata = $hash2([], {});
|
|
31343
31376
|
if ($truthy(($truthy($a = reader['$has_more_lines?']()) ? reader['$next_line_empty?']()['$!']() : $a))) {
|
|
31344
31377
|
|
|
31345
31378
|
rev_line = reader.$read_line();
|
|
31346
31379
|
if ($truthy((match = $$($nesting, 'RevisionInfoLineRx').$match(rev_line)))) {
|
|
31347
31380
|
|
|
31381
|
+
rev_metadata = $hash2([], {});
|
|
31348
31382
|
if ($truthy(match['$[]'](1))) {
|
|
31349
31383
|
|
|
31350
31384
|
$writer = ["revnumber", match['$[]'](1).$rstrip()];
|
|
@@ -31367,38 +31401,33 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31367
31401
|
$writer = ["revremark", match['$[]'](3).$rstrip()];
|
|
31368
31402
|
$send(rev_metadata, '[]=', Opal.to_a($writer));
|
|
31369
31403
|
$writer[$rb_minus($writer["length"], 1)];};
|
|
31370
|
-
|
|
31371
|
-
|
|
31372
|
-
};};
|
|
31373
|
-
if ($truthy(rev_metadata['$empty?']())) {
|
|
31374
|
-
} else {
|
|
31375
|
-
|
|
31376
|
-
if ($truthy(document)) {
|
|
31377
|
-
$send(rev_metadata, 'each', [], ($$43 = function(key, val){var self = $$43.$$s || this;
|
|
31404
|
+
if ($truthy(($truthy($a = document) ? rev_metadata['$empty?']()['$!']() : $a))) {
|
|
31405
|
+
$send(rev_metadata, 'each', [], ($$43 = function(key, val){var self = $$43.$$s || this;
|
|
31378
31406
|
|
|
31379
|
-
|
|
31380
31407
|
|
|
31381
|
-
if (key == null) {
|
|
31382
|
-
key = nil;
|
|
31383
|
-
};
|
|
31384
|
-
|
|
31385
|
-
if (val == null) {
|
|
31386
|
-
val = nil;
|
|
31387
|
-
};
|
|
31388
|
-
if ($truthy(doc_attrs['$key?'](key))) {
|
|
31389
|
-
return nil
|
|
31390
|
-
} else {
|
|
31391
31408
|
|
|
31392
|
-
|
|
31393
|
-
|
|
31394
|
-
|
|
31395
|
-
|
|
31396
|
-
|
|
31397
|
-
|
|
31409
|
+
if (key == null) {
|
|
31410
|
+
key = nil;
|
|
31411
|
+
};
|
|
31412
|
+
|
|
31413
|
+
if (val == null) {
|
|
31414
|
+
val = nil;
|
|
31415
|
+
};
|
|
31416
|
+
if ($truthy(doc_attrs['$key?'](key))) {
|
|
31417
|
+
return nil
|
|
31418
|
+
} else {
|
|
31419
|
+
|
|
31420
|
+
$writer = [key, document.$apply_header_subs(val)];
|
|
31421
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31422
|
+
return $writer[$rb_minus($writer["length"], 1)];
|
|
31423
|
+
};}, $$43.$$s = self, $$43.$$arity = 2, $$43))};
|
|
31424
|
+
} else {
|
|
31425
|
+
reader.$unshift_line(rev_line)
|
|
31426
|
+
};};
|
|
31398
31427
|
self.$process_attribute_entries(reader, document);
|
|
31399
31428
|
reader.$skip_blank_lines();
|
|
31400
31429
|
} else {
|
|
31401
|
-
|
|
31430
|
+
implicit_author_metadata = $hash2([], {})
|
|
31402
31431
|
};
|
|
31403
31432
|
if ($truthy(document)) {
|
|
31404
31433
|
|
|
@@ -31414,7 +31443,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31414
31443
|
$a = [[], 1, "author_1", false, false], (authors = $a[0]), (author_idx = $a[1]), (author_key = $a[2]), (explicit = $a[3]), (sparse = $a[4]), $a;
|
|
31415
31444
|
while ($truthy(doc_attrs['$key?'](author_key))) {
|
|
31416
31445
|
|
|
31417
|
-
if ((author_override = doc_attrs['$[]'](author_key))['$=='](
|
|
31446
|
+
if ((author_override = doc_attrs['$[]'](author_key))['$=='](implicit_author_metadata['$[]'](author_key))) {
|
|
31418
31447
|
|
|
31419
31448
|
authors['$<<'](nil);
|
|
31420
31449
|
sparse = true;
|
|
@@ -31442,7 +31471,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31442
31471
|
if ($truthy(author)) {
|
|
31443
31472
|
return nil;};
|
|
31444
31473
|
|
|
31445
|
-
$writer = [idx, $send([
|
|
31474
|
+
$writer = [idx, $send([implicit_author_metadata['$[]']("" + "firstname_" + ((name_idx = $rb_plus(idx, 1)))), implicit_author_metadata['$[]']("" + "middlename_" + (name_idx)), implicit_author_metadata['$[]']("" + "lastname_" + (name_idx))].$compact(), 'map', [], ($$45 = function(it){var self = $$45.$$s || this;
|
|
31446
31475
|
|
|
31447
31476
|
|
|
31448
31477
|
|
|
@@ -31454,11 +31483,18 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31454
31483
|
return $writer[$rb_minus($writer["length"], 1)];;}, $$44.$$s = self, $$44.$$arity = 2, $$44))};
|
|
31455
31484
|
author_metadata = self.$process_authors(authors, true, false);
|
|
31456
31485
|
} else {
|
|
31457
|
-
author_metadata = $hash2([], {})
|
|
31486
|
+
author_metadata = $hash2(["authorcount"], {"authorcount": 0})
|
|
31458
31487
|
};
|
|
31459
31488
|
};
|
|
31460
|
-
if (
|
|
31461
|
-
($truthy(
|
|
31489
|
+
if (author_metadata['$[]']("authorcount")['$=='](0)) {
|
|
31490
|
+
if ($truthy(authorcount)) {
|
|
31491
|
+
author_metadata = nil
|
|
31492
|
+
} else {
|
|
31493
|
+
|
|
31494
|
+
$writer = ["authorcount", 0];
|
|
31495
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31496
|
+
$writer[$rb_minus($writer["length"], 1)];
|
|
31497
|
+
}
|
|
31462
31498
|
} else {
|
|
31463
31499
|
|
|
31464
31500
|
doc_attrs.$update(author_metadata);
|
|
@@ -31468,7 +31504,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31468
31504
|
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31469
31505
|
$writer[$rb_minus($writer["length"], 1)];};
|
|
31470
31506
|
};};
|
|
31471
|
-
|
|
31507
|
+
if ($truthy(retrieve)) {
|
|
31508
|
+
return implicit_author_metadata.$merge(rev_metadata.$to_h(), author_metadata.$to_h())
|
|
31509
|
+
} else {
|
|
31510
|
+
return nil
|
|
31511
|
+
};
|
|
31472
31512
|
}, $Parser_parse_header_metadata$41.$$arity = -2);
|
|
31473
31513
|
Opal.defs(self, '$process_authors', $Parser_process_authors$46 = function $$process_authors(author_line, names_only, multiple) {
|
|
31474
31514
|
var $a, $$47, self = this, author_metadata = nil, author_idx = nil, $writer = nil;
|
|
@@ -33008,7 +33048,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
33008
33048
|
}
|
|
33009
33049
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $hash2 = Opal.hash2, $truthy = Opal.truthy, $send = Opal.send, $gvars = Opal.gvars, $hash = Opal.hash;
|
|
33010
33050
|
|
|
33011
|
-
Opal.add_stubs(['$include', '$attr_reader', '$+', '$attr_accessor', '$!', '$===', '$split', '$file', '$dir', '$dirname', '$path', '$basename', '$lineno', '$reverse', '$prepare_lines', '$empty?', '$nil_or_empty?', '$peek_line', '$>', '$slice', '$[]', '$length', '$process_line', '$times', '$shift', '$read_line', '$<<', '$-', '$unshift_all', '$has_more_lines?', '$join', '$read_lines', '$unshift', '$start_with?', '$==', '$*', '$read_lines_until', '$size', '$clear', '$cursor', '$[]=', '$!=', '$fetch', '$cursor_at_mark', '$warn', '$logger', '$message_with_context', '$pop', '$push', '$respond_to?', '$reverse_each', '$new', '$tap', '$each', '$instance_variables', '$instance_variable_get', '$drop', '$instance_variable_set', '$class', '$object_id', '$inspect', '$private', '$prepare_source_array', '$prepare_source_string', '$chomp', '$valid_encoding?', '$to_s', '$raise', '$to_i', '$attributes', '$catalog', '$pop_include', '$parse', '$path=', '$dup', '$end_with?', '$keys', '$rindex', '$rootname', '$key?', '$attr', '$reverse!', '$>=', '$nil?', '$extensions?', '$include_processors?', '$extensions', '$include_processors', '$map', '$skip_front_matter!', '$adjust_indentation!', '$include?', '$=~', '$preprocess_conditional_directive', '$preprocess_include_directive', '$downcase', '$error', '$none?', '$any?', '$all?', '$strip', '$send', '$resolve_expr_val', '$replace_next_line', '$rstrip', '$sub_attributes', '$attribute_missing', '$info', '$parse_attributes', '$find', '$handles?', '$instance', '$process_method', '$safe', '$resolve_include_path', '$method', '$split_delimited_value', '$partition', '$<', '$to_a', '$uniq', '$sort', '$call', '$each_line', '$infinite?', '$push_include', '$delete', '$first', '$values', '$value?', '$create_include_cursor', '$delete_at', '$read', '$uriish?', '$attr?', '$require_library', '$normalize_system_path', '$file?', '$relative_path', '$path_resolver', '$base_dir', '$to_f']);
|
|
33051
|
+
Opal.add_stubs(['$include', '$attr_reader', '$+', '$attr_accessor', '$!', '$===', '$split', '$file', '$dir', '$dirname', '$path', '$basename', '$lineno', '$reverse', '$prepare_lines', '$empty?', '$nil_or_empty?', '$peek_line', '$>', '$slice', '$[]', '$length', '$process_line', '$times', '$shift', '$read_line', '$<<', '$-', '$unshift_all', '$has_more_lines?', '$join', '$read_lines', '$unshift', '$start_with?', '$==', '$*', '$read_lines_until', '$size', '$clear', '$cursor', '$[]=', '$!=', '$fetch', '$cursor_at_mark', '$warn', '$logger', '$message_with_context', '$pop', '$push', '$respond_to?', '$reverse_each', '$new', '$tap', '$each', '$instance_variables', '$instance_variable_get', '$drop', '$instance_variable_set', '$class', '$object_id', '$inspect', '$private', '$prepare_source_array', '$prepare_source_string', '$chomp', '$valid_encoding?', '$to_s', '$raise', '$to_i', '$attributes', '$catalog', '$pop_include', '$parse', '$path=', '$dup', '$end_with?', '$keys', '$rindex', '$rootname', '$key?', '$attr', '$reverse!', '$>=', '$nil?', '$extensions?', '$include_processors?', '$extensions', '$include_processors', '$map', '$skip_front_matter!', '$adjust_indentation!', '$include?', '$=~', '$preprocess_conditional_directive', '$preprocess_include_directive', '$downcase', '$error', '$none?', '$any?', '$all?', '$strip', '$send', '$resolve_expr_val', '$replace_next_line', '$rstrip', '$sub_attributes', '$attribute_missing', '$info', '$parse_attributes', '$find', '$handles?', '$instance', '$process_method', '$safe', '$resolve_include_path', '$method', '$split_delimited_value', '$partition', '$<', '$to_a', '$uniq', '$sort', '$call', '$each_line', '$infinite?', '$push_include', '$delete', '$first', '$values', '$value?', '$create_include_cursor', '$delete_at', '$keep_if', '$read', '$uriish?', '$attr?', '$require_library', '$normalize_system_path', '$file?', '$relative_path', '$path_resolver', '$base_dir', '$to_f']);
|
|
33012
33052
|
return (function($base, $parent_nesting) {
|
|
33013
33053
|
var self = $module($base, 'Asciidoctor');
|
|
33014
33054
|
|
|
@@ -33664,7 +33704,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
33664
33704
|
(function($base, $super, $parent_nesting) {
|
|
33665
33705
|
var self = $klass($base, $super, 'PreprocessorReader');
|
|
33666
33706
|
|
|
33667
|
-
var $nesting = [self].concat($parent_nesting), $PreprocessorReader_initialize$47, $PreprocessorReader_has_more_lines$ques$48, $PreprocessorReader_empty$ques$49, $PreprocessorReader_peek_line$50, $PreprocessorReader_push_include$51, $PreprocessorReader_include_depth$52, $PreprocessorReader_exceeds_max_depth$ques$53, $PreprocessorReader_shift$54, $PreprocessorReader_include_processors$ques$55, $PreprocessorReader_create_include_cursor$56, $PreprocessorReader_to_s$57, $PreprocessorReader_prepare_lines$59, $PreprocessorReader_process_line$60, $PreprocessorReader_preprocess_conditional_directive$61, $PreprocessorReader_preprocess_include_directive$66, $PreprocessorReader_resolve_include_path$
|
|
33707
|
+
var $nesting = [self].concat($parent_nesting), $PreprocessorReader_initialize$47, $PreprocessorReader_has_more_lines$ques$48, $PreprocessorReader_empty$ques$49, $PreprocessorReader_peek_line$50, $PreprocessorReader_push_include$51, $PreprocessorReader_include_depth$52, $PreprocessorReader_exceeds_max_depth$ques$53, $PreprocessorReader_shift$54, $PreprocessorReader_include_processors$ques$55, $PreprocessorReader_create_include_cursor$56, $PreprocessorReader_to_s$57, $PreprocessorReader_prepare_lines$59, $PreprocessorReader_process_line$60, $PreprocessorReader_preprocess_conditional_directive$61, $PreprocessorReader_preprocess_include_directive$66, $PreprocessorReader_resolve_include_path$80, $PreprocessorReader_pop_include$82, $PreprocessorReader_split_delimited_value$83, $PreprocessorReader_skip_front_matter$excl$84, $PreprocessorReader_resolve_expr_val$85;
|
|
33668
33708
|
|
|
33669
33709
|
self.$$prototype.include_stack = self.$$prototype.lines = self.$$prototype.file = self.$$prototype.dir = self.$$prototype.path = self.$$prototype.lineno = self.$$prototype.maxdepth = self.$$prototype.process_lines = self.$$prototype.includes = self.$$prototype.document = self.$$prototype.unescape_next_line = self.$$prototype.include_processor_extensions = self.$$prototype.look_ahead = self.$$prototype.skipping = self.$$prototype.conditional_stack = nil;
|
|
33670
33710
|
|
|
@@ -34140,7 +34180,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34140
34180
|
}, $PreprocessorReader_preprocess_conditional_directive$61.$$arity = 4);
|
|
34141
34181
|
|
|
34142
34182
|
Opal.def(self, '$preprocess_include_directive', $PreprocessorReader_preprocess_include_directive$66 = function $$preprocess_include_directive(target, attrlist) {
|
|
34143
|
-
var $a, $b, $$67, $$68, $$69, $$70, $$71, $$72, $$74, $$77, $$78, self = this, doc = nil, expanded_target = nil, attr_missing = nil, ext = nil, parsed_attrs = nil, inc_path = nil, target_type = nil, relpath = nil, $case = nil, reader = nil, read_mode = nil, enc = nil, $writer = nil, read_mode_params = nil, inc_linenos = nil, inc_tags = nil, tag = nil, inc_lines = nil, inc_offset = nil, inc_lineno = nil, tag_stack = nil,
|
|
34183
|
+
var $a, $b, $$67, $$68, $$69, $$70, $$71, $$72, $$74, $$77, $$78, $$79, self = this, doc = nil, expanded_target = nil, attr_missing = nil, ext = nil, parsed_attrs = nil, inc_path = nil, target_type = nil, relpath = nil, $case = nil, reader = nil, read_mode = nil, enc = nil, $writer = nil, read_mode_params = nil, inc_linenos = nil, inc_tags = nil, tag = nil, inc_lines = nil, inc_offset = nil, inc_lineno = nil, tag_stack = nil, tags_selected = nil, active_tag = nil, select = nil, base_select = nil, wildcard = nil, missing_tags = nil, inc_content = nil;
|
|
34144
34184
|
|
|
34145
34185
|
|
|
34146
34186
|
doc = self.document;
|
|
@@ -34344,7 +34384,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34344
34384
|
self.$push_include(inc_lines, inc_path, relpath, inc_offset, parsed_attrs);};
|
|
34345
34385
|
} else if ($truthy(inc_tags)) {
|
|
34346
34386
|
|
|
34347
|
-
$a = [[], nil, 0, [], $$$('::', 'Set').$new(), nil], (inc_lines = $a[0]), (inc_offset = $a[1]), (inc_lineno = $a[2]), (tag_stack = $a[3]), (
|
|
34387
|
+
$a = [[], nil, 0, [], $$$('::', 'Set').$new(), nil], (inc_lines = $a[0]), (inc_offset = $a[1]), (inc_lineno = $a[2]), (tag_stack = $a[3]), (tags_selected = $a[4]), (active_tag = $a[5]), $a;
|
|
34348
34388
|
if ($truthy(inc_tags['$key?']("**"))) {
|
|
34349
34389
|
|
|
34350
34390
|
select = (base_select = inc_tags.$delete("**"));
|
|
@@ -34420,8 +34460,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34420
34460
|
}
|
|
34421
34461
|
} else if ($truthy(inc_tags['$key?'](this_tag))) {
|
|
34422
34462
|
|
|
34423
|
-
|
|
34424
|
-
|
|
34463
|
+
if ($truthy((select = inc_tags['$[]'](this_tag)))) {
|
|
34464
|
+
tags_selected['$<<'](this_tag)};
|
|
34465
|
+
return tag_stack['$<<']([(active_tag = this_tag), select, inc_lineno]);
|
|
34425
34466
|
} else if ($truthy(wildcard['$nil?']()['$!']())) {
|
|
34426
34467
|
|
|
34427
34468
|
select = (function() {if ($truthy(($truthy($d = active_tag) ? select['$!']() : $d))) {
|
|
@@ -34468,7 +34509,18 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34468
34509
|
};
|
|
34469
34510
|
return self.$logger().$warn(self.$message_with_context("" + "detected unclosed tag '" + (tag_name) + "' starting at line " + (tag_lineno) + " of include " + (target_type) + ": " + (inc_path), $hash2(["source_location", "include_location"], {"source_location": self.$cursor(), "include_location": self.$create_include_cursor(inc_path, expanded_target, tag_lineno)})));}, $$77.$$s = self, $$77.$$arity = 3, $$77))
|
|
34470
34511
|
};
|
|
34471
|
-
if ($truthy((missing_tags = $rb_minus(inc_tags
|
|
34512
|
+
if ($truthy((missing_tags = $rb_minus($send(inc_tags, 'keep_if', [], ($$78 = function(_, v){var self = $$78.$$s || this;
|
|
34513
|
+
|
|
34514
|
+
|
|
34515
|
+
|
|
34516
|
+
if (_ == null) {
|
|
34517
|
+
_ = nil;
|
|
34518
|
+
};
|
|
34519
|
+
|
|
34520
|
+
if (v == null) {
|
|
34521
|
+
v = nil;
|
|
34522
|
+
};
|
|
34523
|
+
return v;}, $$78.$$s = self, $$78.$$arity = 2, $$78)).$keys(), tags_selected.$to_a()))['$empty?']())) {
|
|
34472
34524
|
} else {
|
|
34473
34525
|
self.$logger().$warn(self.$message_with_context("" + "tag" + ((function() {if ($truthy($rb_gt(missing_tags.$size(), 1))) {
|
|
34474
34526
|
return "s"
|
|
@@ -34491,14 +34543,14 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34491
34543
|
|
|
34492
34544
|
try {
|
|
34493
34545
|
|
|
34494
|
-
inc_content = $send(reader, 'call', [inc_path, read_mode], ($$
|
|
34546
|
+
inc_content = $send(reader, 'call', [inc_path, read_mode], ($$79 = function(f){var self = $$79.$$s || this;
|
|
34495
34547
|
|
|
34496
34548
|
|
|
34497
34549
|
|
|
34498
34550
|
if (f == null) {
|
|
34499
34551
|
f = nil;
|
|
34500
34552
|
};
|
|
34501
|
-
return f.$read();}, $$
|
|
34553
|
+
return f.$read();}, $$79.$$s = self, $$79.$$arity = 1, $$79));
|
|
34502
34554
|
self.$shift();
|
|
34503
34555
|
self.$push_include(inc_content, inc_path, relpath, 1, parsed_attrs);
|
|
34504
34556
|
} catch ($err) {
|
|
@@ -34517,8 +34569,8 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34517
34569
|
};
|
|
34518
34570
|
}, $PreprocessorReader_preprocess_include_directive$66.$$arity = 2);
|
|
34519
34571
|
|
|
34520
|
-
Opal.def(self, '$resolve_include_path', $PreprocessorReader_resolve_include_path$
|
|
34521
|
-
var $a, $b, $$
|
|
34572
|
+
Opal.def(self, '$resolve_include_path', $PreprocessorReader_resolve_include_path$80 = function $$resolve_include_path(target, attrlist, attributes) {
|
|
34573
|
+
var $a, $b, $$81, self = this, doc = nil, inc_path = nil, relpath = nil;
|
|
34522
34574
|
|
|
34523
34575
|
|
|
34524
34576
|
doc = self.document;
|
|
@@ -34547,9 +34599,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34547
34599
|
if ($truthy($$$('::', 'File')['$file?'](inc_path))) {
|
|
34548
34600
|
} else if ($truthy(attributes['$[]']("optional-option"))) {
|
|
34549
34601
|
|
|
34550
|
-
$send(self.$logger(), 'info', [], ($$
|
|
34602
|
+
$send(self.$logger(), 'info', [], ($$81 = function(){var self = $$81.$$s || this;
|
|
34551
34603
|
|
|
34552
|
-
return self.$message_with_context("" + "optional include dropped because include file not found: " + (inc_path), $hash2(["source_location"], {"source_location": self.$cursor()}))}, $$
|
|
34604
|
+
return self.$message_with_context("" + "optional include dropped because include file not found: " + (inc_path), $hash2(["source_location"], {"source_location": self.$cursor()}))}, $$81.$$s = self, $$81.$$arity = 0, $$81));
|
|
34553
34605
|
self.$shift();
|
|
34554
34606
|
return true;
|
|
34555
34607
|
} else {
|
|
@@ -34560,9 +34612,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34560
34612
|
relpath = doc.$path_resolver().$relative_path(inc_path, doc.$base_dir());
|
|
34561
34613
|
return [inc_path, "file", relpath];
|
|
34562
34614
|
};
|
|
34563
|
-
}, $PreprocessorReader_resolve_include_path$
|
|
34615
|
+
}, $PreprocessorReader_resolve_include_path$80.$$arity = 3);
|
|
34564
34616
|
|
|
34565
|
-
Opal.def(self, '$pop_include', $PreprocessorReader_pop_include$
|
|
34617
|
+
Opal.def(self, '$pop_include', $PreprocessorReader_pop_include$82 = function $$pop_include() {
|
|
34566
34618
|
var $a, $b, self = this;
|
|
34567
34619
|
|
|
34568
34620
|
if ($truthy(self.include_stack['$empty?']())) {
|
|
@@ -34573,9 +34625,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34573
34625
|
self.look_ahead = 0;
|
|
34574
34626
|
return nil;
|
|
34575
34627
|
}
|
|
34576
|
-
}, $PreprocessorReader_pop_include$
|
|
34628
|
+
}, $PreprocessorReader_pop_include$82.$$arity = 0);
|
|
34577
34629
|
|
|
34578
|
-
Opal.def(self, '$split_delimited_value', $PreprocessorReader_split_delimited_value$
|
|
34630
|
+
Opal.def(self, '$split_delimited_value', $PreprocessorReader_split_delimited_value$83 = function $$split_delimited_value(val) {
|
|
34579
34631
|
var self = this;
|
|
34580
34632
|
|
|
34581
34633
|
if ($truthy(val['$include?'](","))) {
|
|
@@ -34585,9 +34637,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34585
34637
|
|
|
34586
34638
|
return val.$split(";");
|
|
34587
34639
|
}
|
|
34588
|
-
}, $PreprocessorReader_split_delimited_value$
|
|
34640
|
+
}, $PreprocessorReader_split_delimited_value$83.$$arity = 1);
|
|
34589
34641
|
|
|
34590
|
-
Opal.def(self, '$skip_front_matter!', $PreprocessorReader_skip_front_matter$excl$
|
|
34642
|
+
Opal.def(self, '$skip_front_matter!', $PreprocessorReader_skip_front_matter$excl$84 = function(data, increment_linenos) {
|
|
34591
34643
|
var $a, $b, self = this, front_matter = nil, original_data = nil;
|
|
34592
34644
|
|
|
34593
34645
|
|
|
@@ -34622,8 +34674,8 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34622
34674
|
self.lineno = $rb_plus(self.lineno, 1)};
|
|
34623
34675
|
};};
|
|
34624
34676
|
return front_matter;
|
|
34625
|
-
}, $PreprocessorReader_skip_front_matter$excl$
|
|
34626
|
-
return (Opal.def(self, '$resolve_expr_val', $PreprocessorReader_resolve_expr_val$
|
|
34677
|
+
}, $PreprocessorReader_skip_front_matter$excl$84.$$arity = -2);
|
|
34678
|
+
return (Opal.def(self, '$resolve_expr_val', $PreprocessorReader_resolve_expr_val$85 = function $$resolve_expr_val(val) {
|
|
34627
34679
|
var $a, $b, self = this, quoted = nil;
|
|
34628
34680
|
|
|
34629
34681
|
|
|
@@ -34651,7 +34703,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34651
34703
|
} else {
|
|
34652
34704
|
return val.$to_i()
|
|
34653
34705
|
};
|
|
34654
|
-
}, $PreprocessorReader_resolve_expr_val$
|
|
34706
|
+
}, $PreprocessorReader_resolve_expr_val$85.$$arity = 1), nil) && 'resolve_expr_val';
|
|
34655
34707
|
})($nesting[0], $$($nesting, 'Reader'), $nesting);
|
|
34656
34708
|
})($nesting[0], $nesting)
|
|
34657
34709
|
};
|
|
@@ -34669,7 +34721,7 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34669
34721
|
}
|
|
34670
34722
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $hash2 = Opal.hash2, $send = Opal.send, $truthy = Opal.truthy;
|
|
34671
34723
|
|
|
34672
|
-
Opal.add_stubs(['$attr_accessor', '$attr_reader', '$===', '$+', '$level', '$special', '$generate_id', '$title', '
|
|
34724
|
+
Opal.add_stubs(['$attr_accessor', '$attr_reader', '$===', '$+', '$level', '$special', '$generate_id', '$title', '$>', '$==', '$sectnum', '$reftext', '$!', '$empty?', '$sub_placeholder', '$sub_quotes', '$compat_mode', '$[]', '$attributes', '$context', '$assign_numeral', '$class', '$object_id', '$inspect', '$size', '$length', '$chr', '$[]=', '$-', '$gsub', '$downcase', '$delete', '$tr_s', '$end_with?', '$chop', '$start_with?', '$slice', '$key?', '$catalog', '$unique_id_start_index']);
|
|
34673
34725
|
return (function($base, $parent_nesting) {
|
|
34674
34726
|
var self = $module($base, 'Asciidoctor');
|
|
34675
34727
|
|
|
@@ -34678,9 +34730,9 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34678
34730
|
(function($base, $super, $parent_nesting) {
|
|
34679
34731
|
var self = $klass($base, $super, 'Section');
|
|
34680
34732
|
|
|
34681
|
-
var $nesting = [self].concat($parent_nesting), $Section_initialize$1, $Section_generate_id$2, $
|
|
34733
|
+
var $nesting = [self].concat($parent_nesting), $Section_initialize$1, $Section_generate_id$2, $Section_sections$ques$3, $Section_sectnum$4, $Section_xreftext$5, $Section_$lt$lt$6, $Section_to_s$7, $Section_generate_id$8;
|
|
34682
34734
|
|
|
34683
|
-
self.$$prototype.document = self.$$prototype.level = self.$$prototype.parent = self.$$prototype.numeral = self.$$prototype.numbered = self.$$prototype.sectname = self.$$prototype.title = self.$$prototype.blocks = nil;
|
|
34735
|
+
self.$$prototype.document = self.$$prototype.next_section_index = self.$$prototype.level = self.$$prototype.parent = self.$$prototype.numeral = self.$$prototype.numbered = self.$$prototype.sectname = self.$$prototype.title = self.$$prototype.blocks = nil;
|
|
34684
34736
|
|
|
34685
34737
|
self.$attr_accessor("index");
|
|
34686
34738
|
self.$attr_accessor("sectname");
|
|
@@ -34726,7 +34778,13 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34726
34778
|
return $$($nesting, 'Section').$generate_id(self.$title(), self.document)
|
|
34727
34779
|
}, $Section_generate_id$2.$$arity = 0);
|
|
34728
34780
|
|
|
34729
|
-
Opal.def(self, '$
|
|
34781
|
+
Opal.def(self, '$sections?', $Section_sections$ques$3 = function() {
|
|
34782
|
+
var self = this;
|
|
34783
|
+
|
|
34784
|
+
return $rb_gt(self.next_section_index, 0)
|
|
34785
|
+
}, $Section_sections$ques$3.$$arity = 0);
|
|
34786
|
+
|
|
34787
|
+
Opal.def(self, '$sectnum', $Section_sectnum$4 = function $$sectnum(delimiter, append) {
|
|
34730
34788
|
var $a, self = this;
|
|
34731
34789
|
|
|
34732
34790
|
|
|
@@ -34748,9 +34806,9 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34748
34806
|
} else {
|
|
34749
34807
|
return "" + (self.numeral) + (append)
|
|
34750
34808
|
};
|
|
34751
|
-
}, $Section_sectnum$
|
|
34809
|
+
}, $Section_sectnum$4.$$arity = -1);
|
|
34752
34810
|
|
|
34753
|
-
Opal.def(self, '$xreftext', $Section_xreftext$
|
|
34811
|
+
Opal.def(self, '$xreftext', $Section_xreftext$5 = function $$xreftext(xrefstyle) {
|
|
34754
34812
|
var $a, self = this, val = nil, $case = nil, type = nil, quoted_title = nil, signifier = nil;
|
|
34755
34813
|
|
|
34756
34814
|
|
|
@@ -34798,12 +34856,12 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34798
34856
|
} else {
|
|
34799
34857
|
return self.$title()
|
|
34800
34858
|
};
|
|
34801
|
-
}, $Section_xreftext$
|
|
34859
|
+
}, $Section_xreftext$5.$$arity = -1);
|
|
34802
34860
|
|
|
34803
|
-
Opal.def(self, '$<<', $Section_$lt$lt$
|
|
34804
|
-
var $iter = $Section_$lt$lt$
|
|
34861
|
+
Opal.def(self, '$<<', $Section_$lt$lt$6 = function(block) {
|
|
34862
|
+
var $iter = $Section_$lt$lt$6.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
34805
34863
|
|
|
34806
|
-
if ($iter) $Section_$lt$lt$
|
|
34864
|
+
if ($iter) $Section_$lt$lt$6.$$p = null;
|
|
34807
34865
|
// Prepare super implicit arguments
|
|
34808
34866
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
34809
34867
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
@@ -34811,13 +34869,13 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34811
34869
|
|
|
34812
34870
|
if (block.$context()['$==']("section")) {
|
|
34813
34871
|
self.$assign_numeral(block)};
|
|
34814
|
-
return $send(self, Opal.find_super_dispatcher(self, '<<', $Section_$lt$lt$
|
|
34815
|
-
}, $Section_$lt$lt$
|
|
34872
|
+
return $send(self, Opal.find_super_dispatcher(self, '<<', $Section_$lt$lt$6, false), $zuper, $iter);
|
|
34873
|
+
}, $Section_$lt$lt$6.$$arity = 1);
|
|
34816
34874
|
|
|
34817
|
-
Opal.def(self, '$to_s', $Section_to_s$
|
|
34818
|
-
var $iter = $Section_to_s$
|
|
34875
|
+
Opal.def(self, '$to_s', $Section_to_s$7 = function $$to_s() {
|
|
34876
|
+
var $iter = $Section_to_s$7.$$p, $yield = $iter || nil, self = this, formal_title = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
34819
34877
|
|
|
34820
|
-
if ($iter) $Section_to_s$
|
|
34878
|
+
if ($iter) $Section_to_s$7.$$p = null;
|
|
34821
34879
|
// Prepare super implicit arguments
|
|
34822
34880
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
34823
34881
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
@@ -34831,10 +34889,10 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34831
34889
|
}; return nil; })();
|
|
34832
34890
|
return "" + "#<" + (self.$class()) + "@" + (self.$object_id()) + " {level: " + (self.level) + ", title: " + (formal_title.$inspect()) + ", blocks: " + (self.blocks.$size()) + "}>";
|
|
34833
34891
|
} else {
|
|
34834
|
-
return $send(self, Opal.find_super_dispatcher(self, 'to_s', $Section_to_s$
|
|
34892
|
+
return $send(self, Opal.find_super_dispatcher(self, 'to_s', $Section_to_s$7, false), $zuper, $iter)
|
|
34835
34893
|
}
|
|
34836
|
-
}, $Section_to_s$
|
|
34837
|
-
return (Opal.defs(self, '$generate_id', $Section_generate_id$
|
|
34894
|
+
}, $Section_to_s$7.$$arity = 0);
|
|
34895
|
+
return (Opal.defs(self, '$generate_id', $Section_generate_id$8 = function $$generate_id(title, document) {
|
|
34838
34896
|
var $a, $b, self = this, attrs = nil, pre = nil, sep = nil, no_sep = nil, $writer = nil, sep_sub = nil, gen_id = nil, ids = nil, cnt = nil, candidate_id = nil;
|
|
34839
34897
|
|
|
34840
34898
|
|
|
@@ -34872,7 +34930,7 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34872
34930
|
} else {
|
|
34873
34931
|
return gen_id
|
|
34874
34932
|
};
|
|
34875
|
-
}, $Section_generate_id$
|
|
34933
|
+
}, $Section_generate_id$8.$$arity = 2), nil) && 'generate_id';
|
|
34876
34934
|
})($nesting[0], $$($nesting, 'AbstractBlock'), $nesting)
|
|
34877
34935
|
})($nesting[0], $nesting)
|
|
34878
34936
|
};
|
|
@@ -37105,7 +37163,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
37105
37163
|
}
|
|
37106
37164
|
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $send = Opal.send, $hash2 = Opal.hash2, $truthy = Opal.truthy, $gvars = Opal.gvars;
|
|
37107
37165
|
|
|
37108
|
-
Opal.add_stubs(['$register_for', '$default=', '$-', '$==', '$[]', '$init_backend_traits', '$node_name', '$===', '$convert_inline_quoted', '$convert_paragraph', '$convert_inline_anchor', '$convert_section', '$convert_listing', '$convert_literal', '$convert_ulist', '$convert_olist', '$convert_dlist', '$convert_admonition', '$convert_colist', '$convert_embedded', '$convert_example', '$convert_floating_title', '$convert_image', '$convert_inline_break', '$convert_inline_button', '$convert_inline_callout', '$convert_inline_footnote', '$convert_inline_image', '$convert_inline_indexterm', '$convert_inline_kbd', '$convert_inline_menu', '$convert_open', '$convert_page_break', '$convert_preamble', '$convert_quote', '$convert_sidebar', '$convert_stem', '$convert_table', '$convert_thematic_break', '$convert_verse', '$convert_video', '$convert_document', '$convert_toc', '$convert_pass', '$convert_audio', '$empty?', '$attr', '$attr?', '$<<', '$include?', '$sub_replacements', '$gsub', '$extname', '$slice', '$length', '$doctitle', '$normalize_web_path', '$primary_stylesheet_data', '$instance', '$read_contents', '$syntax_highlighter', '$size', '$docinfo', '$id', '$sections?', '$doctype', '$role?', '$role', '$join', '$noheader', '$convert', '$converter', '$generate_manname_section', '$header?', '$notitle', '$title', '$header', '$each', '$authors', '$>', '$name', '$email', '$sub_macros', '$+', '$downcase', '$concat', '$content', '$footnotes?', '$!', '$footnotes', '$index', '$text', '$nofooter', '$docinfo?', '$[]=', '$delete_at', '$inspect', '$!=', '$to_i', '$attributes', '$document', '$sections', '$level', '$caption', '$captioned_title', '$numbered', '$<=', '$<', '$sectname', '$sectnum', '$convert_outline', '$title?', '$icon_uri', '$compact', '$media_uri', '$option?', '$append_boolean_attribute', '$style', '$items', '$blocks?', '$text?', '$chomp', '$safe', '$read_svg_contents', '$alt', '$image_uri', '$encode_attribute_value', '$append_link_constraint_attrs', '$highlight?', '$to_sym', '$format', '$*', '$count', '$start_with?', '$end_with?', '$list_marker_keyword', '$parent', '$warn', '$logger', '$context', '$error', '$new', '$columns', '$to_h', '$rows', '$colspan', '$rowspan', '$unshift', '$shift', '$
|
|
37166
|
+
Opal.add_stubs(['$register_for', '$default=', '$-', '$==', '$[]', '$init_backend_traits', '$node_name', '$===', '$convert_inline_quoted', '$convert_paragraph', '$convert_inline_anchor', '$convert_section', '$convert_listing', '$convert_literal', '$convert_ulist', '$convert_olist', '$convert_dlist', '$convert_admonition', '$convert_colist', '$convert_embedded', '$convert_example', '$convert_floating_title', '$convert_image', '$convert_inline_break', '$convert_inline_button', '$convert_inline_callout', '$convert_inline_footnote', '$convert_inline_image', '$convert_inline_indexterm', '$convert_inline_kbd', '$convert_inline_menu', '$convert_open', '$convert_page_break', '$convert_preamble', '$convert_quote', '$convert_sidebar', '$convert_stem', '$convert_table', '$convert_thematic_break', '$convert_verse', '$convert_video', '$convert_document', '$convert_toc', '$convert_pass', '$convert_audio', '$empty?', '$attr', '$attr?', '$<<', '$include?', '$sub_replacements', '$gsub', '$extname', '$slice', '$length', '$doctitle', '$normalize_web_path', '$primary_stylesheet_data', '$instance', '$read_contents', '$syntax_highlighter', '$size', '$docinfo', '$id', '$sections?', '$doctype', '$role?', '$role', '$join', '$noheader', '$convert', '$converter', '$generate_manname_section', '$header?', '$notitle', '$title', '$header', '$each', '$authors', '$>', '$name', '$email', '$sub_macros', '$+', '$downcase', '$concat', '$content', '$footnotes?', '$!', '$footnotes', '$index', '$text', '$nofooter', '$docinfo?', '$[]=', '$delete_at', '$inspect', '$!=', '$to_i', '$attributes', '$document', '$sections', '$level', '$caption', '$captioned_title', '$numbered', '$<=', '$<', '$sectname', '$sectnum', '$convert_outline', '$title?', '$icon_uri', '$compact', '$media_uri', '$option?', '$append_boolean_attribute', '$style', '$items', '$blocks?', '$text?', '$chomp', '$safe', '$read_svg_contents', '$alt', '$image_uri', '$encode_attribute_value', '$append_link_constraint_attrs', '$highlight?', '$to_sym', '$format', '$*', '$count', '$start_with?', '$end_with?', '$list_marker_keyword', '$parent', '$warn', '$logger', '$context', '$error', '$new', '$columns', '$to_h', '$rows', '$colspan', '$rowspan', '$unshift', '$shift', '$split', '$pop', '$nil_or_empty?', '$type', '$catalog', '$get_root_document', '$xreftext', '$target', '$reftext', '$chop', '$sub', '$match', '$private', '$upcase', '$nested?', '$parent_document', '$to_s', '$handles?', '$send']);
|
|
37109
37167
|
return (function($base, $parent_nesting) {
|
|
37110
37168
|
var self = $module($base, 'Asciidoctor');
|
|
37111
37169
|
|
|
@@ -37114,7 +37172,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
37114
37172
|
(function($base, $super, $parent_nesting) {
|
|
37115
37173
|
var self = $klass($base, $super, 'Html5Converter');
|
|
37116
37174
|
|
|
37117
|
-
var $nesting = [self].concat($parent_nesting), $Html5Converter_initialize$1, $Html5Converter_convert$2, $Html5Converter_convert_document$3, $Html5Converter_convert_embedded$6, $Html5Converter_convert_outline$8, $Html5Converter_convert_section$10, $Html5Converter_convert_admonition$11, $Html5Converter_convert_audio$12, $Html5Converter_convert_colist$13, $Html5Converter_convert_dlist$16, $Html5Converter_convert_example$23, $Html5Converter_convert_floating_title$24, $Html5Converter_convert_image$25, $Html5Converter_convert_listing$26, $Html5Converter_convert_literal$27, $Html5Converter_convert_stem$28, $Html5Converter_convert_olist$30, $Html5Converter_convert_open$32, $Html5Converter_convert_page_break$33, $Html5Converter_convert_paragraph$34, $Html5Converter_convert_preamble$35, $Html5Converter_convert_quote$36, $Html5Converter_convert_thematic_break$37, $Html5Converter_convert_sidebar$38, $Html5Converter_convert_table$39, $Html5Converter_convert_toc$44, $Html5Converter_convert_ulist$45, $Html5Converter_convert_verse$47, $Html5Converter_convert_video$48, $Html5Converter_convert_inline_anchor$49, $Html5Converter_convert_inline_break$50, $Html5Converter_convert_inline_button$51, $Html5Converter_convert_inline_callout$52, $Html5Converter_convert_inline_footnote$53, $Html5Converter_convert_inline_image$54, $Html5Converter_convert_inline_indexterm$
|
|
37175
|
+
var $nesting = [self].concat($parent_nesting), $Html5Converter_initialize$1, $Html5Converter_convert$2, $Html5Converter_convert_document$3, $Html5Converter_convert_embedded$6, $Html5Converter_convert_outline$8, $Html5Converter_convert_section$10, $Html5Converter_convert_admonition$11, $Html5Converter_convert_audio$12, $Html5Converter_convert_colist$13, $Html5Converter_convert_dlist$16, $Html5Converter_convert_example$23, $Html5Converter_convert_floating_title$24, $Html5Converter_convert_image$25, $Html5Converter_convert_listing$26, $Html5Converter_convert_literal$27, $Html5Converter_convert_stem$28, $Html5Converter_convert_olist$30, $Html5Converter_convert_open$32, $Html5Converter_convert_page_break$33, $Html5Converter_convert_paragraph$34, $Html5Converter_convert_preamble$35, $Html5Converter_convert_quote$36, $Html5Converter_convert_thematic_break$37, $Html5Converter_convert_sidebar$38, $Html5Converter_convert_table$39, $Html5Converter_convert_toc$44, $Html5Converter_convert_ulist$45, $Html5Converter_convert_verse$47, $Html5Converter_convert_video$48, $Html5Converter_convert_inline_anchor$49, $Html5Converter_convert_inline_break$50, $Html5Converter_convert_inline_button$51, $Html5Converter_convert_inline_callout$52, $Html5Converter_convert_inline_footnote$53, $Html5Converter_convert_inline_image$54, $Html5Converter_convert_inline_indexterm$55, $Html5Converter_convert_inline_kbd$56, $Html5Converter_convert_inline_menu$57, $Html5Converter_convert_inline_quoted$58, $Html5Converter_read_svg_contents$59, $Html5Converter_append_boolean_attribute$61, $Html5Converter_append_link_constraint_attrs$62, $Html5Converter_encode_attribute_value$63, $Html5Converter_generate_manname_section$64, $Html5Converter_get_root_document$65, $Html5Converter_method_missing$66, $Html5Converter_respond_to_missing$ques$67, $writer = nil;
|
|
37118
37176
|
|
|
37119
37177
|
self.$$prototype.void_element_slash = self.$$prototype.xml_mode = self.$$prototype.refs = self.$$prototype.resolving_xref = nil;
|
|
37120
37178
|
|
|
@@ -37951,7 +38009,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
37951
38009
|
}, $Html5Converter_convert_floating_title$24.$$arity = 1);
|
|
37952
38010
|
|
|
37953
38011
|
Opal.def(self, '$convert_image', $Html5Converter_convert_image$25 = function $$convert_image(node) {
|
|
37954
|
-
var $a, $b,
|
|
38012
|
+
var $a, $b, self = this, target = nil, width_attr = nil, height_attr = nil, img = nil, fallback = nil, id_attr = nil, classes = nil, class_attr = nil, title_el = nil;
|
|
37955
38013
|
|
|
37956
38014
|
|
|
37957
38015
|
target = node.$attr("target");
|
|
@@ -37965,18 +38023,23 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
37965
38023
|
} else {
|
|
37966
38024
|
return ""
|
|
37967
38025
|
}; return nil; })();
|
|
37968
|
-
if ($truthy(($truthy($a = ($truthy($b =
|
|
37969
|
-
if ($truthy(
|
|
38026
|
+
if ($truthy(($truthy($a = ($truthy($b = node['$attr?']("format", "svg")) ? $b : target['$include?'](".svg"))) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $a))) {
|
|
38027
|
+
if ($truthy(node['$option?']("inline"))) {
|
|
37970
38028
|
img = ($truthy($a = self.$read_svg_contents(node, target)) ? $a : "" + "<span class=\"alt\">" + (node.$alt()) + "</span>")
|
|
37971
|
-
} else if ($truthy(
|
|
38029
|
+
} else if ($truthy(node['$option?']("interactive"))) {
|
|
37972
38030
|
|
|
37973
38031
|
fallback = (function() {if ($truthy(node['$attr?']("fallback"))) {
|
|
37974
38032
|
return "" + "<img src=\"" + (node.$image_uri(node.$attr("fallback"))) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">"
|
|
37975
38033
|
} else {
|
|
37976
38034
|
return "" + "<span class=\"alt\">" + (node.$alt()) + "</span>"
|
|
37977
38035
|
}; return nil; })();
|
|
37978
|
-
img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (width_attr) + (height_attr) + ">" + (fallback) + "</object>";
|
|
37979
|
-
|
|
38036
|
+
img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (width_attr) + (height_attr) + ">" + (fallback) + "</object>";
|
|
38037
|
+
} else {
|
|
38038
|
+
img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">"
|
|
38039
|
+
}
|
|
38040
|
+
} else {
|
|
38041
|
+
img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">"
|
|
38042
|
+
};
|
|
37980
38043
|
if ($truthy(node['$attr?']("link"))) {
|
|
37981
38044
|
img = "" + "<a class=\"image\" href=\"" + (node.$attr("link")) + "\"" + (self.$append_link_constraint_attrs(node).$join()) + ">" + (img) + "</a>"};
|
|
37982
38045
|
id_attr = (function() {if ($truthy(node.$id())) {
|
|
@@ -38359,7 +38422,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38359
38422
|
}, $Html5Converter_convert_sidebar$38.$$arity = 1);
|
|
38360
38423
|
|
|
38361
38424
|
Opal.def(self, '$convert_table', $Html5Converter_convert_table$39 = function $$convert_table(node) {
|
|
38362
|
-
var $a, $$40, $$41, self = this, result = nil, id_attribute = nil, frame = nil, classes = nil, stripes = nil,
|
|
38425
|
+
var $a, $$40, $$41, self = this, result = nil, id_attribute = nil, frame = nil, classes = nil, stripes = nil, style_attribute = nil, autowidth = nil, tablewidth = nil, role = nil, class_attribute = nil, slash = nil;
|
|
38363
38426
|
|
|
38364
38427
|
|
|
38365
38428
|
result = [];
|
|
@@ -38373,24 +38436,19 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38373
38436
|
classes = ["tableblock", "" + "frame-" + (frame), "" + "grid-" + (node.$attr("grid", "all", "table-grid"))];
|
|
38374
38437
|
if ($truthy((stripes = node.$attr("stripes", nil, "table-stripes")))) {
|
|
38375
38438
|
classes['$<<']("" + "stripes-" + (stripes))};
|
|
38376
|
-
|
|
38439
|
+
style_attribute = "";
|
|
38377
38440
|
if ($truthy(($truthy($a = (autowidth = node['$option?']("autowidth"))) ? node['$attr?']("width")['$!']() : $a))) {
|
|
38378
38441
|
classes['$<<']("fit-content")
|
|
38379
38442
|
} else if ((tablewidth = node.$attr("tablepcwidth"))['$=='](100)) {
|
|
38380
38443
|
classes['$<<']("stretch")
|
|
38381
38444
|
} else {
|
|
38382
|
-
|
|
38445
|
+
style_attribute = "" + " style=\"width: " + (tablewidth) + "%;\""
|
|
38383
38446
|
};
|
|
38384
38447
|
if ($truthy(node['$attr?']("float"))) {
|
|
38385
38448
|
classes['$<<'](node.$attr("float"))};
|
|
38386
38449
|
if ($truthy((role = node.$role()))) {
|
|
38387
38450
|
classes['$<<'](role)};
|
|
38388
38451
|
class_attribute = "" + " class=\"" + (classes.$join(" ")) + "\"";
|
|
38389
|
-
style_attribute = (function() {if ($truthy(styles['$empty?']())) {
|
|
38390
|
-
return ""
|
|
38391
|
-
} else {
|
|
38392
|
-
return "" + " style=\"" + (styles.$join(" ")) + "\""
|
|
38393
|
-
}; return nil; })();
|
|
38394
38452
|
result['$<<']("" + "<table" + (id_attribute) + (class_attribute) + (style_attribute) + ">");
|
|
38395
38453
|
if ($truthy(node['$title?']())) {
|
|
38396
38454
|
result['$<<']("" + "<caption class=\"title\">" + (node.$captioned_title()) + "</caption>")};
|
|
@@ -38654,7 +38712,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38654
38712
|
}, $Html5Converter_convert_verse$47.$$arity = 1);
|
|
38655
38713
|
|
|
38656
38714
|
Opal.def(self, '$convert_video', $Html5Converter_convert_video$48 = function $$convert_video(node) {
|
|
38657
|
-
var $a, $b, self = this, xml = nil, id_attribute = nil, classes = nil, class_attribute = nil, title_element = nil, width_attribute = nil, height_attribute = nil, $case = nil, asset_uri_scheme = nil, start_anchor = nil, delimiter = nil, autoplay_param = nil, loop_param = nil, muted_param = nil, rel_param_val = nil, start_param = nil, end_param = nil, has_loop_param = nil, mute_param = nil, controls_param = nil, fs_param = nil, fs_attribute = nil, modest_param = nil, theme_param = nil, hl_param = nil,
|
|
38715
|
+
var $a, $b, self = this, xml = nil, id_attribute = nil, classes = nil, class_attribute = nil, title_element = nil, width_attribute = nil, height_attribute = nil, $case = nil, asset_uri_scheme = nil, start_anchor = nil, delimiter = nil, target = nil, hash = nil, hash_param = nil, autoplay_param = nil, loop_param = nil, muted_param = nil, rel_param_val = nil, start_param = nil, end_param = nil, has_loop_param = nil, mute_param = nil, controls_param = nil, fs_param = nil, fs_attribute = nil, modest_param = nil, theme_param = nil, hl_param = nil, list = nil, list_param = nil, playlist = nil, poster_attribute = nil, val = nil, preload_attribute = nil, start_t = nil, end_t = nil, time_anchor = nil;
|
|
38658
38716
|
|
|
38659
38717
|
|
|
38660
38718
|
xml = self.xml_mode;
|
|
@@ -38698,6 +38756,12 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38698
38756
|
return ""
|
|
38699
38757
|
}; return nil; })();
|
|
38700
38758
|
delimiter = ["?"];
|
|
38759
|
+
$b = node.$attr("target").$split("/", 2), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (hash = ($a[1] == null ? nil : $a[1])), $b;
|
|
38760
|
+
hash_param = (function() {if ($truthy((hash = ($truthy($a = hash) ? $a : node.$attr("hash"))))) {
|
|
38761
|
+
return "" + (($truthy($a = delimiter.$pop()) ? $a : "&")) + "h=" + (hash)
|
|
38762
|
+
} else {
|
|
38763
|
+
return ""
|
|
38764
|
+
}; return nil; })();
|
|
38701
38765
|
autoplay_param = (function() {if ($truthy(node['$option?']("autoplay"))) {
|
|
38702
38766
|
return "" + (($truthy($a = delimiter.$pop()) ? $a : "&")) + "autoplay=1"
|
|
38703
38767
|
} else {
|
|
@@ -38713,7 +38777,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38713
38777
|
} else {
|
|
38714
38778
|
return ""
|
|
38715
38779
|
}; return nil; })();
|
|
38716
|
-
return "" + "<div" + (id_attribute) + (class_attribute) + ">" + (title_element) + "\n" + "<div class=\"content\">\n" + "<iframe" + (width_attribute) + (height_attribute) + " src=\"" + (asset_uri_scheme) + "//player.vimeo.com/video/" + (
|
|
38780
|
+
return "" + "<div" + (id_attribute) + (class_attribute) + ">" + (title_element) + "\n" + "<div class=\"content\">\n" + "<iframe" + (width_attribute) + (height_attribute) + " src=\"" + (asset_uri_scheme) + "//player.vimeo.com/video/" + (target) + (hash_param) + (autoplay_param) + (loop_param) + (muted_param) + (start_anchor) + "\" frameborder=\"0\"" + ((function() {if ($truthy(node['$option?']("nofullscreen"))) {
|
|
38717
38781
|
return ""
|
|
38718
38782
|
} else {
|
|
38719
38783
|
|
|
@@ -38790,7 +38854,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38790
38854
|
|
|
38791
38855
|
$b = target.$split(",", 2), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (playlist = ($a[1] == null ? nil : $a[1])), $b;
|
|
38792
38856
|
if ($truthy((playlist = ($truthy($a = playlist) ? $a : node.$attr("playlist"))))) {
|
|
38793
|
-
list_param = "" + "&playlist=" + (playlist)
|
|
38857
|
+
list_param = "" + "&playlist=" + (target) + "," + (playlist)
|
|
38794
38858
|
} else {
|
|
38795
38859
|
list_param = (function() {if ($truthy(has_loop_param)) {
|
|
38796
38860
|
return "" + "&playlist=" + (target)
|
|
@@ -38966,87 +39030,85 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38966
39030
|
}, $Html5Converter_convert_inline_footnote$53.$$arity = 1);
|
|
38967
39031
|
|
|
38968
39032
|
Opal.def(self, '$convert_inline_image', $Html5Converter_convert_inline_image$54 = function $$convert_inline_image(node) {
|
|
38969
|
-
var $a, $b,
|
|
38970
|
-
|
|
38971
|
-
|
|
38972
|
-
|
|
38973
|
-
|
|
38974
|
-
|
|
38975
|
-
|
|
38976
|
-
|
|
38977
|
-
|
|
38978
|
-
|
|
38979
|
-
if (
|
|
38980
|
-
|
|
38981
|
-
}
|
|
39033
|
+
var $a, $b, self = this, target = nil, type = nil, icons = nil, i_class_attr_val = nil, attrs = nil, img = nil, fallback = nil, class_attr_val = nil, role = nil;
|
|
39034
|
+
|
|
39035
|
+
|
|
39036
|
+
target = node.$target();
|
|
39037
|
+
if ((type = ($truthy($a = node.$type()) ? $a : "image"))['$==']("icon")) {
|
|
39038
|
+
if ((icons = node.$document().$attr("icons"))['$==']("font")) {
|
|
39039
|
+
|
|
39040
|
+
i_class_attr_val = "" + "fa fa-" + (target);
|
|
39041
|
+
if ($truthy(node['$attr?']("size"))) {
|
|
39042
|
+
i_class_attr_val = "" + (i_class_attr_val) + " fa-" + (node.$attr("size"))};
|
|
39043
|
+
if ($truthy(node['$attr?']("flip"))) {
|
|
39044
|
+
i_class_attr_val = "" + (i_class_attr_val) + " fa-flip-" + (node.$attr("flip"))
|
|
39045
|
+
} else if ($truthy(node['$attr?']("rotate"))) {
|
|
39046
|
+
i_class_attr_val = "" + (i_class_attr_val) + " fa-rotate-" + (node.$attr("rotate"))};
|
|
39047
|
+
attrs = (function() {if ($truthy(node['$attr?']("title"))) {
|
|
39048
|
+
return "" + " title=\"" + (node.$attr("title")) + "\""
|
|
39049
|
+
} else {
|
|
39050
|
+
return ""
|
|
39051
|
+
}; return nil; })();
|
|
39052
|
+
img = "" + "<i class=\"" + (i_class_attr_val) + "\"" + (attrs) + "></i>";
|
|
39053
|
+
} else if ($truthy(icons)) {
|
|
38982
39054
|
|
|
38983
|
-
|
|
38984
|
-
|
|
38985
|
-
};
|
|
38986
|
-
if ($truthy(node['$attr?'](key))) {
|
|
38987
|
-
return (class_attr_val = "" + (class_attr_val) + " " + (prefix) + (node.$attr(key)))
|
|
39055
|
+
attrs = (function() {if ($truthy(node['$attr?']("width"))) {
|
|
39056
|
+
return "" + " width=\"" + (node.$attr("width")) + "\""
|
|
38988
39057
|
} else {
|
|
38989
|
-
return
|
|
38990
|
-
};
|
|
38991
|
-
|
|
38992
|
-
|
|
39058
|
+
return ""
|
|
39059
|
+
}; return nil; })();
|
|
39060
|
+
if ($truthy(node['$attr?']("height"))) {
|
|
39061
|
+
attrs = "" + (attrs) + " height=\"" + (node.$attr("height")) + "\""};
|
|
39062
|
+
if ($truthy(node['$attr?']("title"))) {
|
|
39063
|
+
attrs = "" + (attrs) + " title=\"" + (node.$attr("title")) + "\""};
|
|
39064
|
+
img = "" + "<img src=\"" + (node.$icon_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">";
|
|
38993
39065
|
} else {
|
|
38994
|
-
|
|
38995
|
-
}
|
|
38996
|
-
img = "" + "<i class=\"" + (class_attr_val) + "\"" + (title_attr) + "></i>";
|
|
38997
|
-
} else if ($truthy((($a = type['$==']("icon")) ? node.$document()['$attr?']("icons")['$!']() : type['$==']("icon")))) {
|
|
38998
|
-
img = "" + "[" + (node.$alt()) + "]"
|
|
39066
|
+
img = "" + "[" + (node.$alt()) + "]"
|
|
39067
|
+
}
|
|
38999
39068
|
} else {
|
|
39000
39069
|
|
|
39001
|
-
|
|
39002
|
-
|
|
39003
|
-
if ($truthy(node['$attr?']("width"))) {
|
|
39004
|
-
attrs['$<<']("" + " width=\"" + (node.$attr("width")) + "\"")};
|
|
39005
|
-
if ($truthy(node['$attr?']("height"))) {
|
|
39006
|
-
attrs['$<<']("" + " height=\"" + (node.$attr("height")) + "\"")};
|
|
39007
|
-
if ($truthy(node['$attr?']("title"))) {
|
|
39008
|
-
attrs['$<<']("" + " title=\"" + (node.$attr("title")) + "\"")};
|
|
39009
|
-
attrs = (function() {if ($truthy(attrs['$empty?']())) {
|
|
39010
|
-
return ""
|
|
39070
|
+
attrs = (function() {if ($truthy(node['$attr?']("width"))) {
|
|
39071
|
+
return "" + " width=\"" + (node.$attr("width")) + "\""
|
|
39011
39072
|
} else {
|
|
39012
|
-
return
|
|
39073
|
+
return ""
|
|
39013
39074
|
}; return nil; })();
|
|
39014
|
-
if ($truthy(
|
|
39015
|
-
|
|
39075
|
+
if ($truthy(node['$attr?']("height"))) {
|
|
39076
|
+
attrs = "" + (attrs) + " height=\"" + (node.$attr("height")) + "\""};
|
|
39077
|
+
if ($truthy(node['$attr?']("title"))) {
|
|
39078
|
+
attrs = "" + (attrs) + " title=\"" + (node.$attr("title")) + "\""};
|
|
39079
|
+
if ($truthy(($truthy($a = ($truthy($b = node['$attr?']("format", "svg")) ? $b : target['$include?'](".svg"))) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $a))) {
|
|
39080
|
+
if ($truthy(node['$option?']("inline"))) {
|
|
39016
39081
|
img = ($truthy($a = self.$read_svg_contents(node, target)) ? $a : "" + "<span class=\"alt\">" + (node.$alt()) + "</span>")
|
|
39017
|
-
} else if ($truthy(
|
|
39082
|
+
} else if ($truthy(node['$option?']("interactive"))) {
|
|
39018
39083
|
|
|
39019
39084
|
fallback = (function() {if ($truthy(node['$attr?']("fallback"))) {
|
|
39020
39085
|
return "" + "<img src=\"" + (node.$image_uri(node.$attr("fallback"))) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">"
|
|
39021
39086
|
} else {
|
|
39022
39087
|
return "" + "<span class=\"alt\">" + (node.$alt()) + "</span>"
|
|
39023
39088
|
}; return nil; })();
|
|
39024
|
-
img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (attrs) + ">" + (fallback) + "</object>";
|
|
39025
|
-
|
|
39026
|
-
|
|
39027
|
-
|
|
39089
|
+
img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (attrs) + ">" + (fallback) + "</object>";
|
|
39090
|
+
} else {
|
|
39091
|
+
img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">"
|
|
39092
|
+
}
|
|
39028
39093
|
} else {
|
|
39029
|
-
|
|
39030
|
-
|
|
39031
|
-
}; return nil; })()) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">");
|
|
39094
|
+
img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">"
|
|
39095
|
+
};
|
|
39032
39096
|
};
|
|
39033
39097
|
if ($truthy(node['$attr?']("link"))) {
|
|
39034
39098
|
img = "" + "<a class=\"image\" href=\"" + (node.$attr("link")) + "\"" + (self.$append_link_constraint_attrs(node).$join()) + ">" + (img) + "</a>"};
|
|
39099
|
+
class_attr_val = type;
|
|
39035
39100
|
if ($truthy((role = node.$role()))) {
|
|
39036
|
-
if ($truthy(node['$attr?']("float"))) {
|
|
39037
|
-
|
|
39101
|
+
class_attr_val = (function() {if ($truthy(node['$attr?']("float"))) {
|
|
39102
|
+
return "" + (class_attr_val) + " " + (node.$attr("float")) + " " + (role)
|
|
39038
39103
|
} else {
|
|
39039
|
-
|
|
39040
|
-
}
|
|
39104
|
+
return "" + (class_attr_val) + " " + (role)
|
|
39105
|
+
}; return nil; })()
|
|
39041
39106
|
} else if ($truthy(node['$attr?']("float"))) {
|
|
39042
|
-
class_attr_val = "" + (
|
|
39043
|
-
} else {
|
|
39044
|
-
class_attr_val = type
|
|
39045
|
-
};
|
|
39107
|
+
class_attr_val = "" + (class_attr_val) + " " + (node.$attr("float"))};
|
|
39046
39108
|
return "" + "<span class=\"" + (class_attr_val) + "\">" + (img) + "</span>";
|
|
39047
39109
|
}, $Html5Converter_convert_inline_image$54.$$arity = 1);
|
|
39048
39110
|
|
|
39049
|
-
Opal.def(self, '$convert_inline_indexterm', $Html5Converter_convert_inline_indexterm$
|
|
39111
|
+
Opal.def(self, '$convert_inline_indexterm', $Html5Converter_convert_inline_indexterm$55 = function $$convert_inline_indexterm(node) {
|
|
39050
39112
|
var self = this;
|
|
39051
39113
|
|
|
39052
39114
|
if (node.$type()['$==']("visible")) {
|
|
@@ -39054,9 +39116,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39054
39116
|
} else {
|
|
39055
39117
|
return ""
|
|
39056
39118
|
}
|
|
39057
|
-
}, $Html5Converter_convert_inline_indexterm$
|
|
39119
|
+
}, $Html5Converter_convert_inline_indexterm$55.$$arity = 1);
|
|
39058
39120
|
|
|
39059
|
-
Opal.def(self, '$convert_inline_kbd', $Html5Converter_convert_inline_kbd$
|
|
39121
|
+
Opal.def(self, '$convert_inline_kbd', $Html5Converter_convert_inline_kbd$56 = function $$convert_inline_kbd(node) {
|
|
39060
39122
|
var self = this, keys = nil;
|
|
39061
39123
|
|
|
39062
39124
|
if ((keys = node.$attr("keys")).$size()['$=='](1)) {
|
|
@@ -39064,9 +39126,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39064
39126
|
} else {
|
|
39065
39127
|
return "" + "<span class=\"keyseq\"><kbd>" + (keys.$join("</kbd>+<kbd>")) + "</kbd></span>"
|
|
39066
39128
|
}
|
|
39067
|
-
}, $Html5Converter_convert_inline_kbd$
|
|
39129
|
+
}, $Html5Converter_convert_inline_kbd$56.$$arity = 1);
|
|
39068
39130
|
|
|
39069
|
-
Opal.def(self, '$convert_inline_menu', $Html5Converter_convert_inline_menu$
|
|
39131
|
+
Opal.def(self, '$convert_inline_menu', $Html5Converter_convert_inline_menu$57 = function $$convert_inline_menu(node) {
|
|
39070
39132
|
var self = this, caret = nil, submenu_joiner = nil, menu = nil, submenus = nil, menuitem = nil;
|
|
39071
39133
|
|
|
39072
39134
|
|
|
@@ -39086,9 +39148,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39086
39148
|
} else {
|
|
39087
39149
|
return "" + "<span class=\"menuseq\"><b class=\"menu\">" + (menu) + "</b>" + (caret) + "<b class=\"submenu\">" + (submenus.$join(submenu_joiner)) + "</b>" + (caret) + "<b class=\"menuitem\">" + (node.$attr("menuitem")) + "</b></span>"
|
|
39088
39150
|
};
|
|
39089
|
-
}, $Html5Converter_convert_inline_menu$
|
|
39151
|
+
}, $Html5Converter_convert_inline_menu$57.$$arity = 1);
|
|
39090
39152
|
|
|
39091
|
-
Opal.def(self, '$convert_inline_quoted', $Html5Converter_convert_inline_quoted$
|
|
39153
|
+
Opal.def(self, '$convert_inline_quoted', $Html5Converter_convert_inline_quoted$58 = function $$convert_inline_quoted(node) {
|
|
39092
39154
|
var $a, $b, self = this, open = nil, close = nil, tag = nil, class_attr = nil;
|
|
39093
39155
|
|
|
39094
39156
|
|
|
@@ -39114,10 +39176,10 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39114
39176
|
} else {
|
|
39115
39177
|
return "" + (open) + (node.$text()) + (close)
|
|
39116
39178
|
};
|
|
39117
|
-
}, $Html5Converter_convert_inline_quoted$
|
|
39179
|
+
}, $Html5Converter_convert_inline_quoted$58.$$arity = 1);
|
|
39118
39180
|
|
|
39119
|
-
Opal.def(self, '$read_svg_contents', $Html5Converter_read_svg_contents$
|
|
39120
|
-
var $$
|
|
39181
|
+
Opal.def(self, '$read_svg_contents', $Html5Converter_read_svg_contents$59 = function $$read_svg_contents(node, target) {
|
|
39182
|
+
var $$60, self = this, svg = nil, old_start_tag = nil, new_start_tag = nil, start_tag_match = nil;
|
|
39121
39183
|
|
|
39122
39184
|
|
|
39123
39185
|
if ($truthy((svg = node.$read_contents(target, $hash2(["start", "normalize", "label", "warn_if_empty"], {"start": node.$document().$attr("imagesdir"), "normalize": true, "label": "SVG", "warn_if_empty": true}))))) {
|
|
@@ -39129,7 +39191,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39129
39191
|
svg = svg.$sub($$($nesting, 'SvgPreambleRx'), "")
|
|
39130
39192
|
};
|
|
39131
39193
|
old_start_tag = (new_start_tag = (start_tag_match = nil));
|
|
39132
|
-
$send(["width", "height"], 'each', [], ($$
|
|
39194
|
+
$send(["width", "height"], 'each', [], ($$60 = function(dim){var self = $$60.$$s || this, $a, $b;
|
|
39133
39195
|
|
|
39134
39196
|
|
|
39135
39197
|
|
|
@@ -39147,14 +39209,14 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39147
39209
|
return nil;};
|
|
39148
39210
|
new_start_tag = (old_start_tag = start_tag_match['$[]'](0)).$gsub($$($nesting, 'DimensionAttributeRx'), "");
|
|
39149
39211
|
};
|
|
39150
|
-
return (new_start_tag = "" + (new_start_tag.$chop()) + " " + (dim) + "=\"" + (node.$attr(dim)) + "\">");}, $$
|
|
39212
|
+
return (new_start_tag = "" + (new_start_tag.$chop()) + " " + (dim) + "=\"" + (node.$attr(dim)) + "\">");}, $$60.$$s = self, $$60.$$arity = 1, $$60));
|
|
39151
39213
|
if ($truthy(new_start_tag)) {
|
|
39152
39214
|
svg = "" + (new_start_tag) + (svg['$[]'](Opal.Range.$new(old_start_tag.$length(), -1, false)))};};
|
|
39153
39215
|
return svg;
|
|
39154
|
-
}, $Html5Converter_read_svg_contents$
|
|
39216
|
+
}, $Html5Converter_read_svg_contents$59.$$arity = 2);
|
|
39155
39217
|
self.$private();
|
|
39156
39218
|
|
|
39157
|
-
Opal.def(self, '$append_boolean_attribute', $Html5Converter_append_boolean_attribute$
|
|
39219
|
+
Opal.def(self, '$append_boolean_attribute', $Html5Converter_append_boolean_attribute$61 = function $$append_boolean_attribute(name, xml) {
|
|
39158
39220
|
var self = this;
|
|
39159
39221
|
|
|
39160
39222
|
if ($truthy(xml)) {
|
|
@@ -39162,9 +39224,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39162
39224
|
} else {
|
|
39163
39225
|
return "" + " " + (name)
|
|
39164
39226
|
}
|
|
39165
|
-
}, $Html5Converter_append_boolean_attribute$
|
|
39227
|
+
}, $Html5Converter_append_boolean_attribute$61.$$arity = 2);
|
|
39166
39228
|
|
|
39167
|
-
Opal.def(self, '$append_link_constraint_attrs', $Html5Converter_append_link_constraint_attrs$
|
|
39229
|
+
Opal.def(self, '$append_link_constraint_attrs', $Html5Converter_append_link_constraint_attrs$62 = function $$append_link_constraint_attrs(node, attrs) {
|
|
39168
39230
|
var $a, self = this, rel = nil, window = nil;
|
|
39169
39231
|
|
|
39170
39232
|
|
|
@@ -39186,9 +39248,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39186
39248
|
} else if ($truthy(rel)) {
|
|
39187
39249
|
attrs['$<<']("" + " rel=\"" + (rel) + "\"")};
|
|
39188
39250
|
return attrs;
|
|
39189
|
-
}, $Html5Converter_append_link_constraint_attrs$
|
|
39251
|
+
}, $Html5Converter_append_link_constraint_attrs$62.$$arity = -2);
|
|
39190
39252
|
|
|
39191
|
-
Opal.def(self, '$encode_attribute_value', $Html5Converter_encode_attribute_value$
|
|
39253
|
+
Opal.def(self, '$encode_attribute_value', $Html5Converter_encode_attribute_value$63 = function $$encode_attribute_value(val) {
|
|
39192
39254
|
var self = this;
|
|
39193
39255
|
|
|
39194
39256
|
if ($truthy(val['$include?']("\""))) {
|
|
@@ -39197,9 +39259,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39197
39259
|
} else {
|
|
39198
39260
|
return val
|
|
39199
39261
|
}
|
|
39200
|
-
}, $Html5Converter_encode_attribute_value$
|
|
39262
|
+
}, $Html5Converter_encode_attribute_value$63.$$arity = 1);
|
|
39201
39263
|
|
|
39202
|
-
Opal.def(self, '$generate_manname_section', $Html5Converter_generate_manname_section$
|
|
39264
|
+
Opal.def(self, '$generate_manname_section', $Html5Converter_generate_manname_section$64 = function $$generate_manname_section(node) {
|
|
39203
39265
|
var $a, self = this, manname_title = nil, next_section = nil, next_section_title = nil, manname_id_attr = nil, manname_id = nil;
|
|
39204
39266
|
|
|
39205
39267
|
|
|
@@ -39212,9 +39274,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39212
39274
|
return ""
|
|
39213
39275
|
}; return nil; })();
|
|
39214
39276
|
return "" + "<h2" + (manname_id_attr) + ">" + (manname_title) + "</h2>\n" + "<div class=\"sectionbody\">\n" + "<p>" + (node.$attr("mannames").$join(", ")) + " - " + (node.$attr("manpurpose")) + "</p>\n" + "</div>";
|
|
39215
|
-
}, $Html5Converter_generate_manname_section$
|
|
39277
|
+
}, $Html5Converter_generate_manname_section$64.$$arity = 1);
|
|
39216
39278
|
|
|
39217
|
-
Opal.def(self, '$get_root_document', $Html5Converter_get_root_document$
|
|
39279
|
+
Opal.def(self, '$get_root_document', $Html5Converter_get_root_document$65 = function $$get_root_document(node) {
|
|
39218
39280
|
var $a, self = this;
|
|
39219
39281
|
|
|
39220
39282
|
|
|
@@ -39222,12 +39284,12 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39222
39284
|
node = node.$parent_document()
|
|
39223
39285
|
};
|
|
39224
39286
|
return node;
|
|
39225
|
-
}, $Html5Converter_get_root_document$
|
|
39287
|
+
}, $Html5Converter_get_root_document$65.$$arity = 1);
|
|
39226
39288
|
|
|
39227
|
-
Opal.def(self, '$method_missing', $Html5Converter_method_missing$
|
|
39228
|
-
var $post_args, args, $b, $iter = $Html5Converter_method_missing$
|
|
39289
|
+
Opal.def(self, '$method_missing', $Html5Converter_method_missing$66 = function $$method_missing(id, $a) {
|
|
39290
|
+
var $post_args, args, $b, $iter = $Html5Converter_method_missing$66.$$p, $yield = $iter || nil, self = this, name = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
39229
39291
|
|
|
39230
|
-
if ($iter) $Html5Converter_method_missing$
|
|
39292
|
+
if ($iter) $Html5Converter_method_missing$66.$$p = null;
|
|
39231
39293
|
// Prepare super implicit arguments
|
|
39232
39294
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
39233
39295
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
@@ -39241,10 +39303,10 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39241
39303
|
|
|
39242
39304
|
return $send(self, 'send', ["" + "convert_" + (name)].concat(Opal.to_a(args)));
|
|
39243
39305
|
} else {
|
|
39244
|
-
return $send(self, Opal.find_super_dispatcher(self, 'method_missing', $Html5Converter_method_missing$
|
|
39306
|
+
return $send(self, Opal.find_super_dispatcher(self, 'method_missing', $Html5Converter_method_missing$66, false), $zuper, $iter)
|
|
39245
39307
|
};
|
|
39246
|
-
}, $Html5Converter_method_missing$
|
|
39247
|
-
return (Opal.def(self, '$respond_to_missing?', $Html5Converter_respond_to_missing$ques$
|
|
39308
|
+
}, $Html5Converter_method_missing$66.$$arity = -2);
|
|
39309
|
+
return (Opal.def(self, '$respond_to_missing?', $Html5Converter_respond_to_missing$ques$67 = function(id, $a) {
|
|
39248
39310
|
var $post_args, options, $b, self = this, name = nil;
|
|
39249
39311
|
|
|
39250
39312
|
|
|
@@ -39253,7 +39315,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
39253
39315
|
|
|
39254
39316
|
options = $post_args;;
|
|
39255
39317
|
return ($truthy($b = (name = id.$to_s())['$start_with?']("convert_")['$!']()) ? self['$handles?'](name) : $b);
|
|
39256
|
-
}, $Html5Converter_respond_to_missing$ques$
|
|
39318
|
+
}, $Html5Converter_respond_to_missing$ques$67.$$arity = -2), nil) && 'respond_to_missing?';
|
|
39257
39319
|
})($$($nesting, 'Converter'), $$$($$($nesting, 'Converter'), 'Base'), $nesting)
|
|
39258
39320
|
})($nesting[0], $nesting)
|
|
39259
39321
|
};
|
|
@@ -40915,6 +40977,12 @@ Opal.modules["asciidoctor/js/asciidoctor_ext/document"] = function(Opal) {
|
|
|
40915
40977
|
var nil = Opal.nil
|
|
40916
40978
|
var utc_offset
|
|
40917
40979
|
var source_date_epoch
|
|
40980
|
+
var localdate
|
|
40981
|
+
var localyear
|
|
40982
|
+
var localtime
|
|
40983
|
+
var localdatetime
|
|
40984
|
+
var docdate
|
|
40985
|
+
var doctime
|
|
40918
40986
|
|
|
40919
40987
|
var getYear = function (time, utc_offset) {
|
|
40920
40988
|
return utc_offset === 0 ? time.getUTCFullYear() : time.getFullYear()
|
|
@@ -41002,6 +41070,7 @@ Opal.modules["asciidoctor/js/asciidoctor_ext/document"] = function(Opal) {
|
|
|
41002
41070
|
var mtime_hours = ('0' + (getHours(input_mtime, utc_offset))).slice(-2)
|
|
41003
41071
|
var mtime_minutes = ('0' + (input_mtime.getMinutes())).slice(-2)
|
|
41004
41072
|
var mtime_seconds = ('0' + (input_mtime.getSeconds())).slice(-2)
|
|
41073
|
+
var utc_offset_format
|
|
41005
41074
|
if (utc_offset === 0) {
|
|
41006
41075
|
utc_offset_format = 'UTC'
|
|
41007
41076
|
} else if (utc_offset > 0) {
|
|
@@ -41877,7 +41946,7 @@ AbstractBlock.prototype.setTitle = function (title) {
|
|
|
41877
41946
|
*
|
|
41878
41947
|
* If a caption has already been assigned to this block, do nothing.
|
|
41879
41948
|
*
|
|
41880
|
-
* The parts of a complete caption are:
|
|
41949
|
+
* The parts of a complete caption are: `<prefix> <number>. <title>`
|
|
41881
41950
|
* This partial caption represents the part the precedes the title.
|
|
41882
41951
|
*
|
|
41883
41952
|
* @param {string} value - the String caption to assign to this block or nil to use document attribute.
|
|
@@ -46655,6 +46724,21 @@ ConverterFactory.register = function (converter, backends) {
|
|
|
46655
46724
|
var bridgeComposedMethodToInstance = function (obj, instance) {
|
|
46656
46725
|
bridgeMethodToInstance(obj, instance, '$composed', 'composed')
|
|
46657
46726
|
}
|
|
46727
|
+
var bridgeEqEqMethodToInstance = function (obj, instance) {
|
|
46728
|
+
bridgeMethodToInstance(obj, instance, '$==', '==', function (other) {
|
|
46729
|
+
return instance === other
|
|
46730
|
+
})
|
|
46731
|
+
}
|
|
46732
|
+
var bridgeSendMethodToInstance = function (obj, instance) {
|
|
46733
|
+
bridgeMethodToInstance(obj, instance, '$send', 'send', function (symbol) {
|
|
46734
|
+
var args = Array.prototype.slice.call(arguments, 1)
|
|
46735
|
+
var func = instance['$' + symbol]
|
|
46736
|
+
if (func) {
|
|
46737
|
+
return func.apply(instance, args)
|
|
46738
|
+
}
|
|
46739
|
+
throw new Error(`undefined method \`${symbol}\` for \`${instance.toString()}\``)
|
|
46740
|
+
})
|
|
46741
|
+
}
|
|
46658
46742
|
var bridgeMethodToInstance = function (obj, instance, methodName, functionName, defaultImplementation) {
|
|
46659
46743
|
if (typeof obj[methodName] === 'undefined') {
|
|
46660
46744
|
if (typeof obj[functionName] === 'function') {
|
|
@@ -46721,6 +46805,8 @@ ConverterFactory.register = function (converter, backends) {
|
|
|
46721
46805
|
}
|
|
46722
46806
|
bridgeHandlesMethodToInstance(converter, converter)
|
|
46723
46807
|
bridgeComposedMethodToInstance(converter, converter)
|
|
46808
|
+
bridgeEqEqMethodToInstance(converter, converter)
|
|
46809
|
+
bridgeSendMethodToInstance(converter, converter)
|
|
46724
46810
|
addRespondToMethod(converter)
|
|
46725
46811
|
object = converter
|
|
46726
46812
|
}
|
|
@@ -46820,7 +46906,7 @@ Html5Converter.prototype.convert = function (node, transform, opts) {
|
|
|
46820
46906
|
}
|
|
46821
46907
|
|
|
46822
46908
|
|
|
46823
|
-
var ASCIIDOCTOR_JS_VERSION = '2.2.
|
|
46909
|
+
var ASCIIDOCTOR_JS_VERSION = '2.2.6';
|
|
46824
46910
|
|
|
46825
46911
|
/**
|
|
46826
46912
|
* Get Asciidoctor.js version number.
|