@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
|
@@ -21564,9 +21564,9 @@ Opal.modules["asciidoctor/core_ext/hash/merge"] = function(Opal) {
|
|
|
21564
21564
|
function $rb_gt(lhs, rhs) {
|
|
21565
21565
|
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);
|
|
21566
21566
|
}
|
|
21567
|
-
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
|
|
21567
|
+
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;
|
|
21568
21568
|
|
|
21569
|
-
Opal.add_stubs(['$==', '$arity', '$instance_method', '$send', '$new', '$<', '$length', '$>', '$inject', '$merge', '$[]']);
|
|
21569
|
+
Opal.add_stubs(['$==', '$arity', '$instance_method', '$send', '$new', '$<', '$length', '$dup', '$>', '$inject', '$merge', '$[]']);
|
|
21570
21570
|
if ($$($nesting, 'Hash').$instance_method("merge").$arity()['$=='](1)) {
|
|
21571
21571
|
return $$($nesting, 'Hash').$send("prepend", $send($$($nesting, 'Module'), 'new', [], ($$1 = function(){var self = $$1.$$s || this, $merge$2;
|
|
21572
21572
|
|
|
@@ -21580,7 +21580,7 @@ Opal.modules["asciidoctor/core_ext/hash/merge"] = function(Opal) {
|
|
|
21580
21580
|
|
|
21581
21581
|
args = $post_args;;
|
|
21582
21582
|
if ($truthy($rb_lt((len = args.$length()), 1))) {
|
|
21583
|
-
return
|
|
21583
|
+
return self.$dup()
|
|
21584
21584
|
} else {
|
|
21585
21585
|
|
|
21586
21586
|
if ($truthy($rb_gt(len, 1))) {
|
|
@@ -24748,7 +24748,7 @@ Opal.modules["asciidoctor/version"] = function(Opal) {
|
|
|
24748
24748
|
|
|
24749
24749
|
var $nesting = [self].concat($parent_nesting);
|
|
24750
24750
|
|
|
24751
|
-
Opal.const_set($nesting[0], 'VERSION', "2.0.
|
|
24751
|
+
Opal.const_set($nesting[0], 'VERSION', "2.0.17")
|
|
24752
24752
|
})($nesting[0], $nesting)
|
|
24753
24753
|
};
|
|
24754
24754
|
|
|
@@ -25374,15 +25374,12 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
25374
25374
|
function $rb_minus(lhs, rhs) {
|
|
25375
25375
|
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);
|
|
25376
25376
|
}
|
|
25377
|
-
function $rb_gt(lhs, rhs) {
|
|
25378
|
-
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);
|
|
25379
|
-
}
|
|
25380
25377
|
function $rb_plus(lhs, rhs) {
|
|
25381
25378
|
return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs + rhs : lhs['$+'](rhs);
|
|
25382
25379
|
}
|
|
25383
25380
|
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;
|
|
25384
25381
|
|
|
25385
|
-
Opal.add_stubs(['$attr_reader', '$attr_writer', '$attr_accessor', '$==', '$===', '$level', '$file', '$lineno', '$playback_attributes', '$convert', '$converter', '$join', '$map', '$to_s', '$parent', '$parent=', '$-', '$<<', '$empty?', '
|
|
25382
|
+
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']);
|
|
25386
25383
|
return (function($base, $parent_nesting) {
|
|
25387
25384
|
var self = $module($base, 'Asciidoctor');
|
|
25388
25385
|
|
|
@@ -25393,7 +25390,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
25393
25390
|
|
|
25394
25391
|
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;
|
|
25395
25392
|
|
|
25396
|
-
self.$$prototype.source_location = self.$$prototype.document = self.$$prototype.attributes = self.$$prototype.blocks = self.$$prototype.
|
|
25393
|
+
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;
|
|
25397
25394
|
|
|
25398
25395
|
self.$attr_reader("blocks");
|
|
25399
25396
|
self.$attr_writer("caption");
|
|
@@ -25514,7 +25511,7 @@ Opal.modules["asciidoctor/abstract_block"] = function(Opal) {
|
|
|
25514
25511
|
Opal.def(self, '$sections?', $AbstractBlock_sections$ques$12 = function() {
|
|
25515
25512
|
var self = this;
|
|
25516
25513
|
|
|
25517
|
-
return
|
|
25514
|
+
return false
|
|
25518
25515
|
}, $AbstractBlock_sections$ques$12.$$arity = 0);
|
|
25519
25516
|
|
|
25520
25517
|
Opal.def(self, '$number', $AbstractBlock_number$13 = function $$number() {
|
|
@@ -26496,7 +26493,7 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
26496
26493
|
}
|
|
26497
26494
|
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;
|
|
26498
26495
|
|
|
26499
|
-
Opal.add_stubs(['$autoload', '$__dir__', '$attr_reader', '$raise', '$class', '$[]', '$sub', '$slice', '$length', '
|
|
26496
|
+
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']);
|
|
26500
26497
|
return (function($base, $parent_nesting) {
|
|
26501
26498
|
var self = $module($base, 'Asciidoctor');
|
|
26502
26499
|
|
|
@@ -26509,7 +26506,10 @@ Opal.modules["asciidoctor/converter"] = function(Opal) {
|
|
|
26509
26506
|
|
|
26510
26507
|
|
|
26511
26508
|
self.$autoload("CompositeConverter", "" + (self.$__dir__()) + "/converter/composite");
|
|
26512
|
-
|
|
26509
|
+
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
26510
|
+
} else {
|
|
26511
|
+
nil
|
|
26512
|
+
};
|
|
26513
26513
|
self.$attr_reader("backend");
|
|
26514
26514
|
|
|
26515
26515
|
Opal.def(self, '$initialize', $Converter_initialize$1 = function $$initialize(backend, opts) {
|
|
@@ -27037,7 +27037,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27037
27037
|
}
|
|
27038
27038
|
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;
|
|
27039
27039
|
|
|
27040
|
-
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', '
|
|
27040
|
+
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']);
|
|
27041
27041
|
return (function($base, $parent_nesting) {
|
|
27042
27042
|
var self = $module($base, 'Asciidoctor');
|
|
27043
27043
|
|
|
@@ -27046,9 +27046,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27046
27046
|
(function($base, $super, $parent_nesting) {
|
|
27047
27047
|
var self = $klass($base, $super, 'Document');
|
|
27048
27048
|
|
|
27049
|
-
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, $
|
|
27049
|
+
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;
|
|
27050
27050
|
|
|
27051
|
-
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;
|
|
27051
|
+
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;
|
|
27052
27052
|
|
|
27053
27053
|
Opal.const_set($nesting[0], 'ImageReference', $send($$$('::', 'Struct'), 'new', ["target", "imagesdir"], ($Document$1 = function(){var self = $Document$1.$$s || this;
|
|
27054
27054
|
|
|
@@ -27682,7 +27682,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27682
27682
|
}
|
|
27683
27683
|
}, $Document_resolve_id$18.$$arity = 1);
|
|
27684
27684
|
|
|
27685
|
-
Opal.def(self, '$
|
|
27685
|
+
Opal.def(self, '$sections?', $Document_sections$ques$22 = function() {
|
|
27686
|
+
var self = this;
|
|
27687
|
+
|
|
27688
|
+
return $rb_gt(self.next_section_index, 0)
|
|
27689
|
+
}, $Document_sections$ques$22.$$arity = 0);
|
|
27690
|
+
|
|
27691
|
+
Opal.def(self, '$footnotes?', $Document_footnotes$ques$23 = function() {
|
|
27686
27692
|
var self = this;
|
|
27687
27693
|
|
|
27688
27694
|
if ($truthy(self.catalog['$[]']("footnotes")['$empty?']())) {
|
|
@@ -27690,21 +27696,21 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27690
27696
|
} else {
|
|
27691
27697
|
return true
|
|
27692
27698
|
}
|
|
27693
|
-
}, $Document_footnotes$ques$
|
|
27699
|
+
}, $Document_footnotes$ques$23.$$arity = 0);
|
|
27694
27700
|
|
|
27695
|
-
Opal.def(self, '$footnotes', $Document_footnotes$
|
|
27701
|
+
Opal.def(self, '$footnotes', $Document_footnotes$24 = function $$footnotes() {
|
|
27696
27702
|
var self = this;
|
|
27697
27703
|
|
|
27698
27704
|
return self.catalog['$[]']("footnotes")
|
|
27699
|
-
}, $Document_footnotes$
|
|
27705
|
+
}, $Document_footnotes$24.$$arity = 0);
|
|
27700
27706
|
|
|
27701
|
-
Opal.def(self, '$callouts', $Document_callouts$
|
|
27707
|
+
Opal.def(self, '$callouts', $Document_callouts$25 = function $$callouts() {
|
|
27702
27708
|
var self = this;
|
|
27703
27709
|
|
|
27704
27710
|
return self.catalog['$[]']("callouts")
|
|
27705
|
-
}, $Document_callouts$
|
|
27711
|
+
}, $Document_callouts$25.$$arity = 0);
|
|
27706
27712
|
|
|
27707
|
-
Opal.def(self, '$nested?', $Document_nested$ques$
|
|
27713
|
+
Opal.def(self, '$nested?', $Document_nested$ques$26 = function() {
|
|
27708
27714
|
var self = this;
|
|
27709
27715
|
|
|
27710
27716
|
if ($truthy(self.parent_document)) {
|
|
@@ -27712,15 +27718,15 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27712
27718
|
} else {
|
|
27713
27719
|
return false
|
|
27714
27720
|
}
|
|
27715
|
-
}, $Document_nested$ques$
|
|
27721
|
+
}, $Document_nested$ques$26.$$arity = 0);
|
|
27716
27722
|
|
|
27717
|
-
Opal.def(self, '$embedded?', $Document_embedded$ques$
|
|
27723
|
+
Opal.def(self, '$embedded?', $Document_embedded$ques$27 = function() {
|
|
27718
27724
|
var self = this;
|
|
27719
27725
|
|
|
27720
27726
|
return self.attributes['$key?']("embedded")
|
|
27721
|
-
}, $Document_embedded$ques$
|
|
27727
|
+
}, $Document_embedded$ques$27.$$arity = 0);
|
|
27722
27728
|
|
|
27723
|
-
Opal.def(self, '$extensions?', $Document_extensions$ques$
|
|
27729
|
+
Opal.def(self, '$extensions?', $Document_extensions$ques$28 = function() {
|
|
27724
27730
|
var self = this;
|
|
27725
27731
|
|
|
27726
27732
|
if ($truthy(self.extensions)) {
|
|
@@ -27728,9 +27734,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27728
27734
|
} else {
|
|
27729
27735
|
return false
|
|
27730
27736
|
}
|
|
27731
|
-
}, $Document_extensions$ques$
|
|
27737
|
+
}, $Document_extensions$ques$28.$$arity = 0);
|
|
27732
27738
|
|
|
27733
|
-
Opal.def(self, '$source', $Document_source$
|
|
27739
|
+
Opal.def(self, '$source', $Document_source$29 = function $$source() {
|
|
27734
27740
|
var self = this;
|
|
27735
27741
|
|
|
27736
27742
|
if ($truthy(self.reader)) {
|
|
@@ -27738,9 +27744,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27738
27744
|
} else {
|
|
27739
27745
|
return nil
|
|
27740
27746
|
}
|
|
27741
|
-
}, $Document_source$
|
|
27747
|
+
}, $Document_source$29.$$arity = 0);
|
|
27742
27748
|
|
|
27743
|
-
Opal.def(self, '$source_lines', $Document_source_lines$
|
|
27749
|
+
Opal.def(self, '$source_lines', $Document_source_lines$30 = function $$source_lines() {
|
|
27744
27750
|
var self = this;
|
|
27745
27751
|
|
|
27746
27752
|
if ($truthy(self.reader)) {
|
|
@@ -27748,21 +27754,21 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27748
27754
|
} else {
|
|
27749
27755
|
return nil
|
|
27750
27756
|
}
|
|
27751
|
-
}, $Document_source_lines$
|
|
27757
|
+
}, $Document_source_lines$30.$$arity = 0);
|
|
27752
27758
|
|
|
27753
|
-
Opal.def(self, '$basebackend?', $Document_basebackend$ques$
|
|
27759
|
+
Opal.def(self, '$basebackend?', $Document_basebackend$ques$31 = function(base) {
|
|
27754
27760
|
var self = this;
|
|
27755
27761
|
|
|
27756
27762
|
return self.attributes['$[]']("basebackend")['$=='](base)
|
|
27757
|
-
}, $Document_basebackend$ques$
|
|
27763
|
+
}, $Document_basebackend$ques$31.$$arity = 1);
|
|
27758
27764
|
|
|
27759
|
-
Opal.def(self, '$title', $Document_title$
|
|
27765
|
+
Opal.def(self, '$title', $Document_title$32 = function $$title() {
|
|
27760
27766
|
var self = this;
|
|
27761
27767
|
|
|
27762
27768
|
return self.$doctitle()
|
|
27763
|
-
}, $Document_title$
|
|
27769
|
+
}, $Document_title$32.$$arity = 0);
|
|
27764
27770
|
|
|
27765
|
-
Opal.def(self, '$title=', $Document_title$eq$
|
|
27771
|
+
Opal.def(self, '$title=', $Document_title$eq$33 = function(title) {
|
|
27766
27772
|
var self = this, sect = nil, $writer = nil;
|
|
27767
27773
|
|
|
27768
27774
|
|
|
@@ -27777,9 +27783,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27777
27783
|
$writer = [title];
|
|
27778
27784
|
$send(sect, 'title=', Opal.to_a($writer));
|
|
27779
27785
|
return $writer[$rb_minus($writer["length"], 1)];;
|
|
27780
|
-
}, $Document_title$eq$
|
|
27786
|
+
}, $Document_title$eq$33.$$arity = 1);
|
|
27781
27787
|
|
|
27782
|
-
Opal.def(self, '$doctitle', $Document_doctitle$
|
|
27788
|
+
Opal.def(self, '$doctitle', $Document_doctitle$34 = function $$doctitle(opts) {
|
|
27783
27789
|
var $a, self = this, val = nil, sect = nil, separator = nil;
|
|
27784
27790
|
|
|
27785
27791
|
|
|
@@ -27803,10 +27809,10 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27803
27809
|
} else {
|
|
27804
27810
|
return val
|
|
27805
27811
|
};
|
|
27806
|
-
}, $Document_doctitle$
|
|
27812
|
+
}, $Document_doctitle$34.$$arity = -1);
|
|
27807
27813
|
Opal.alias(self, "name", "doctitle");
|
|
27808
27814
|
|
|
27809
|
-
Opal.def(self, '$xreftext', $Document_xreftext$
|
|
27815
|
+
Opal.def(self, '$xreftext', $Document_xreftext$35 = function $$xreftext(xrefstyle) {
|
|
27810
27816
|
var $a, self = this, val = nil;
|
|
27811
27817
|
|
|
27812
27818
|
|
|
@@ -27819,15 +27825,15 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27819
27825
|
} else {
|
|
27820
27826
|
return self.$title()
|
|
27821
27827
|
};
|
|
27822
|
-
}, $Document_xreftext$
|
|
27828
|
+
}, $Document_xreftext$35.$$arity = -1);
|
|
27823
27829
|
|
|
27824
|
-
Opal.def(self, '$author', $Document_author$
|
|
27830
|
+
Opal.def(self, '$author', $Document_author$36 = function $$author() {
|
|
27825
27831
|
var self = this;
|
|
27826
27832
|
|
|
27827
27833
|
return self.attributes['$[]']("author")
|
|
27828
|
-
}, $Document_author$
|
|
27834
|
+
}, $Document_author$36.$$arity = 0);
|
|
27829
27835
|
|
|
27830
|
-
Opal.def(self, '$authors', $Document_authors$
|
|
27836
|
+
Opal.def(self, '$authors', $Document_authors$37 = function $$authors() {
|
|
27831
27837
|
var $a, self = this, attrs = nil, authors = nil, num_authors = nil, idx = nil;
|
|
27832
27838
|
|
|
27833
27839
|
if ($truthy((attrs = self.attributes)['$key?']("author"))) {
|
|
@@ -27845,46 +27851,46 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27845
27851
|
} else {
|
|
27846
27852
|
return []
|
|
27847
27853
|
}
|
|
27848
|
-
}, $Document_authors$
|
|
27854
|
+
}, $Document_authors$37.$$arity = 0);
|
|
27849
27855
|
|
|
27850
|
-
Opal.def(self, '$revdate', $Document_revdate$
|
|
27856
|
+
Opal.def(self, '$revdate', $Document_revdate$38 = function $$revdate() {
|
|
27851
27857
|
var self = this;
|
|
27852
27858
|
|
|
27853
27859
|
return self.attributes['$[]']("revdate")
|
|
27854
|
-
}, $Document_revdate$
|
|
27860
|
+
}, $Document_revdate$38.$$arity = 0);
|
|
27855
27861
|
|
|
27856
|
-
Opal.def(self, '$notitle', $Document_notitle$
|
|
27862
|
+
Opal.def(self, '$notitle', $Document_notitle$39 = function $$notitle() {
|
|
27857
27863
|
var self = this;
|
|
27858
27864
|
|
|
27859
27865
|
return self.attributes['$key?']("notitle")
|
|
27860
|
-
}, $Document_notitle$
|
|
27866
|
+
}, $Document_notitle$39.$$arity = 0);
|
|
27861
27867
|
|
|
27862
|
-
Opal.def(self, '$noheader', $Document_noheader$
|
|
27868
|
+
Opal.def(self, '$noheader', $Document_noheader$40 = function $$noheader() {
|
|
27863
27869
|
var self = this;
|
|
27864
27870
|
|
|
27865
27871
|
return self.attributes['$key?']("noheader")
|
|
27866
|
-
}, $Document_noheader$
|
|
27872
|
+
}, $Document_noheader$40.$$arity = 0);
|
|
27867
27873
|
|
|
27868
|
-
Opal.def(self, '$nofooter', $Document_nofooter$
|
|
27874
|
+
Opal.def(self, '$nofooter', $Document_nofooter$41 = function $$nofooter() {
|
|
27869
27875
|
var self = this;
|
|
27870
27876
|
|
|
27871
27877
|
return self.attributes['$key?']("nofooter")
|
|
27872
|
-
}, $Document_nofooter$
|
|
27878
|
+
}, $Document_nofooter$41.$$arity = 0);
|
|
27873
27879
|
|
|
27874
|
-
Opal.def(self, '$first_section', $Document_first_section$
|
|
27875
|
-
var $a, $$
|
|
27880
|
+
Opal.def(self, '$first_section', $Document_first_section$42 = function $$first_section() {
|
|
27881
|
+
var $a, $$43, self = this;
|
|
27876
27882
|
|
|
27877
|
-
return ($truthy($a = self.header) ? $a : $send(self.blocks, 'find', [], ($$
|
|
27883
|
+
return ($truthy($a = self.header) ? $a : $send(self.blocks, 'find', [], ($$43 = function(e){var self = $$43.$$s || this;
|
|
27878
27884
|
|
|
27879
27885
|
|
|
27880
27886
|
|
|
27881
27887
|
if (e == null) {
|
|
27882
27888
|
e = nil;
|
|
27883
27889
|
};
|
|
27884
|
-
return e.$context()['$==']("section");}, $$
|
|
27885
|
-
}, $Document_first_section$
|
|
27890
|
+
return e.$context()['$==']("section");}, $$43.$$s = self, $$43.$$arity = 1, $$43)))
|
|
27891
|
+
}, $Document_first_section$42.$$arity = 0);
|
|
27886
27892
|
|
|
27887
|
-
Opal.def(self, '$header?', $Document_header$ques$
|
|
27893
|
+
Opal.def(self, '$header?', $Document_header$ques$44 = function() {
|
|
27888
27894
|
var self = this;
|
|
27889
27895
|
|
|
27890
27896
|
if ($truthy(self.header)) {
|
|
@@ -27892,13 +27898,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27892
27898
|
} else {
|
|
27893
27899
|
return false
|
|
27894
27900
|
}
|
|
27895
|
-
}, $Document_header$ques$
|
|
27901
|
+
}, $Document_header$ques$44.$$arity = 0);
|
|
27896
27902
|
Opal.alias(self, "has_header?", "header?");
|
|
27897
27903
|
|
|
27898
|
-
Opal.def(self, '$<<', $Document_$lt$lt$
|
|
27899
|
-
var $iter = $Document_$lt$lt$
|
|
27904
|
+
Opal.def(self, '$<<', $Document_$lt$lt$45 = function(block) {
|
|
27905
|
+
var $iter = $Document_$lt$lt$45.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
27900
27906
|
|
|
27901
|
-
if ($iter) $Document_$lt$lt$
|
|
27907
|
+
if ($iter) $Document_$lt$lt$45.$$p = null;
|
|
27902
27908
|
// Prepare super implicit arguments
|
|
27903
27909
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
27904
27910
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
@@ -27906,10 +27912,10 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27906
27912
|
|
|
27907
27913
|
if (block.$context()['$==']("section")) {
|
|
27908
27914
|
self.$assign_numeral(block)};
|
|
27909
|
-
return $send(self, Opal.find_super_dispatcher(self, '<<', $Document_$lt$lt$
|
|
27910
|
-
}, $Document_$lt$lt$
|
|
27915
|
+
return $send(self, Opal.find_super_dispatcher(self, '<<', $Document_$lt$lt$45, false), $zuper, $iter);
|
|
27916
|
+
}, $Document_$lt$lt$45.$$arity = 1);
|
|
27911
27917
|
|
|
27912
|
-
Opal.def(self, '$finalize_header', $Document_finalize_header$
|
|
27918
|
+
Opal.def(self, '$finalize_header', $Document_finalize_header$46 = function $$finalize_header(unrooted_attributes, header_valid) {
|
|
27913
27919
|
var self = this, $writer = nil;
|
|
27914
27920
|
|
|
27915
27921
|
|
|
@@ -27927,13 +27933,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27927
27933
|
$writer[$rb_minus($writer["length"], 1)];
|
|
27928
27934
|
};
|
|
27929
27935
|
return unrooted_attributes;
|
|
27930
|
-
}, $Document_finalize_header$
|
|
27936
|
+
}, $Document_finalize_header$46.$$arity = -2);
|
|
27931
27937
|
|
|
27932
|
-
Opal.def(self, '$playback_attributes', $Document_playback_attributes$
|
|
27933
|
-
var $$
|
|
27938
|
+
Opal.def(self, '$playback_attributes', $Document_playback_attributes$47 = function $$playback_attributes(block_attributes) {
|
|
27939
|
+
var $$48, self = this;
|
|
27934
27940
|
|
|
27935
27941
|
if ($truthy(block_attributes['$key?']("attribute_entries"))) {
|
|
27936
|
-
return $send(block_attributes['$[]']("attribute_entries"), 'each', [], ($$
|
|
27942
|
+
return $send(block_attributes['$[]']("attribute_entries"), 'each', [], ($$48 = function(entry){var self = $$48.$$s || this, name = nil, $writer = nil;
|
|
27937
27943
|
if (self.attributes == null) self.attributes = nil;
|
|
27938
27944
|
|
|
27939
27945
|
|
|
@@ -27961,13 +27967,13 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27961
27967
|
} else {
|
|
27962
27968
|
return nil
|
|
27963
27969
|
};
|
|
27964
|
-
};}, $$
|
|
27970
|
+
};}, $$48.$$s = self, $$48.$$arity = 1, $$48))
|
|
27965
27971
|
} else {
|
|
27966
27972
|
return nil
|
|
27967
27973
|
}
|
|
27968
|
-
}, $Document_playback_attributes$
|
|
27974
|
+
}, $Document_playback_attributes$47.$$arity = 1);
|
|
27969
27975
|
|
|
27970
|
-
Opal.def(self, '$restore_attributes', $Document_restore_attributes$
|
|
27976
|
+
Opal.def(self, '$restore_attributes', $Document_restore_attributes$49 = function $$restore_attributes() {
|
|
27971
27977
|
var self = this;
|
|
27972
27978
|
|
|
27973
27979
|
|
|
@@ -27976,9 +27982,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
27976
27982
|
self.catalog['$[]']("callouts").$rewind()
|
|
27977
27983
|
};
|
|
27978
27984
|
return self.attributes.$replace(self.header_attributes);
|
|
27979
|
-
}, $Document_restore_attributes$
|
|
27985
|
+
}, $Document_restore_attributes$49.$$arity = 0);
|
|
27980
27986
|
|
|
27981
|
-
Opal.def(self, '$set_attribute', $Document_set_attribute$
|
|
27987
|
+
Opal.def(self, '$set_attribute', $Document_set_attribute$50 = function $$set_attribute(name, value) {
|
|
27982
27988
|
var $a, self = this, $writer = nil, $case = nil;
|
|
27983
27989
|
|
|
27984
27990
|
|
|
@@ -28012,9 +28018,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28012
28018
|
};
|
|
28013
28019
|
return value;
|
|
28014
28020
|
};
|
|
28015
|
-
}, $Document_set_attribute$
|
|
28021
|
+
}, $Document_set_attribute$50.$$arity = -2);
|
|
28016
28022
|
|
|
28017
|
-
Opal.def(self, '$delete_attribute', $Document_delete_attribute$
|
|
28023
|
+
Opal.def(self, '$delete_attribute', $Document_delete_attribute$51 = function $$delete_attribute(name) {
|
|
28018
28024
|
var self = this;
|
|
28019
28025
|
|
|
28020
28026
|
if ($truthy(self['$attribute_locked?'](name))) {
|
|
@@ -28025,15 +28031,15 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28025
28031
|
self.attributes_modified['$<<'](name);
|
|
28026
28032
|
return true;
|
|
28027
28033
|
}
|
|
28028
|
-
}, $Document_delete_attribute$
|
|
28034
|
+
}, $Document_delete_attribute$51.$$arity = 1);
|
|
28029
28035
|
|
|
28030
|
-
Opal.def(self, '$attribute_locked?', $Document_attribute_locked$ques$
|
|
28036
|
+
Opal.def(self, '$attribute_locked?', $Document_attribute_locked$ques$52 = function(name) {
|
|
28031
28037
|
var self = this;
|
|
28032
28038
|
|
|
28033
28039
|
return self.attribute_overrides['$key?'](name)
|
|
28034
|
-
}, $Document_attribute_locked$ques$
|
|
28040
|
+
}, $Document_attribute_locked$ques$52.$$arity = 1);
|
|
28035
28041
|
|
|
28036
|
-
Opal.def(self, '$set_header_attribute', $Document_set_header_attribute$
|
|
28042
|
+
Opal.def(self, '$set_header_attribute', $Document_set_header_attribute$53 = function $$set_header_attribute(name, value, overwrite) {
|
|
28037
28043
|
var $a, self = this, attrs = nil, $writer = nil;
|
|
28038
28044
|
|
|
28039
28045
|
|
|
@@ -28056,10 +28062,10 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28056
28062
|
$writer[$rb_minus($writer["length"], 1)];;
|
|
28057
28063
|
return true;
|
|
28058
28064
|
};
|
|
28059
|
-
}, $Document_set_header_attribute$
|
|
28065
|
+
}, $Document_set_header_attribute$53.$$arity = -2);
|
|
28060
28066
|
|
|
28061
|
-
Opal.def(self, '$convert', $Document_convert$
|
|
28062
|
-
var $a, $$
|
|
28067
|
+
Opal.def(self, '$convert', $Document_convert$54 = function $$convert(opts) {
|
|
28068
|
+
var $a, $$55, self = this, $writer = nil, block = nil, output = nil, transform = nil, exts = nil;
|
|
28063
28069
|
|
|
28064
28070
|
|
|
28065
28071
|
|
|
@@ -28116,21 +28122,21 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28116
28122
|
};
|
|
28117
28123
|
if ($truthy(self.parent_document)) {
|
|
28118
28124
|
} else if ($truthy(($truthy($a = (exts = self.extensions)) ? exts['$postprocessors?']() : $a))) {
|
|
28119
|
-
$send(exts.$postprocessors(), 'each', [], ($$
|
|
28125
|
+
$send(exts.$postprocessors(), 'each', [], ($$55 = function(ext){var self = $$55.$$s || this;
|
|
28120
28126
|
|
|
28121
28127
|
|
|
28122
28128
|
|
|
28123
28129
|
if (ext == null) {
|
|
28124
28130
|
ext = nil;
|
|
28125
28131
|
};
|
|
28126
|
-
return (output = ext.$process_method()['$[]'](self, output));}, $$
|
|
28132
|
+
return (output = ext.$process_method()['$[]'](self, output));}, $$55.$$s = self, $$55.$$arity = 1, $$55))};
|
|
28127
28133
|
if ($truthy(self.timings)) {
|
|
28128
28134
|
self.timings.$record("convert")};
|
|
28129
28135
|
return output;
|
|
28130
|
-
}, $Document_convert$
|
|
28136
|
+
}, $Document_convert$54.$$arity = -1);
|
|
28131
28137
|
Opal.alias(self, "render", "convert");
|
|
28132
28138
|
|
|
28133
|
-
Opal.def(self, '$write', $Document_write$
|
|
28139
|
+
Opal.def(self, '$write', $Document_write$56 = function $$write(output, target) {
|
|
28134
28140
|
var $a, $b, self = this;
|
|
28135
28141
|
|
|
28136
28142
|
|
|
@@ -28156,23 +28162,23 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28156
28162
|
if ($truthy(self.timings)) {
|
|
28157
28163
|
self.timings.$record("write")};
|
|
28158
28164
|
return nil;
|
|
28159
|
-
}, $Document_write$
|
|
28165
|
+
}, $Document_write$56.$$arity = 2);
|
|
28160
28166
|
|
|
28161
|
-
Opal.def(self, '$content', $Document_content$
|
|
28162
|
-
var $iter = $Document_content$
|
|
28167
|
+
Opal.def(self, '$content', $Document_content$57 = function $$content() {
|
|
28168
|
+
var $iter = $Document_content$57.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
28163
28169
|
|
|
28164
|
-
if ($iter) $Document_content$
|
|
28170
|
+
if ($iter) $Document_content$57.$$p = null;
|
|
28165
28171
|
// Prepare super implicit arguments
|
|
28166
28172
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
28167
28173
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
28168
28174
|
}
|
|
28169
28175
|
|
|
28170
28176
|
self.attributes.$delete("title");
|
|
28171
|
-
return $send(self, Opal.find_super_dispatcher(self, 'content', $Document_content$
|
|
28172
|
-
}, $Document_content$
|
|
28177
|
+
return $send(self, Opal.find_super_dispatcher(self, 'content', $Document_content$57, false), $zuper, $iter);
|
|
28178
|
+
}, $Document_content$57.$$arity = 0);
|
|
28173
28179
|
|
|
28174
|
-
Opal.def(self, '$docinfo', $Document_docinfo$
|
|
28175
|
-
var $a, $$
|
|
28180
|
+
Opal.def(self, '$docinfo', $Document_docinfo$58 = function $$docinfo(location, suffix) {
|
|
28181
|
+
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;
|
|
28176
28182
|
|
|
28177
28183
|
|
|
28178
28184
|
|
|
@@ -28203,14 +28209,14 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28203
28209
|
}; return nil; })()
|
|
28204
28210
|
}
|
|
28205
28211
|
} else {
|
|
28206
|
-
docinfo = $send(docinfo.$split(","), 'map', [], ($$
|
|
28212
|
+
docinfo = $send(docinfo.$split(","), 'map', [], ($$59 = function(it){var self = $$59.$$s || this;
|
|
28207
28213
|
|
|
28208
28214
|
|
|
28209
28215
|
|
|
28210
28216
|
if (it == null) {
|
|
28211
28217
|
it = nil;
|
|
28212
28218
|
};
|
|
28213
|
-
return it.$strip();}, $$
|
|
28219
|
+
return it.$strip();}, $$59.$$s = self, $$59.$$arity = 1, $$59))
|
|
28214
28220
|
};
|
|
28215
28221
|
if ($truthy(docinfo)) {
|
|
28216
28222
|
|
|
@@ -28231,22 +28237,22 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28231
28237
|
content['$<<'](self.$apply_subs(private_docinfo, docinfo_subs))};
|
|
28232
28238
|
};};};
|
|
28233
28239
|
if ($truthy(($truthy($a = self.extensions) ? self['$docinfo_processors?'](location) : $a))) {
|
|
28234
|
-
return ($truthy($a = content) ? $a : []).$concat($send(self.docinfo_processor_extensions['$[]'](location), 'map', [], ($$
|
|
28240
|
+
return ($truthy($a = content) ? $a : []).$concat($send(self.docinfo_processor_extensions['$[]'](location), 'map', [], ($$60 = function(ext){var self = $$60.$$s || this;
|
|
28235
28241
|
|
|
28236
28242
|
|
|
28237
28243
|
|
|
28238
28244
|
if (ext == null) {
|
|
28239
28245
|
ext = nil;
|
|
28240
28246
|
};
|
|
28241
|
-
return ext.$process_method()['$[]'](self);}, $$
|
|
28247
|
+
return ext.$process_method()['$[]'](self);}, $$60.$$s = self, $$60.$$arity = 1, $$60)).$compact()).$join($$($nesting, 'LF'))
|
|
28242
28248
|
} else if ($truthy(content)) {
|
|
28243
28249
|
return content.$join($$($nesting, 'LF'))
|
|
28244
28250
|
} else {
|
|
28245
28251
|
return ""
|
|
28246
28252
|
};
|
|
28247
|
-
}, $Document_docinfo$
|
|
28253
|
+
}, $Document_docinfo$58.$$arity = -1);
|
|
28248
28254
|
|
|
28249
|
-
Opal.def(self, '$docinfo_processors?', $Document_docinfo_processors$ques$
|
|
28255
|
+
Opal.def(self, '$docinfo_processors?', $Document_docinfo_processors$ques$61 = function(location) {
|
|
28250
28256
|
var $a, self = this, $writer = nil;
|
|
28251
28257
|
|
|
28252
28258
|
|
|
@@ -28264,16 +28270,16 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28264
28270
|
$send(self.docinfo_processor_extensions, '[]=', Opal.to_a($writer));
|
|
28265
28271
|
return $writer[$rb_minus($writer["length"], 1)];
|
|
28266
28272
|
};
|
|
28267
|
-
}, $Document_docinfo_processors$ques$
|
|
28273
|
+
}, $Document_docinfo_processors$ques$61.$$arity = -1);
|
|
28268
28274
|
|
|
28269
|
-
Opal.def(self, '$to_s', $Document_to_s$
|
|
28275
|
+
Opal.def(self, '$to_s', $Document_to_s$62 = function $$to_s() {
|
|
28270
28276
|
var $a, self = this;
|
|
28271
28277
|
|
|
28272
28278
|
return "" + "#<" + (self.$class()) + "@" + (self.$object_id()) + " {doctype: " + (self.$doctype().$inspect()) + ", doctitle: " + (($truthy($a = self.header) ? self.header.$title() : $a).$inspect()) + ", blocks: " + (self.blocks.$size()) + "}>"
|
|
28273
|
-
}, $Document_to_s$
|
|
28279
|
+
}, $Document_to_s$62.$$arity = 0);
|
|
28274
28280
|
self.$private();
|
|
28275
28281
|
|
|
28276
|
-
Opal.def(self, '$apply_attribute_value_subs', $Document_apply_attribute_value_subs$
|
|
28282
|
+
Opal.def(self, '$apply_attribute_value_subs', $Document_apply_attribute_value_subs$63 = function $$apply_attribute_value_subs(value) {
|
|
28277
28283
|
var $a, self = this;
|
|
28278
28284
|
|
|
28279
28285
|
|
|
@@ -28291,9 +28297,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28291
28297
|
} else {
|
|
28292
28298
|
return value
|
|
28293
28299
|
};
|
|
28294
|
-
}, $Document_apply_attribute_value_subs$
|
|
28300
|
+
}, $Document_apply_attribute_value_subs$63.$$arity = 1);
|
|
28295
28301
|
|
|
28296
|
-
Opal.def(self, '$limit_bytesize', $Document_limit_bytesize$
|
|
28302
|
+
Opal.def(self, '$limit_bytesize', $Document_limit_bytesize$64 = function $$limit_bytesize(str, max) {
|
|
28297
28303
|
var $a, self = this;
|
|
28298
28304
|
|
|
28299
28305
|
|
|
@@ -28302,9 +28308,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28302
28308
|
max = $rb_minus(max, 1)
|
|
28303
28309
|
}};
|
|
28304
28310
|
return str;
|
|
28305
|
-
}, $Document_limit_bytesize$
|
|
28311
|
+
}, $Document_limit_bytesize$64.$$arity = 2);
|
|
28306
28312
|
|
|
28307
|
-
Opal.def(self, '$resolve_docinfo_subs', $Document_resolve_docinfo_subs$
|
|
28313
|
+
Opal.def(self, '$resolve_docinfo_subs', $Document_resolve_docinfo_subs$65 = function $$resolve_docinfo_subs() {
|
|
28308
28314
|
var self = this;
|
|
28309
28315
|
|
|
28310
28316
|
if ($truthy(self.attributes['$key?']("docinfosubs"))) {
|
|
@@ -28313,9 +28319,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28313
28319
|
} else {
|
|
28314
28320
|
return ["attributes"]
|
|
28315
28321
|
}
|
|
28316
|
-
}, $Document_resolve_docinfo_subs$
|
|
28322
|
+
}, $Document_resolve_docinfo_subs$65.$$arity = 0);
|
|
28317
28323
|
|
|
28318
|
-
Opal.def(self, '$create_converter', $Document_create_converter$
|
|
28324
|
+
Opal.def(self, '$create_converter', $Document_create_converter$66 = function $$create_converter(backend, delegate_backend) {
|
|
28319
28325
|
var $a, self = this, converter_opts = nil, template_dirs = nil, opts = nil, $writer = nil, converter = nil;
|
|
28320
28326
|
|
|
28321
28327
|
|
|
@@ -28356,16 +28362,16 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28356
28362
|
} else {
|
|
28357
28363
|
return opts.$fetch("converter_factory", $$($nesting, 'Converter')).$create(backend, converter_opts)
|
|
28358
28364
|
};
|
|
28359
|
-
}, $Document_create_converter$
|
|
28365
|
+
}, $Document_create_converter$66.$$arity = 2);
|
|
28360
28366
|
|
|
28361
|
-
Opal.def(self, '$clear_playback_attributes', $Document_clear_playback_attributes$
|
|
28367
|
+
Opal.def(self, '$clear_playback_attributes', $Document_clear_playback_attributes$67 = function $$clear_playback_attributes(attributes) {
|
|
28362
28368
|
var self = this;
|
|
28363
28369
|
|
|
28364
28370
|
return attributes.$delete("attribute_entries")
|
|
28365
|
-
}, $Document_clear_playback_attributes$
|
|
28371
|
+
}, $Document_clear_playback_attributes$67.$$arity = 1);
|
|
28366
28372
|
|
|
28367
|
-
Opal.def(self, '$save_attributes', $Document_save_attributes$
|
|
28368
|
-
var $a, $$
|
|
28373
|
+
Opal.def(self, '$save_attributes', $Document_save_attributes$68 = function $$save_attributes() {
|
|
28374
|
+
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;
|
|
28369
28375
|
|
|
28370
28376
|
|
|
28371
28377
|
if ($truthy(($truthy($a = (attrs = self.attributes)['$key?']("doctitle")) ? $a : (doctitle_val = self.$doctitle())['$!']()))) {
|
|
@@ -28492,7 +28498,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28492
28498
|
$writer[$rb_minus($writer["length"], 1)];
|
|
28493
28499
|
};};
|
|
28494
28500
|
self.outfilesuffix = attrs['$[]']("outfilesuffix");
|
|
28495
|
-
$send($$($nesting, 'FLEXIBLE_ATTRIBUTES'), 'each', [], ($$
|
|
28501
|
+
$send($$($nesting, 'FLEXIBLE_ATTRIBUTES'), 'each', [], ($$69 = function(name){var self = $$69.$$s || this, $b;
|
|
28496
28502
|
if (self.attribute_overrides == null) self.attribute_overrides = nil;
|
|
28497
28503
|
|
|
28498
28504
|
|
|
@@ -28504,12 +28510,12 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28504
28510
|
return self.attribute_overrides.$delete(name)
|
|
28505
28511
|
} else {
|
|
28506
28512
|
return nil
|
|
28507
|
-
};}, $$
|
|
28513
|
+
};}, $$69.$$s = self, $$69.$$arity = 1, $$69));
|
|
28508
28514
|
};
|
|
28509
28515
|
return (self.header_attributes = attrs.$merge());
|
|
28510
|
-
}, $Document_save_attributes$
|
|
28516
|
+
}, $Document_save_attributes$68.$$arity = 0);
|
|
28511
28517
|
|
|
28512
|
-
Opal.def(self, '$fill_datetime_attributes', $Document_fill_datetime_attributes$
|
|
28518
|
+
Opal.def(self, '$fill_datetime_attributes', $Document_fill_datetime_attributes$70 = function $$fill_datetime_attributes(attrs, input_mtime) {
|
|
28513
28519
|
var $a, $b, self = this, now = nil, source_date_epoch = nil, localdate = nil, $writer = nil, localtime = nil, docdate = nil, doctime = nil;
|
|
28514
28520
|
|
|
28515
28521
|
|
|
@@ -28557,9 +28563,9 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28557
28563
|
}; return nil; })()))]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
28558
28564
|
($truthy($a = attrs['$[]']("docdatetime")) ? $a : (($writer = ["docdatetime", "" + (docdate) + " " + (doctime)]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
28559
28565
|
return nil;
|
|
28560
|
-
}, $Document_fill_datetime_attributes$
|
|
28566
|
+
}, $Document_fill_datetime_attributes$70.$$arity = 2);
|
|
28561
28567
|
|
|
28562
|
-
Opal.def(self, '$update_backend_attributes', $Document_update_backend_attributes$
|
|
28568
|
+
Opal.def(self, '$update_backend_attributes', $Document_update_backend_attributes$71 = function $$update_backend_attributes(new_backend, init) {
|
|
28563
28569
|
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;
|
|
28564
28570
|
|
|
28565
28571
|
|
|
@@ -28687,8 +28693,8 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28687
28693
|
} else {
|
|
28688
28694
|
return nil
|
|
28689
28695
|
};
|
|
28690
|
-
}, $Document_update_backend_attributes$
|
|
28691
|
-
return (Opal.def(self, '$update_doctype_attributes', $Document_update_doctype_attributes$
|
|
28696
|
+
}, $Document_update_backend_attributes$71.$$arity = -2);
|
|
28697
|
+
return (Opal.def(self, '$update_doctype_attributes', $Document_update_doctype_attributes$72 = function $$update_doctype_attributes(new_doctype) {
|
|
28692
28698
|
var $a, self = this, attrs = nil, current_backend = nil, current_basebackend = nil, current_doctype = nil, $writer = nil;
|
|
28693
28699
|
|
|
28694
28700
|
if ($truthy(($truthy($a = new_doctype) ? new_doctype['$!='](self.doctype) : $a))) {
|
|
@@ -28732,7 +28738,7 @@ Opal.modules["asciidoctor/document"] = function(Opal) {
|
|
|
28732
28738
|
} else {
|
|
28733
28739
|
return nil
|
|
28734
28740
|
}
|
|
28735
|
-
}, $Document_update_doctype_attributes$
|
|
28741
|
+
}, $Document_update_doctype_attributes$72.$$arity = 1), nil) && 'update_doctype_attributes';
|
|
28736
28742
|
})($nesting[0], $$($nesting, 'AbstractBlock'), $nesting)
|
|
28737
28743
|
})($nesting[0], $nesting)
|
|
28738
28744
|
};
|
|
@@ -28995,7 +29001,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
28995
29001
|
}
|
|
28996
29002
|
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;
|
|
28997
29003
|
|
|
28998
|
-
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=', '
|
|
29004
|
+
Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$skip_blank_lines', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$[]=', '$-', '$finalize_header', '$nil_or_empty?', '$title=', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$include?', '$sub_specialchars', '$sub_attributes', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$==', '$!', '$register', '$process_authors', '$update', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$save', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$split', '$title', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$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', '$%']);
|
|
28999
29005
|
return (function($base, $parent_nesting) {
|
|
29000
29006
|
var self = $module($base, 'Asciidoctor');
|
|
29001
29007
|
|
|
@@ -29042,15 +29048,15 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29042
29048
|
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"}));
|
|
29043
29049
|
self.$private_class_method("new");
|
|
29044
29050
|
Opal.defs(self, '$parse', $Parser_parse$4 = function $$parse(reader, document, options) {
|
|
29045
|
-
var $a, $b, $c, self = this, block_attributes = nil, new_section = nil;
|
|
29051
|
+
var $a, $b, $c, self = this, block_attributes = nil, header_only = nil, new_section = nil;
|
|
29046
29052
|
|
|
29047
29053
|
|
|
29048
29054
|
|
|
29049
29055
|
if (options == null) {
|
|
29050
29056
|
options = $hash2([], {});
|
|
29051
29057
|
};
|
|
29052
|
-
block_attributes = self.$parse_document_header(reader, document);
|
|
29053
|
-
if ($truthy(
|
|
29058
|
+
block_attributes = self.$parse_document_header(reader, document, (header_only = options['$[]']("header_only")));
|
|
29059
|
+
if ($truthy(header_only)) {
|
|
29054
29060
|
} else {
|
|
29055
29061
|
while ($truthy(reader['$has_more_lines?']())) {
|
|
29056
29062
|
|
|
@@ -29063,10 +29069,14 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29063
29069
|
};
|
|
29064
29070
|
return document;
|
|
29065
29071
|
}, $Parser_parse$4.$$arity = -3);
|
|
29066
|
-
Opal.defs(self, '$parse_document_header', $Parser_parse_document_header$5 = function $$parse_document_header(reader, document) {
|
|
29067
|
-
var $a, $b, self = this, block_attrs = nil, doc_attrs = nil, implicit_doctitle = nil,
|
|
29072
|
+
Opal.defs(self, '$parse_document_header', $Parser_parse_document_header$5 = function $$parse_document_header(reader, document, header_only) {
|
|
29073
|
+
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;
|
|
29068
29074
|
|
|
29069
29075
|
|
|
29076
|
+
|
|
29077
|
+
if (header_only == null) {
|
|
29078
|
+
header_only = false;
|
|
29079
|
+
};
|
|
29070
29080
|
block_attrs = (function() {if ($truthy(reader.$skip_blank_lines())) {
|
|
29071
29081
|
|
|
29072
29082
|
return self.$parse_block_metadata_lines(reader, document);
|
|
@@ -29075,7 +29085,12 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29075
29085
|
}; return nil; })();
|
|
29076
29086
|
doc_attrs = document.$attributes();
|
|
29077
29087
|
if ($truthy(($truthy($a = (implicit_doctitle = self['$is_next_line_doctitle?'](reader, block_attrs, doc_attrs['$[]']("leveloffset")))) ? block_attrs['$[]']("title") : $a))) {
|
|
29078
|
-
|
|
29088
|
+
|
|
29089
|
+
|
|
29090
|
+
$writer = ["authorcount", 0];
|
|
29091
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
29092
|
+
$writer[$rb_minus($writer["length"], 1)];;
|
|
29093
|
+
return document.$finalize_header(block_attrs, false);};
|
|
29079
29094
|
if ($truthy((val = doc_attrs['$[]']("doctitle"))['$nil_or_empty?']())) {
|
|
29080
29095
|
} else {
|
|
29081
29096
|
|
|
@@ -29142,7 +29157,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29142
29157
|
$writer[$rb_minus($writer["length"], 1)];};
|
|
29143
29158
|
block_attrs.$clear();
|
|
29144
29159
|
(modified_attrs = document.$instance_variable_get("@attributes_modified")).$delete("doctitle");
|
|
29145
|
-
self.$parse_header_metadata(reader, document);
|
|
29160
|
+
self.$parse_header_metadata(reader, document, nil);
|
|
29146
29161
|
if ($truthy(modified_attrs['$include?']("doctitle"))) {
|
|
29147
29162
|
if ($truthy(($truthy($a = (val = doc_attrs['$[]']("doctitle"))['$nil_or_empty?']()) ? $a : val['$=='](doctitle_attr_val)))) {
|
|
29148
29163
|
|
|
@@ -29158,15 +29173,35 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29158
29173
|
} else if ($truthy(l0_section_title['$!']())) {
|
|
29159
29174
|
modified_attrs['$<<']("doctitle")};
|
|
29160
29175
|
if ($truthy(doc_id)) {
|
|
29161
|
-
document.$register("refs", [doc_id, document])};
|
|
29176
|
+
document.$register("refs", [doc_id, document])};
|
|
29177
|
+
} else if ($truthy((author = doc_attrs['$[]']("author")))) {
|
|
29178
|
+
|
|
29179
|
+
author_metadata = self.$process_authors(author, true, false);
|
|
29180
|
+
if ($truthy(doc_attrs['$[]']("authorinitials"))) {
|
|
29181
|
+
author_metadata.$delete("authorinitials")};
|
|
29182
|
+
doc_attrs.$update(author_metadata);
|
|
29183
|
+
} else if ($truthy((author = doc_attrs['$[]']("authors")))) {
|
|
29184
|
+
|
|
29185
|
+
author_metadata = self.$process_authors(author, true);
|
|
29186
|
+
doc_attrs.$update(author_metadata);
|
|
29187
|
+
} else {
|
|
29188
|
+
|
|
29189
|
+
$writer = ["authorcount", 0];
|
|
29190
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
29191
|
+
$writer[$rb_minus($writer["length"], 1)];
|
|
29192
|
+
};
|
|
29162
29193
|
if (document.$doctype()['$==']("manpage")) {
|
|
29163
|
-
self.$parse_manpage_header(reader, document, block_attrs)};
|
|
29194
|
+
self.$parse_manpage_header(reader, document, block_attrs, header_only)};
|
|
29164
29195
|
return document.$finalize_header(block_attrs);
|
|
29165
|
-
}, $Parser_parse_document_header$5.$$arity =
|
|
29166
|
-
Opal.defs(self, '$parse_manpage_header', $Parser_parse_manpage_header$6 = function $$parse_manpage_header(reader, document, block_attributes) {
|
|
29196
|
+
}, $Parser_parse_document_header$5.$$arity = -3);
|
|
29197
|
+
Opal.defs(self, '$parse_manpage_header', $Parser_parse_manpage_header$6 = function $$parse_manpage_header(reader, document, block_attributes, header_only) {
|
|
29167
29198
|
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;
|
|
29168
29199
|
|
|
29169
29200
|
|
|
29201
|
+
|
|
29202
|
+
if (header_only == null) {
|
|
29203
|
+
header_only = false;
|
|
29204
|
+
};
|
|
29170
29205
|
if ($truthy($$($nesting, 'ManpageTitleVolnumRx')['$=~']((doc_attrs = document.$attributes())['$[]']("doctitle")))) {
|
|
29171
29206
|
|
|
29172
29207
|
|
|
@@ -29211,6 +29246,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29211
29246
|
$writer = ["outfilesuffix", "" + "." + (manvolnum)];
|
|
29212
29247
|
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
29213
29248
|
$writer[$rb_minus($writer["length"], 1)];;};
|
|
29249
|
+
} else if ($truthy(header_only)) {
|
|
29214
29250
|
} else {
|
|
29215
29251
|
|
|
29216
29252
|
reader.$skip_blank_lines();
|
|
@@ -29310,7 +29346,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29310
29346
|
};
|
|
29311
29347
|
};
|
|
29312
29348
|
return nil;
|
|
29313
|
-
}, $Parser_parse_manpage_header$6.$$arity =
|
|
29349
|
+
}, $Parser_parse_manpage_header$6.$$arity = -4);
|
|
29314
29350
|
Opal.defs(self, '$next_section', $Parser_next_section$9 = function $$next_section(reader, parent, attributes) {
|
|
29315
29351
|
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;
|
|
29316
29352
|
|
|
@@ -29693,7 +29729,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29693
29729
|
old_v = nil;
|
|
29694
29730
|
};
|
|
29695
29731
|
return old_v;}, $$11.$$s = self, $$11.$$arity = 2, $$11))};
|
|
29696
|
-
if ($truthy((block = extension.$process_method()['$[]'](parent, target, attributes)))) {
|
|
29732
|
+
if ($truthy(($truthy($b = (block = extension.$process_method()['$[]'](parent, target, attributes))) ? block['$!='](parent) : $b))) {
|
|
29697
29733
|
|
|
29698
29734
|
attributes.$replace(block.$attributes());
|
|
29699
29735
|
break;;
|
|
@@ -30228,7 +30264,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30228
30264
|
};
|
|
30229
30265
|
}, $Parser_is_delimited_block$ques$15.$$arity = -2);
|
|
30230
30266
|
Opal.defs(self, '$build_block', $Parser_build_block$16 = function $$build_block(block_context, content_model, terminator, parent, reader, attributes, options) {
|
|
30231
|
-
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;
|
|
30267
|
+
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;
|
|
30232
30268
|
|
|
30233
30269
|
|
|
30234
30270
|
|
|
@@ -30275,10 +30311,10 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30275
30311
|
if ($truthy((extension = options['$[]']("extension")))) {
|
|
30276
30312
|
|
|
30277
30313
|
attributes.$delete("style");
|
|
30278
|
-
if ($truthy((block = extension.$process_method()['$[]'](parent, ($truthy($
|
|
30314
|
+
if ($truthy(($truthy($a = (block = extension.$process_method()['$[]'](parent, ($truthy($b = block_reader) ? $b : $$($nesting, 'Reader').$new(lines)), attributes.$merge()))) ? block['$!='](parent) : $a))) {
|
|
30279
30315
|
|
|
30280
30316
|
attributes.$replace(block.$attributes());
|
|
30281
|
-
if ($truthy((($a = block.$content_model()['$==']("compound")) ? (lines = block.$lines())['$empty?']()['$!']() :
|
|
30317
|
+
if ($truthy(($truthy($a = (($b = block.$content_model()['$==']("compound")) ? $$($nesting, 'Block')['$==='](block) : block.$content_model()['$==']("compound"))) ? (lines = block.$lines())['$empty?']()['$!']() : $a))) {
|
|
30282
30318
|
|
|
30283
30319
|
content_model = "compound";
|
|
30284
30320
|
block_reader = $$($nesting, 'Reader').$new(lines);};
|
|
@@ -31021,60 +31057,58 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31021
31057
|
sect_level = 0};};
|
|
31022
31058
|
return [sect_id, sect_reftext, sect_title, sect_level, atx];
|
|
31023
31059
|
}, $Parser_parse_section_title$40.$$arity = -3);
|
|
31024
|
-
Opal.defs(self, '$parse_header_metadata', $Parser_parse_header_metadata$41 = function $$parse_header_metadata(reader, document) {
|
|
31025
|
-
var $a, $$42, $$43, $$44, self = this, doc_attrs = nil,
|
|
31060
|
+
Opal.defs(self, '$parse_header_metadata', $Parser_parse_header_metadata$41 = function $$parse_header_metadata(reader, document, retrieve) {
|
|
31061
|
+
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;
|
|
31026
31062
|
|
|
31027
31063
|
|
|
31028
31064
|
|
|
31029
31065
|
if (document == null) {
|
|
31030
31066
|
document = nil;
|
|
31031
31067
|
};
|
|
31068
|
+
|
|
31069
|
+
if (retrieve == null) {
|
|
31070
|
+
retrieve = true;
|
|
31071
|
+
};
|
|
31032
31072
|
doc_attrs = ($truthy($a = document) ? document.$attributes() : $a);
|
|
31033
31073
|
self.$process_attribute_entries(reader, document);
|
|
31034
|
-
$a = [(implicit_authors = $hash2([], {})), nil, nil], (metadata = $a[0]), (implicit_author = $a[1]), (implicit_authorinitials = $a[2]), $a;
|
|
31035
31074
|
if ($truthy(($truthy($a = reader['$has_more_lines?']()) ? reader['$next_line_empty?']()['$!']() : $a))) {
|
|
31036
31075
|
|
|
31037
|
-
|
|
31038
|
-
|
|
31076
|
+
authorcount = (implicit_author_metadata = self.$process_authors(reader.$read_line())).$delete("authorcount");
|
|
31077
|
+
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))) {
|
|
31039
31078
|
|
|
31040
|
-
|
|
31041
|
-
|
|
31042
|
-
$send(author_metadata, 'each', [], ($$42 = function(key, val){var self = $$42.$$s || this, $writer = nil;
|
|
31079
|
+
$send(implicit_author_metadata, 'each', [], ($$42 = function(key, val){var self = $$42.$$s || this;
|
|
31043
31080
|
|
|
31081
|
+
|
|
31044
31082
|
|
|
31083
|
+
if (key == null) {
|
|
31084
|
+
key = nil;
|
|
31085
|
+
};
|
|
31086
|
+
|
|
31087
|
+
if (val == null) {
|
|
31088
|
+
val = nil;
|
|
31089
|
+
};
|
|
31090
|
+
if ($truthy(doc_attrs['$key?'](key))) {
|
|
31091
|
+
return nil
|
|
31092
|
+
} else {
|
|
31045
31093
|
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
|
|
31052
|
-
|
|
31053
|
-
|
|
31054
|
-
|
|
31055
|
-
|
|
31056
|
-
|
|
31057
|
-
$writer = [key, (function() {if ($truthy($$$('::', 'String')['$==='](val))) {
|
|
31058
|
-
|
|
31059
|
-
return document.$apply_header_subs(val);
|
|
31060
|
-
} else {
|
|
31061
|
-
return val
|
|
31062
|
-
}; return nil; })()];
|
|
31063
|
-
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31064
|
-
return $writer[$rb_minus($writer["length"], 1)];
|
|
31065
|
-
};}, $$42.$$s = self, $$42.$$arity = 2, $$42));
|
|
31066
|
-
implicit_author = doc_attrs['$[]']("author");
|
|
31067
|
-
implicit_authorinitials = doc_attrs['$[]']("authorinitials");
|
|
31068
|
-
implicit_authors = doc_attrs['$[]']("authors");};
|
|
31069
|
-
metadata = author_metadata;
|
|
31070
|
-
};
|
|
31094
|
+
$writer = [key, document.$apply_header_subs(val)];
|
|
31095
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31096
|
+
return $writer[$rb_minus($writer["length"], 1)];
|
|
31097
|
+
};}, $$42.$$s = self, $$42.$$arity = 2, $$42));
|
|
31098
|
+
implicit_author = doc_attrs['$[]']("author");
|
|
31099
|
+
implicit_authorinitials = doc_attrs['$[]']("authorinitials");
|
|
31100
|
+
implicit_authors = doc_attrs['$[]']("authors");};
|
|
31101
|
+
|
|
31102
|
+
$writer = ["authorcount", authorcount];
|
|
31103
|
+
$send(implicit_author_metadata, '[]=', Opal.to_a($writer));
|
|
31104
|
+
$writer[$rb_minus($writer["length"], 1)];;
|
|
31071
31105
|
self.$process_attribute_entries(reader, document);
|
|
31072
|
-
rev_metadata = $hash2([], {});
|
|
31073
31106
|
if ($truthy(($truthy($a = reader['$has_more_lines?']()) ? reader['$next_line_empty?']()['$!']() : $a))) {
|
|
31074
31107
|
|
|
31075
31108
|
rev_line = reader.$read_line();
|
|
31076
31109
|
if ($truthy((match = $$($nesting, 'RevisionInfoLineRx').$match(rev_line)))) {
|
|
31077
31110
|
|
|
31111
|
+
rev_metadata = $hash2([], {});
|
|
31078
31112
|
if ($truthy(match['$[]'](1))) {
|
|
31079
31113
|
|
|
31080
31114
|
$writer = ["revnumber", match['$[]'](1).$rstrip()];
|
|
@@ -31097,38 +31131,33 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31097
31131
|
$writer = ["revremark", match['$[]'](3).$rstrip()];
|
|
31098
31132
|
$send(rev_metadata, '[]=', Opal.to_a($writer));
|
|
31099
31133
|
$writer[$rb_minus($writer["length"], 1)];};
|
|
31100
|
-
|
|
31101
|
-
|
|
31102
|
-
};};
|
|
31103
|
-
if ($truthy(rev_metadata['$empty?']())) {
|
|
31104
|
-
} else {
|
|
31105
|
-
|
|
31106
|
-
if ($truthy(document)) {
|
|
31107
|
-
$send(rev_metadata, 'each', [], ($$43 = function(key, val){var self = $$43.$$s || this;
|
|
31134
|
+
if ($truthy(($truthy($a = document) ? rev_metadata['$empty?']()['$!']() : $a))) {
|
|
31135
|
+
$send(rev_metadata, 'each', [], ($$43 = function(key, val){var self = $$43.$$s || this;
|
|
31108
31136
|
|
|
31109
|
-
|
|
31110
31137
|
|
|
31111
|
-
if (key == null) {
|
|
31112
|
-
key = nil;
|
|
31113
|
-
};
|
|
31114
|
-
|
|
31115
|
-
if (val == null) {
|
|
31116
|
-
val = nil;
|
|
31117
|
-
};
|
|
31118
|
-
if ($truthy(doc_attrs['$key?'](key))) {
|
|
31119
|
-
return nil
|
|
31120
|
-
} else {
|
|
31121
31138
|
|
|
31122
|
-
|
|
31123
|
-
|
|
31124
|
-
|
|
31125
|
-
|
|
31126
|
-
|
|
31127
|
-
|
|
31139
|
+
if (key == null) {
|
|
31140
|
+
key = nil;
|
|
31141
|
+
};
|
|
31142
|
+
|
|
31143
|
+
if (val == null) {
|
|
31144
|
+
val = nil;
|
|
31145
|
+
};
|
|
31146
|
+
if ($truthy(doc_attrs['$key?'](key))) {
|
|
31147
|
+
return nil
|
|
31148
|
+
} else {
|
|
31149
|
+
|
|
31150
|
+
$writer = [key, document.$apply_header_subs(val)];
|
|
31151
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31152
|
+
return $writer[$rb_minus($writer["length"], 1)];
|
|
31153
|
+
};}, $$43.$$s = self, $$43.$$arity = 2, $$43))};
|
|
31154
|
+
} else {
|
|
31155
|
+
reader.$unshift_line(rev_line)
|
|
31156
|
+
};};
|
|
31128
31157
|
self.$process_attribute_entries(reader, document);
|
|
31129
31158
|
reader.$skip_blank_lines();
|
|
31130
31159
|
} else {
|
|
31131
|
-
|
|
31160
|
+
implicit_author_metadata = $hash2([], {})
|
|
31132
31161
|
};
|
|
31133
31162
|
if ($truthy(document)) {
|
|
31134
31163
|
|
|
@@ -31144,7 +31173,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31144
31173
|
$a = [[], 1, "author_1", false, false], (authors = $a[0]), (author_idx = $a[1]), (author_key = $a[2]), (explicit = $a[3]), (sparse = $a[4]), $a;
|
|
31145
31174
|
while ($truthy(doc_attrs['$key?'](author_key))) {
|
|
31146
31175
|
|
|
31147
|
-
if ((author_override = doc_attrs['$[]'](author_key))['$=='](
|
|
31176
|
+
if ((author_override = doc_attrs['$[]'](author_key))['$=='](implicit_author_metadata['$[]'](author_key))) {
|
|
31148
31177
|
|
|
31149
31178
|
authors['$<<'](nil);
|
|
31150
31179
|
sparse = true;
|
|
@@ -31172,7 +31201,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31172
31201
|
if ($truthy(author)) {
|
|
31173
31202
|
return nil;};
|
|
31174
31203
|
|
|
31175
|
-
$writer = [idx, $send([
|
|
31204
|
+
$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;
|
|
31176
31205
|
|
|
31177
31206
|
|
|
31178
31207
|
|
|
@@ -31184,11 +31213,18 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31184
31213
|
return $writer[$rb_minus($writer["length"], 1)];;}, $$44.$$s = self, $$44.$$arity = 2, $$44))};
|
|
31185
31214
|
author_metadata = self.$process_authors(authors, true, false);
|
|
31186
31215
|
} else {
|
|
31187
|
-
author_metadata = $hash2([], {})
|
|
31216
|
+
author_metadata = $hash2(["authorcount"], {"authorcount": 0})
|
|
31188
31217
|
};
|
|
31189
31218
|
};
|
|
31190
|
-
if (
|
|
31191
|
-
($truthy(
|
|
31219
|
+
if (author_metadata['$[]']("authorcount")['$=='](0)) {
|
|
31220
|
+
if ($truthy(authorcount)) {
|
|
31221
|
+
author_metadata = nil
|
|
31222
|
+
} else {
|
|
31223
|
+
|
|
31224
|
+
$writer = ["authorcount", 0];
|
|
31225
|
+
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31226
|
+
$writer[$rb_minus($writer["length"], 1)];
|
|
31227
|
+
}
|
|
31192
31228
|
} else {
|
|
31193
31229
|
|
|
31194
31230
|
doc_attrs.$update(author_metadata);
|
|
@@ -31198,7 +31234,11 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31198
31234
|
$send(doc_attrs, '[]=', Opal.to_a($writer));
|
|
31199
31235
|
$writer[$rb_minus($writer["length"], 1)];};
|
|
31200
31236
|
};};
|
|
31201
|
-
|
|
31237
|
+
if ($truthy(retrieve)) {
|
|
31238
|
+
return implicit_author_metadata.$merge(rev_metadata.$to_h(), author_metadata.$to_h())
|
|
31239
|
+
} else {
|
|
31240
|
+
return nil
|
|
31241
|
+
};
|
|
31202
31242
|
}, $Parser_parse_header_metadata$41.$$arity = -2);
|
|
31203
31243
|
Opal.defs(self, '$process_authors', $Parser_process_authors$46 = function $$process_authors(author_line, names_only, multiple) {
|
|
31204
31244
|
var $a, $$47, self = this, author_metadata = nil, author_idx = nil, $writer = nil;
|
|
@@ -32738,7 +32778,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
32738
32778
|
}
|
|
32739
32779
|
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;
|
|
32740
32780
|
|
|
32741
|
-
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']);
|
|
32781
|
+
Opal.add_stubs(['$include', '$attr_reader', '$+', '$attr_accessor', '$!', '$===', '$split', '$file', '$dir', '$dirname', '$path', '$basename', '$lineno', '$reverse', '$prepare_lines', '$empty?', '$nil_or_empty?', '$peek_line', '$>', '$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']);
|
|
32742
32782
|
return (function($base, $parent_nesting) {
|
|
32743
32783
|
var self = $module($base, 'Asciidoctor');
|
|
32744
32784
|
|
|
@@ -33394,7 +33434,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
33394
33434
|
(function($base, $super, $parent_nesting) {
|
|
33395
33435
|
var self = $klass($base, $super, 'PreprocessorReader');
|
|
33396
33436
|
|
|
33397
|
-
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$
|
|
33437
|
+
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;
|
|
33398
33438
|
|
|
33399
33439
|
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;
|
|
33400
33440
|
|
|
@@ -33870,7 +33910,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
33870
33910
|
}, $PreprocessorReader_preprocess_conditional_directive$61.$$arity = 4);
|
|
33871
33911
|
|
|
33872
33912
|
Opal.def(self, '$preprocess_include_directive', $PreprocessorReader_preprocess_include_directive$66 = function $$preprocess_include_directive(target, attrlist) {
|
|
33873
|
-
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,
|
|
33913
|
+
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;
|
|
33874
33914
|
|
|
33875
33915
|
|
|
33876
33916
|
doc = self.document;
|
|
@@ -34074,7 +34114,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34074
34114
|
self.$push_include(inc_lines, inc_path, relpath, inc_offset, parsed_attrs);};
|
|
34075
34115
|
} else if ($truthy(inc_tags)) {
|
|
34076
34116
|
|
|
34077
|
-
$a = [[], nil, 0, [], $$$('::', 'Set').$new(), nil], (inc_lines = $a[0]), (inc_offset = $a[1]), (inc_lineno = $a[2]), (tag_stack = $a[3]), (
|
|
34117
|
+
$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;
|
|
34078
34118
|
if ($truthy(inc_tags['$key?']("**"))) {
|
|
34079
34119
|
|
|
34080
34120
|
select = (base_select = inc_tags.$delete("**"));
|
|
@@ -34150,8 +34190,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34150
34190
|
}
|
|
34151
34191
|
} else if ($truthy(inc_tags['$key?'](this_tag))) {
|
|
34152
34192
|
|
|
34153
|
-
|
|
34154
|
-
|
|
34193
|
+
if ($truthy((select = inc_tags['$[]'](this_tag)))) {
|
|
34194
|
+
tags_selected['$<<'](this_tag)};
|
|
34195
|
+
return tag_stack['$<<']([(active_tag = this_tag), select, inc_lineno]);
|
|
34155
34196
|
} else if ($truthy(wildcard['$nil?']()['$!']())) {
|
|
34156
34197
|
|
|
34157
34198
|
select = (function() {if ($truthy(($truthy($d = active_tag) ? select['$!']() : $d))) {
|
|
@@ -34198,7 +34239,18 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34198
34239
|
};
|
|
34199
34240
|
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))
|
|
34200
34241
|
};
|
|
34201
|
-
if ($truthy((missing_tags = $rb_minus(inc_tags
|
|
34242
|
+
if ($truthy((missing_tags = $rb_minus($send(inc_tags, 'keep_if', [], ($$78 = function(_, v){var self = $$78.$$s || this;
|
|
34243
|
+
|
|
34244
|
+
|
|
34245
|
+
|
|
34246
|
+
if (_ == null) {
|
|
34247
|
+
_ = nil;
|
|
34248
|
+
};
|
|
34249
|
+
|
|
34250
|
+
if (v == null) {
|
|
34251
|
+
v = nil;
|
|
34252
|
+
};
|
|
34253
|
+
return v;}, $$78.$$s = self, $$78.$$arity = 2, $$78)).$keys(), tags_selected.$to_a()))['$empty?']())) {
|
|
34202
34254
|
} else {
|
|
34203
34255
|
self.$logger().$warn(self.$message_with_context("" + "tag" + ((function() {if ($truthy($rb_gt(missing_tags.$size(), 1))) {
|
|
34204
34256
|
return "s"
|
|
@@ -34221,14 +34273,14 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34221
34273
|
|
|
34222
34274
|
try {
|
|
34223
34275
|
|
|
34224
|
-
inc_content = $send(reader, 'call', [inc_path, read_mode], ($$
|
|
34276
|
+
inc_content = $send(reader, 'call', [inc_path, read_mode], ($$79 = function(f){var self = $$79.$$s || this;
|
|
34225
34277
|
|
|
34226
34278
|
|
|
34227
34279
|
|
|
34228
34280
|
if (f == null) {
|
|
34229
34281
|
f = nil;
|
|
34230
34282
|
};
|
|
34231
|
-
return f.$read();}, $$
|
|
34283
|
+
return f.$read();}, $$79.$$s = self, $$79.$$arity = 1, $$79));
|
|
34232
34284
|
self.$shift();
|
|
34233
34285
|
self.$push_include(inc_content, inc_path, relpath, 1, parsed_attrs);
|
|
34234
34286
|
} catch ($err) {
|
|
@@ -34247,8 +34299,8 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34247
34299
|
};
|
|
34248
34300
|
}, $PreprocessorReader_preprocess_include_directive$66.$$arity = 2);
|
|
34249
34301
|
|
|
34250
|
-
Opal.def(self, '$resolve_include_path', $PreprocessorReader_resolve_include_path$
|
|
34251
|
-
var $a, $b, $$
|
|
34302
|
+
Opal.def(self, '$resolve_include_path', $PreprocessorReader_resolve_include_path$80 = function $$resolve_include_path(target, attrlist, attributes) {
|
|
34303
|
+
var $a, $b, $$81, self = this, doc = nil, inc_path = nil, relpath = nil;
|
|
34252
34304
|
|
|
34253
34305
|
|
|
34254
34306
|
doc = self.document;
|
|
@@ -34277,9 +34329,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34277
34329
|
if ($truthy($$$('::', 'File')['$file?'](inc_path))) {
|
|
34278
34330
|
} else if ($truthy(attributes['$[]']("optional-option"))) {
|
|
34279
34331
|
|
|
34280
|
-
$send(self.$logger(), 'info', [], ($$
|
|
34332
|
+
$send(self.$logger(), 'info', [], ($$81 = function(){var self = $$81.$$s || this;
|
|
34281
34333
|
|
|
34282
|
-
return self.$message_with_context("" + "optional include dropped because include file not found: " + (inc_path), $hash2(["source_location"], {"source_location": self.$cursor()}))}, $$
|
|
34334
|
+
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));
|
|
34283
34335
|
self.$shift();
|
|
34284
34336
|
return true;
|
|
34285
34337
|
} else {
|
|
@@ -34290,9 +34342,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34290
34342
|
relpath = doc.$path_resolver().$relative_path(inc_path, doc.$base_dir());
|
|
34291
34343
|
return [inc_path, "file", relpath];
|
|
34292
34344
|
};
|
|
34293
|
-
}, $PreprocessorReader_resolve_include_path$
|
|
34345
|
+
}, $PreprocessorReader_resolve_include_path$80.$$arity = 3);
|
|
34294
34346
|
|
|
34295
|
-
Opal.def(self, '$pop_include', $PreprocessorReader_pop_include$
|
|
34347
|
+
Opal.def(self, '$pop_include', $PreprocessorReader_pop_include$82 = function $$pop_include() {
|
|
34296
34348
|
var $a, $b, self = this;
|
|
34297
34349
|
|
|
34298
34350
|
if ($truthy(self.include_stack['$empty?']())) {
|
|
@@ -34303,9 +34355,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34303
34355
|
self.look_ahead = 0;
|
|
34304
34356
|
return nil;
|
|
34305
34357
|
}
|
|
34306
|
-
}, $PreprocessorReader_pop_include$
|
|
34358
|
+
}, $PreprocessorReader_pop_include$82.$$arity = 0);
|
|
34307
34359
|
|
|
34308
|
-
Opal.def(self, '$split_delimited_value', $PreprocessorReader_split_delimited_value$
|
|
34360
|
+
Opal.def(self, '$split_delimited_value', $PreprocessorReader_split_delimited_value$83 = function $$split_delimited_value(val) {
|
|
34309
34361
|
var self = this;
|
|
34310
34362
|
|
|
34311
34363
|
if ($truthy(val['$include?'](","))) {
|
|
@@ -34315,9 +34367,9 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34315
34367
|
|
|
34316
34368
|
return val.$split(";");
|
|
34317
34369
|
}
|
|
34318
|
-
}, $PreprocessorReader_split_delimited_value$
|
|
34370
|
+
}, $PreprocessorReader_split_delimited_value$83.$$arity = 1);
|
|
34319
34371
|
|
|
34320
|
-
Opal.def(self, '$skip_front_matter!', $PreprocessorReader_skip_front_matter$excl$
|
|
34372
|
+
Opal.def(self, '$skip_front_matter!', $PreprocessorReader_skip_front_matter$excl$84 = function(data, increment_linenos) {
|
|
34321
34373
|
var $a, $b, self = this, front_matter = nil, original_data = nil;
|
|
34322
34374
|
|
|
34323
34375
|
|
|
@@ -34352,8 +34404,8 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34352
34404
|
self.lineno = $rb_plus(self.lineno, 1)};
|
|
34353
34405
|
};};
|
|
34354
34406
|
return front_matter;
|
|
34355
|
-
}, $PreprocessorReader_skip_front_matter$excl$
|
|
34356
|
-
return (Opal.def(self, '$resolve_expr_val', $PreprocessorReader_resolve_expr_val$
|
|
34407
|
+
}, $PreprocessorReader_skip_front_matter$excl$84.$$arity = -2);
|
|
34408
|
+
return (Opal.def(self, '$resolve_expr_val', $PreprocessorReader_resolve_expr_val$85 = function $$resolve_expr_val(val) {
|
|
34357
34409
|
var $a, $b, self = this, quoted = nil;
|
|
34358
34410
|
|
|
34359
34411
|
|
|
@@ -34381,7 +34433,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
34381
34433
|
} else {
|
|
34382
34434
|
return val.$to_i()
|
|
34383
34435
|
};
|
|
34384
|
-
}, $PreprocessorReader_resolve_expr_val$
|
|
34436
|
+
}, $PreprocessorReader_resolve_expr_val$85.$$arity = 1), nil) && 'resolve_expr_val';
|
|
34385
34437
|
})($nesting[0], $$($nesting, 'Reader'), $nesting);
|
|
34386
34438
|
})($nesting[0], $nesting)
|
|
34387
34439
|
};
|
|
@@ -34399,7 +34451,7 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34399
34451
|
}
|
|
34400
34452
|
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;
|
|
34401
34453
|
|
|
34402
|
-
Opal.add_stubs(['$attr_accessor', '$attr_reader', '$===', '$+', '$level', '$special', '$generate_id', '$title', '
|
|
34454
|
+
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']);
|
|
34403
34455
|
return (function($base, $parent_nesting) {
|
|
34404
34456
|
var self = $module($base, 'Asciidoctor');
|
|
34405
34457
|
|
|
@@ -34408,9 +34460,9 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34408
34460
|
(function($base, $super, $parent_nesting) {
|
|
34409
34461
|
var self = $klass($base, $super, 'Section');
|
|
34410
34462
|
|
|
34411
|
-
var $nesting = [self].concat($parent_nesting), $Section_initialize$1, $Section_generate_id$2, $
|
|
34463
|
+
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;
|
|
34412
34464
|
|
|
34413
|
-
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;
|
|
34465
|
+
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;
|
|
34414
34466
|
|
|
34415
34467
|
self.$attr_accessor("index");
|
|
34416
34468
|
self.$attr_accessor("sectname");
|
|
@@ -34456,7 +34508,13 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34456
34508
|
return $$($nesting, 'Section').$generate_id(self.$title(), self.document)
|
|
34457
34509
|
}, $Section_generate_id$2.$$arity = 0);
|
|
34458
34510
|
|
|
34459
|
-
Opal.def(self, '$
|
|
34511
|
+
Opal.def(self, '$sections?', $Section_sections$ques$3 = function() {
|
|
34512
|
+
var self = this;
|
|
34513
|
+
|
|
34514
|
+
return $rb_gt(self.next_section_index, 0)
|
|
34515
|
+
}, $Section_sections$ques$3.$$arity = 0);
|
|
34516
|
+
|
|
34517
|
+
Opal.def(self, '$sectnum', $Section_sectnum$4 = function $$sectnum(delimiter, append) {
|
|
34460
34518
|
var $a, self = this;
|
|
34461
34519
|
|
|
34462
34520
|
|
|
@@ -34478,9 +34536,9 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34478
34536
|
} else {
|
|
34479
34537
|
return "" + (self.numeral) + (append)
|
|
34480
34538
|
};
|
|
34481
|
-
}, $Section_sectnum$
|
|
34539
|
+
}, $Section_sectnum$4.$$arity = -1);
|
|
34482
34540
|
|
|
34483
|
-
Opal.def(self, '$xreftext', $Section_xreftext$
|
|
34541
|
+
Opal.def(self, '$xreftext', $Section_xreftext$5 = function $$xreftext(xrefstyle) {
|
|
34484
34542
|
var $a, self = this, val = nil, $case = nil, type = nil, quoted_title = nil, signifier = nil;
|
|
34485
34543
|
|
|
34486
34544
|
|
|
@@ -34528,12 +34586,12 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34528
34586
|
} else {
|
|
34529
34587
|
return self.$title()
|
|
34530
34588
|
};
|
|
34531
|
-
}, $Section_xreftext$
|
|
34589
|
+
}, $Section_xreftext$5.$$arity = -1);
|
|
34532
34590
|
|
|
34533
|
-
Opal.def(self, '$<<', $Section_$lt$lt$
|
|
34534
|
-
var $iter = $Section_$lt$lt$
|
|
34591
|
+
Opal.def(self, '$<<', $Section_$lt$lt$6 = function(block) {
|
|
34592
|
+
var $iter = $Section_$lt$lt$6.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
34535
34593
|
|
|
34536
|
-
if ($iter) $Section_$lt$lt$
|
|
34594
|
+
if ($iter) $Section_$lt$lt$6.$$p = null;
|
|
34537
34595
|
// Prepare super implicit arguments
|
|
34538
34596
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
34539
34597
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
@@ -34541,13 +34599,13 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34541
34599
|
|
|
34542
34600
|
if (block.$context()['$==']("section")) {
|
|
34543
34601
|
self.$assign_numeral(block)};
|
|
34544
|
-
return $send(self, Opal.find_super_dispatcher(self, '<<', $Section_$lt$lt$
|
|
34545
|
-
}, $Section_$lt$lt$
|
|
34602
|
+
return $send(self, Opal.find_super_dispatcher(self, '<<', $Section_$lt$lt$6, false), $zuper, $iter);
|
|
34603
|
+
}, $Section_$lt$lt$6.$$arity = 1);
|
|
34546
34604
|
|
|
34547
|
-
Opal.def(self, '$to_s', $Section_to_s$
|
|
34548
|
-
var $iter = $Section_to_s$
|
|
34605
|
+
Opal.def(self, '$to_s', $Section_to_s$7 = function $$to_s() {
|
|
34606
|
+
var $iter = $Section_to_s$7.$$p, $yield = $iter || nil, self = this, formal_title = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;
|
|
34549
34607
|
|
|
34550
|
-
if ($iter) $Section_to_s$
|
|
34608
|
+
if ($iter) $Section_to_s$7.$$p = null;
|
|
34551
34609
|
// Prepare super implicit arguments
|
|
34552
34610
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
34553
34611
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
@@ -34561,10 +34619,10 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34561
34619
|
}; return nil; })();
|
|
34562
34620
|
return "" + "#<" + (self.$class()) + "@" + (self.$object_id()) + " {level: " + (self.level) + ", title: " + (formal_title.$inspect()) + ", blocks: " + (self.blocks.$size()) + "}>";
|
|
34563
34621
|
} else {
|
|
34564
|
-
return $send(self, Opal.find_super_dispatcher(self, 'to_s', $Section_to_s$
|
|
34622
|
+
return $send(self, Opal.find_super_dispatcher(self, 'to_s', $Section_to_s$7, false), $zuper, $iter)
|
|
34565
34623
|
}
|
|
34566
|
-
}, $Section_to_s$
|
|
34567
|
-
return (Opal.defs(self, '$generate_id', $Section_generate_id$
|
|
34624
|
+
}, $Section_to_s$7.$$arity = 0);
|
|
34625
|
+
return (Opal.defs(self, '$generate_id', $Section_generate_id$8 = function $$generate_id(title, document) {
|
|
34568
34626
|
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;
|
|
34569
34627
|
|
|
34570
34628
|
|
|
@@ -34602,7 +34660,7 @@ Opal.modules["asciidoctor/section"] = function(Opal) {
|
|
|
34602
34660
|
} else {
|
|
34603
34661
|
return gen_id
|
|
34604
34662
|
};
|
|
34605
|
-
}, $Section_generate_id$
|
|
34663
|
+
}, $Section_generate_id$8.$$arity = 2), nil) && 'generate_id';
|
|
34606
34664
|
})($nesting[0], $$($nesting, 'AbstractBlock'), $nesting)
|
|
34607
34665
|
})($nesting[0], $nesting)
|
|
34608
34666
|
};
|
|
@@ -36835,7 +36893,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
36835
36893
|
}
|
|
36836
36894
|
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;
|
|
36837
36895
|
|
|
36838
|
-
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', '$
|
|
36896
|
+
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']);
|
|
36839
36897
|
return (function($base, $parent_nesting) {
|
|
36840
36898
|
var self = $module($base, 'Asciidoctor');
|
|
36841
36899
|
|
|
@@ -36844,7 +36902,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
36844
36902
|
(function($base, $super, $parent_nesting) {
|
|
36845
36903
|
var self = $klass($base, $super, 'Html5Converter');
|
|
36846
36904
|
|
|
36847
|
-
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$
|
|
36905
|
+
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;
|
|
36848
36906
|
|
|
36849
36907
|
self.$$prototype.void_element_slash = self.$$prototype.xml_mode = self.$$prototype.refs = self.$$prototype.resolving_xref = nil;
|
|
36850
36908
|
|
|
@@ -37681,7 +37739,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
37681
37739
|
}, $Html5Converter_convert_floating_title$24.$$arity = 1);
|
|
37682
37740
|
|
|
37683
37741
|
Opal.def(self, '$convert_image', $Html5Converter_convert_image$25 = function $$convert_image(node) {
|
|
37684
|
-
var $a, $b,
|
|
37742
|
+
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;
|
|
37685
37743
|
|
|
37686
37744
|
|
|
37687
37745
|
target = node.$attr("target");
|
|
@@ -37695,18 +37753,23 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
37695
37753
|
} else {
|
|
37696
37754
|
return ""
|
|
37697
37755
|
}; return nil; })();
|
|
37698
|
-
if ($truthy(($truthy($a = ($truthy($b =
|
|
37699
|
-
if ($truthy(
|
|
37756
|
+
if ($truthy(($truthy($a = ($truthy($b = node['$attr?']("format", "svg")) ? $b : target['$include?'](".svg"))) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $a))) {
|
|
37757
|
+
if ($truthy(node['$option?']("inline"))) {
|
|
37700
37758
|
img = ($truthy($a = self.$read_svg_contents(node, target)) ? $a : "" + "<span class=\"alt\">" + (node.$alt()) + "</span>")
|
|
37701
|
-
} else if ($truthy(
|
|
37759
|
+
} else if ($truthy(node['$option?']("interactive"))) {
|
|
37702
37760
|
|
|
37703
37761
|
fallback = (function() {if ($truthy(node['$attr?']("fallback"))) {
|
|
37704
37762
|
return "" + "<img src=\"" + (node.$image_uri(node.$attr("fallback"))) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">"
|
|
37705
37763
|
} else {
|
|
37706
37764
|
return "" + "<span class=\"alt\">" + (node.$alt()) + "</span>"
|
|
37707
37765
|
}; return nil; })();
|
|
37708
|
-
img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (width_attr) + (height_attr) + ">" + (fallback) + "</object>";
|
|
37709
|
-
|
|
37766
|
+
img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (width_attr) + (height_attr) + ">" + (fallback) + "</object>";
|
|
37767
|
+
} else {
|
|
37768
|
+
img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">"
|
|
37769
|
+
}
|
|
37770
|
+
} else {
|
|
37771
|
+
img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (width_attr) + (height_attr) + (self.void_element_slash) + ">"
|
|
37772
|
+
};
|
|
37710
37773
|
if ($truthy(node['$attr?']("link"))) {
|
|
37711
37774
|
img = "" + "<a class=\"image\" href=\"" + (node.$attr("link")) + "\"" + (self.$append_link_constraint_attrs(node).$join()) + ">" + (img) + "</a>"};
|
|
37712
37775
|
id_attr = (function() {if ($truthy(node.$id())) {
|
|
@@ -38089,7 +38152,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38089
38152
|
}, $Html5Converter_convert_sidebar$38.$$arity = 1);
|
|
38090
38153
|
|
|
38091
38154
|
Opal.def(self, '$convert_table', $Html5Converter_convert_table$39 = function $$convert_table(node) {
|
|
38092
|
-
var $a, $$40, $$41, self = this, result = nil, id_attribute = nil, frame = nil, classes = nil, stripes = nil,
|
|
38155
|
+
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;
|
|
38093
38156
|
|
|
38094
38157
|
|
|
38095
38158
|
result = [];
|
|
@@ -38103,24 +38166,19 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38103
38166
|
classes = ["tableblock", "" + "frame-" + (frame), "" + "grid-" + (node.$attr("grid", "all", "table-grid"))];
|
|
38104
38167
|
if ($truthy((stripes = node.$attr("stripes", nil, "table-stripes")))) {
|
|
38105
38168
|
classes['$<<']("" + "stripes-" + (stripes))};
|
|
38106
|
-
|
|
38169
|
+
style_attribute = "";
|
|
38107
38170
|
if ($truthy(($truthy($a = (autowidth = node['$option?']("autowidth"))) ? node['$attr?']("width")['$!']() : $a))) {
|
|
38108
38171
|
classes['$<<']("fit-content")
|
|
38109
38172
|
} else if ((tablewidth = node.$attr("tablepcwidth"))['$=='](100)) {
|
|
38110
38173
|
classes['$<<']("stretch")
|
|
38111
38174
|
} else {
|
|
38112
|
-
|
|
38175
|
+
style_attribute = "" + " style=\"width: " + (tablewidth) + "%;\""
|
|
38113
38176
|
};
|
|
38114
38177
|
if ($truthy(node['$attr?']("float"))) {
|
|
38115
38178
|
classes['$<<'](node.$attr("float"))};
|
|
38116
38179
|
if ($truthy((role = node.$role()))) {
|
|
38117
38180
|
classes['$<<'](role)};
|
|
38118
38181
|
class_attribute = "" + " class=\"" + (classes.$join(" ")) + "\"";
|
|
38119
|
-
style_attribute = (function() {if ($truthy(styles['$empty?']())) {
|
|
38120
|
-
return ""
|
|
38121
|
-
} else {
|
|
38122
|
-
return "" + " style=\"" + (styles.$join(" ")) + "\""
|
|
38123
|
-
}; return nil; })();
|
|
38124
38182
|
result['$<<']("" + "<table" + (id_attribute) + (class_attribute) + (style_attribute) + ">");
|
|
38125
38183
|
if ($truthy(node['$title?']())) {
|
|
38126
38184
|
result['$<<']("" + "<caption class=\"title\">" + (node.$captioned_title()) + "</caption>")};
|
|
@@ -38384,7 +38442,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38384
38442
|
}, $Html5Converter_convert_verse$47.$$arity = 1);
|
|
38385
38443
|
|
|
38386
38444
|
Opal.def(self, '$convert_video', $Html5Converter_convert_video$48 = function $$convert_video(node) {
|
|
38387
|
-
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,
|
|
38445
|
+
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;
|
|
38388
38446
|
|
|
38389
38447
|
|
|
38390
38448
|
xml = self.xml_mode;
|
|
@@ -38428,6 +38486,12 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38428
38486
|
return ""
|
|
38429
38487
|
}; return nil; })();
|
|
38430
38488
|
delimiter = ["?"];
|
|
38489
|
+
$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;
|
|
38490
|
+
hash_param = (function() {if ($truthy((hash = ($truthy($a = hash) ? $a : node.$attr("hash"))))) {
|
|
38491
|
+
return "" + (($truthy($a = delimiter.$pop()) ? $a : "&")) + "h=" + (hash)
|
|
38492
|
+
} else {
|
|
38493
|
+
return ""
|
|
38494
|
+
}; return nil; })();
|
|
38431
38495
|
autoplay_param = (function() {if ($truthy(node['$option?']("autoplay"))) {
|
|
38432
38496
|
return "" + (($truthy($a = delimiter.$pop()) ? $a : "&")) + "autoplay=1"
|
|
38433
38497
|
} else {
|
|
@@ -38443,7 +38507,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38443
38507
|
} else {
|
|
38444
38508
|
return ""
|
|
38445
38509
|
}; return nil; })();
|
|
38446
|
-
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/" + (
|
|
38510
|
+
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"))) {
|
|
38447
38511
|
return ""
|
|
38448
38512
|
} else {
|
|
38449
38513
|
|
|
@@ -38520,7 +38584,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38520
38584
|
|
|
38521
38585
|
$b = target.$split(",", 2), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (playlist = ($a[1] == null ? nil : $a[1])), $b;
|
|
38522
38586
|
if ($truthy((playlist = ($truthy($a = playlist) ? $a : node.$attr("playlist"))))) {
|
|
38523
|
-
list_param = "" + "&playlist=" + (playlist)
|
|
38587
|
+
list_param = "" + "&playlist=" + (target) + "," + (playlist)
|
|
38524
38588
|
} else {
|
|
38525
38589
|
list_param = (function() {if ($truthy(has_loop_param)) {
|
|
38526
38590
|
return "" + "&playlist=" + (target)
|
|
@@ -38696,87 +38760,85 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38696
38760
|
}, $Html5Converter_convert_inline_footnote$53.$$arity = 1);
|
|
38697
38761
|
|
|
38698
38762
|
Opal.def(self, '$convert_inline_image', $Html5Converter_convert_inline_image$54 = function $$convert_inline_image(node) {
|
|
38699
|
-
var $a, $b,
|
|
38700
|
-
|
|
38701
|
-
|
|
38702
|
-
|
|
38703
|
-
|
|
38704
|
-
|
|
38705
|
-
|
|
38706
|
-
|
|
38707
|
-
|
|
38708
|
-
|
|
38709
|
-
if (
|
|
38710
|
-
|
|
38711
|
-
}
|
|
38763
|
+
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;
|
|
38764
|
+
|
|
38765
|
+
|
|
38766
|
+
target = node.$target();
|
|
38767
|
+
if ((type = ($truthy($a = node.$type()) ? $a : "image"))['$==']("icon")) {
|
|
38768
|
+
if ((icons = node.$document().$attr("icons"))['$==']("font")) {
|
|
38769
|
+
|
|
38770
|
+
i_class_attr_val = "" + "fa fa-" + (target);
|
|
38771
|
+
if ($truthy(node['$attr?']("size"))) {
|
|
38772
|
+
i_class_attr_val = "" + (i_class_attr_val) + " fa-" + (node.$attr("size"))};
|
|
38773
|
+
if ($truthy(node['$attr?']("flip"))) {
|
|
38774
|
+
i_class_attr_val = "" + (i_class_attr_val) + " fa-flip-" + (node.$attr("flip"))
|
|
38775
|
+
} else if ($truthy(node['$attr?']("rotate"))) {
|
|
38776
|
+
i_class_attr_val = "" + (i_class_attr_val) + " fa-rotate-" + (node.$attr("rotate"))};
|
|
38777
|
+
attrs = (function() {if ($truthy(node['$attr?']("title"))) {
|
|
38778
|
+
return "" + " title=\"" + (node.$attr("title")) + "\""
|
|
38779
|
+
} else {
|
|
38780
|
+
return ""
|
|
38781
|
+
}; return nil; })();
|
|
38782
|
+
img = "" + "<i class=\"" + (i_class_attr_val) + "\"" + (attrs) + "></i>";
|
|
38783
|
+
} else if ($truthy(icons)) {
|
|
38712
38784
|
|
|
38713
|
-
|
|
38714
|
-
|
|
38715
|
-
};
|
|
38716
|
-
if ($truthy(node['$attr?'](key))) {
|
|
38717
|
-
return (class_attr_val = "" + (class_attr_val) + " " + (prefix) + (node.$attr(key)))
|
|
38785
|
+
attrs = (function() {if ($truthy(node['$attr?']("width"))) {
|
|
38786
|
+
return "" + " width=\"" + (node.$attr("width")) + "\""
|
|
38718
38787
|
} else {
|
|
38719
|
-
return
|
|
38720
|
-
};
|
|
38721
|
-
|
|
38722
|
-
|
|
38788
|
+
return ""
|
|
38789
|
+
}; return nil; })();
|
|
38790
|
+
if ($truthy(node['$attr?']("height"))) {
|
|
38791
|
+
attrs = "" + (attrs) + " height=\"" + (node.$attr("height")) + "\""};
|
|
38792
|
+
if ($truthy(node['$attr?']("title"))) {
|
|
38793
|
+
attrs = "" + (attrs) + " title=\"" + (node.$attr("title")) + "\""};
|
|
38794
|
+
img = "" + "<img src=\"" + (node.$icon_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">";
|
|
38723
38795
|
} else {
|
|
38724
|
-
|
|
38725
|
-
}
|
|
38726
|
-
img = "" + "<i class=\"" + (class_attr_val) + "\"" + (title_attr) + "></i>";
|
|
38727
|
-
} else if ($truthy((($a = type['$==']("icon")) ? node.$document()['$attr?']("icons")['$!']() : type['$==']("icon")))) {
|
|
38728
|
-
img = "" + "[" + (node.$alt()) + "]"
|
|
38796
|
+
img = "" + "[" + (node.$alt()) + "]"
|
|
38797
|
+
}
|
|
38729
38798
|
} else {
|
|
38730
38799
|
|
|
38731
|
-
|
|
38732
|
-
|
|
38733
|
-
if ($truthy(node['$attr?']("width"))) {
|
|
38734
|
-
attrs['$<<']("" + " width=\"" + (node.$attr("width")) + "\"")};
|
|
38735
|
-
if ($truthy(node['$attr?']("height"))) {
|
|
38736
|
-
attrs['$<<']("" + " height=\"" + (node.$attr("height")) + "\"")};
|
|
38737
|
-
if ($truthy(node['$attr?']("title"))) {
|
|
38738
|
-
attrs['$<<']("" + " title=\"" + (node.$attr("title")) + "\"")};
|
|
38739
|
-
attrs = (function() {if ($truthy(attrs['$empty?']())) {
|
|
38740
|
-
return ""
|
|
38800
|
+
attrs = (function() {if ($truthy(node['$attr?']("width"))) {
|
|
38801
|
+
return "" + " width=\"" + (node.$attr("width")) + "\""
|
|
38741
38802
|
} else {
|
|
38742
|
-
return
|
|
38803
|
+
return ""
|
|
38743
38804
|
}; return nil; })();
|
|
38744
|
-
if ($truthy(
|
|
38745
|
-
|
|
38805
|
+
if ($truthy(node['$attr?']("height"))) {
|
|
38806
|
+
attrs = "" + (attrs) + " height=\"" + (node.$attr("height")) + "\""};
|
|
38807
|
+
if ($truthy(node['$attr?']("title"))) {
|
|
38808
|
+
attrs = "" + (attrs) + " title=\"" + (node.$attr("title")) + "\""};
|
|
38809
|
+
if ($truthy(($truthy($a = ($truthy($b = node['$attr?']("format", "svg")) ? $b : target['$include?'](".svg"))) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $a))) {
|
|
38810
|
+
if ($truthy(node['$option?']("inline"))) {
|
|
38746
38811
|
img = ($truthy($a = self.$read_svg_contents(node, target)) ? $a : "" + "<span class=\"alt\">" + (node.$alt()) + "</span>")
|
|
38747
|
-
} else if ($truthy(
|
|
38812
|
+
} else if ($truthy(node['$option?']("interactive"))) {
|
|
38748
38813
|
|
|
38749
38814
|
fallback = (function() {if ($truthy(node['$attr?']("fallback"))) {
|
|
38750
38815
|
return "" + "<img src=\"" + (node.$image_uri(node.$attr("fallback"))) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">"
|
|
38751
38816
|
} else {
|
|
38752
38817
|
return "" + "<span class=\"alt\">" + (node.$alt()) + "</span>"
|
|
38753
38818
|
}; return nil; })();
|
|
38754
|
-
img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (attrs) + ">" + (fallback) + "</object>";
|
|
38755
|
-
|
|
38756
|
-
|
|
38757
|
-
|
|
38819
|
+
img = "" + "<object type=\"image/svg+xml\" data=\"" + (node.$image_uri(target)) + "\"" + (attrs) + ">" + (fallback) + "</object>";
|
|
38820
|
+
} else {
|
|
38821
|
+
img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">"
|
|
38822
|
+
}
|
|
38758
38823
|
} else {
|
|
38759
|
-
|
|
38760
|
-
|
|
38761
|
-
}; return nil; })()) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">");
|
|
38824
|
+
img = "" + "<img src=\"" + (node.$image_uri(target)) + "\" alt=\"" + (self.$encode_attribute_value(node.$alt())) + "\"" + (attrs) + (self.void_element_slash) + ">"
|
|
38825
|
+
};
|
|
38762
38826
|
};
|
|
38763
38827
|
if ($truthy(node['$attr?']("link"))) {
|
|
38764
38828
|
img = "" + "<a class=\"image\" href=\"" + (node.$attr("link")) + "\"" + (self.$append_link_constraint_attrs(node).$join()) + ">" + (img) + "</a>"};
|
|
38829
|
+
class_attr_val = type;
|
|
38765
38830
|
if ($truthy((role = node.$role()))) {
|
|
38766
|
-
if ($truthy(node['$attr?']("float"))) {
|
|
38767
|
-
|
|
38831
|
+
class_attr_val = (function() {if ($truthy(node['$attr?']("float"))) {
|
|
38832
|
+
return "" + (class_attr_val) + " " + (node.$attr("float")) + " " + (role)
|
|
38768
38833
|
} else {
|
|
38769
|
-
|
|
38770
|
-
}
|
|
38834
|
+
return "" + (class_attr_val) + " " + (role)
|
|
38835
|
+
}; return nil; })()
|
|
38771
38836
|
} else if ($truthy(node['$attr?']("float"))) {
|
|
38772
|
-
class_attr_val = "" + (
|
|
38773
|
-
} else {
|
|
38774
|
-
class_attr_val = type
|
|
38775
|
-
};
|
|
38837
|
+
class_attr_val = "" + (class_attr_val) + " " + (node.$attr("float"))};
|
|
38776
38838
|
return "" + "<span class=\"" + (class_attr_val) + "\">" + (img) + "</span>";
|
|
38777
38839
|
}, $Html5Converter_convert_inline_image$54.$$arity = 1);
|
|
38778
38840
|
|
|
38779
|
-
Opal.def(self, '$convert_inline_indexterm', $Html5Converter_convert_inline_indexterm$
|
|
38841
|
+
Opal.def(self, '$convert_inline_indexterm', $Html5Converter_convert_inline_indexterm$55 = function $$convert_inline_indexterm(node) {
|
|
38780
38842
|
var self = this;
|
|
38781
38843
|
|
|
38782
38844
|
if (node.$type()['$==']("visible")) {
|
|
@@ -38784,9 +38846,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38784
38846
|
} else {
|
|
38785
38847
|
return ""
|
|
38786
38848
|
}
|
|
38787
|
-
}, $Html5Converter_convert_inline_indexterm$
|
|
38849
|
+
}, $Html5Converter_convert_inline_indexterm$55.$$arity = 1);
|
|
38788
38850
|
|
|
38789
|
-
Opal.def(self, '$convert_inline_kbd', $Html5Converter_convert_inline_kbd$
|
|
38851
|
+
Opal.def(self, '$convert_inline_kbd', $Html5Converter_convert_inline_kbd$56 = function $$convert_inline_kbd(node) {
|
|
38790
38852
|
var self = this, keys = nil;
|
|
38791
38853
|
|
|
38792
38854
|
if ((keys = node.$attr("keys")).$size()['$=='](1)) {
|
|
@@ -38794,9 +38856,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38794
38856
|
} else {
|
|
38795
38857
|
return "" + "<span class=\"keyseq\"><kbd>" + (keys.$join("</kbd>+<kbd>")) + "</kbd></span>"
|
|
38796
38858
|
}
|
|
38797
|
-
}, $Html5Converter_convert_inline_kbd$
|
|
38859
|
+
}, $Html5Converter_convert_inline_kbd$56.$$arity = 1);
|
|
38798
38860
|
|
|
38799
|
-
Opal.def(self, '$convert_inline_menu', $Html5Converter_convert_inline_menu$
|
|
38861
|
+
Opal.def(self, '$convert_inline_menu', $Html5Converter_convert_inline_menu$57 = function $$convert_inline_menu(node) {
|
|
38800
38862
|
var self = this, caret = nil, submenu_joiner = nil, menu = nil, submenus = nil, menuitem = nil;
|
|
38801
38863
|
|
|
38802
38864
|
|
|
@@ -38816,9 +38878,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38816
38878
|
} else {
|
|
38817
38879
|
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>"
|
|
38818
38880
|
};
|
|
38819
|
-
}, $Html5Converter_convert_inline_menu$
|
|
38881
|
+
}, $Html5Converter_convert_inline_menu$57.$$arity = 1);
|
|
38820
38882
|
|
|
38821
|
-
Opal.def(self, '$convert_inline_quoted', $Html5Converter_convert_inline_quoted$
|
|
38883
|
+
Opal.def(self, '$convert_inline_quoted', $Html5Converter_convert_inline_quoted$58 = function $$convert_inline_quoted(node) {
|
|
38822
38884
|
var $a, $b, self = this, open = nil, close = nil, tag = nil, class_attr = nil;
|
|
38823
38885
|
|
|
38824
38886
|
|
|
@@ -38844,10 +38906,10 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38844
38906
|
} else {
|
|
38845
38907
|
return "" + (open) + (node.$text()) + (close)
|
|
38846
38908
|
};
|
|
38847
|
-
}, $Html5Converter_convert_inline_quoted$
|
|
38909
|
+
}, $Html5Converter_convert_inline_quoted$58.$$arity = 1);
|
|
38848
38910
|
|
|
38849
|
-
Opal.def(self, '$read_svg_contents', $Html5Converter_read_svg_contents$
|
|
38850
|
-
var $$
|
|
38911
|
+
Opal.def(self, '$read_svg_contents', $Html5Converter_read_svg_contents$59 = function $$read_svg_contents(node, target) {
|
|
38912
|
+
var $$60, self = this, svg = nil, old_start_tag = nil, new_start_tag = nil, start_tag_match = nil;
|
|
38851
38913
|
|
|
38852
38914
|
|
|
38853
38915
|
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}))))) {
|
|
@@ -38859,7 +38921,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38859
38921
|
svg = svg.$sub($$($nesting, 'SvgPreambleRx'), "")
|
|
38860
38922
|
};
|
|
38861
38923
|
old_start_tag = (new_start_tag = (start_tag_match = nil));
|
|
38862
|
-
$send(["width", "height"], 'each', [], ($$
|
|
38924
|
+
$send(["width", "height"], 'each', [], ($$60 = function(dim){var self = $$60.$$s || this, $a, $b;
|
|
38863
38925
|
|
|
38864
38926
|
|
|
38865
38927
|
|
|
@@ -38877,14 +38939,14 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38877
38939
|
return nil;};
|
|
38878
38940
|
new_start_tag = (old_start_tag = start_tag_match['$[]'](0)).$gsub($$($nesting, 'DimensionAttributeRx'), "");
|
|
38879
38941
|
};
|
|
38880
|
-
return (new_start_tag = "" + (new_start_tag.$chop()) + " " + (dim) + "=\"" + (node.$attr(dim)) + "\">");}, $$
|
|
38942
|
+
return (new_start_tag = "" + (new_start_tag.$chop()) + " " + (dim) + "=\"" + (node.$attr(dim)) + "\">");}, $$60.$$s = self, $$60.$$arity = 1, $$60));
|
|
38881
38943
|
if ($truthy(new_start_tag)) {
|
|
38882
38944
|
svg = "" + (new_start_tag) + (svg['$[]'](Opal.Range.$new(old_start_tag.$length(), -1, false)))};};
|
|
38883
38945
|
return svg;
|
|
38884
|
-
}, $Html5Converter_read_svg_contents$
|
|
38946
|
+
}, $Html5Converter_read_svg_contents$59.$$arity = 2);
|
|
38885
38947
|
self.$private();
|
|
38886
38948
|
|
|
38887
|
-
Opal.def(self, '$append_boolean_attribute', $Html5Converter_append_boolean_attribute$
|
|
38949
|
+
Opal.def(self, '$append_boolean_attribute', $Html5Converter_append_boolean_attribute$61 = function $$append_boolean_attribute(name, xml) {
|
|
38888
38950
|
var self = this;
|
|
38889
38951
|
|
|
38890
38952
|
if ($truthy(xml)) {
|
|
@@ -38892,9 +38954,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38892
38954
|
} else {
|
|
38893
38955
|
return "" + " " + (name)
|
|
38894
38956
|
}
|
|
38895
|
-
}, $Html5Converter_append_boolean_attribute$
|
|
38957
|
+
}, $Html5Converter_append_boolean_attribute$61.$$arity = 2);
|
|
38896
38958
|
|
|
38897
|
-
Opal.def(self, '$append_link_constraint_attrs', $Html5Converter_append_link_constraint_attrs$
|
|
38959
|
+
Opal.def(self, '$append_link_constraint_attrs', $Html5Converter_append_link_constraint_attrs$62 = function $$append_link_constraint_attrs(node, attrs) {
|
|
38898
38960
|
var $a, self = this, rel = nil, window = nil;
|
|
38899
38961
|
|
|
38900
38962
|
|
|
@@ -38916,9 +38978,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38916
38978
|
} else if ($truthy(rel)) {
|
|
38917
38979
|
attrs['$<<']("" + " rel=\"" + (rel) + "\"")};
|
|
38918
38980
|
return attrs;
|
|
38919
|
-
}, $Html5Converter_append_link_constraint_attrs$
|
|
38981
|
+
}, $Html5Converter_append_link_constraint_attrs$62.$$arity = -2);
|
|
38920
38982
|
|
|
38921
|
-
Opal.def(self, '$encode_attribute_value', $Html5Converter_encode_attribute_value$
|
|
38983
|
+
Opal.def(self, '$encode_attribute_value', $Html5Converter_encode_attribute_value$63 = function $$encode_attribute_value(val) {
|
|
38922
38984
|
var self = this;
|
|
38923
38985
|
|
|
38924
38986
|
if ($truthy(val['$include?']("\""))) {
|
|
@@ -38927,9 +38989,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38927
38989
|
} else {
|
|
38928
38990
|
return val
|
|
38929
38991
|
}
|
|
38930
|
-
}, $Html5Converter_encode_attribute_value$
|
|
38992
|
+
}, $Html5Converter_encode_attribute_value$63.$$arity = 1);
|
|
38931
38993
|
|
|
38932
|
-
Opal.def(self, '$generate_manname_section', $Html5Converter_generate_manname_section$
|
|
38994
|
+
Opal.def(self, '$generate_manname_section', $Html5Converter_generate_manname_section$64 = function $$generate_manname_section(node) {
|
|
38933
38995
|
var $a, self = this, manname_title = nil, next_section = nil, next_section_title = nil, manname_id_attr = nil, manname_id = nil;
|
|
38934
38996
|
|
|
38935
38997
|
|
|
@@ -38942,9 +39004,9 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38942
39004
|
return ""
|
|
38943
39005
|
}; return nil; })();
|
|
38944
39006
|
return "" + "<h2" + (manname_id_attr) + ">" + (manname_title) + "</h2>\n" + "<div class=\"sectionbody\">\n" + "<p>" + (node.$attr("mannames").$join(", ")) + " - " + (node.$attr("manpurpose")) + "</p>\n" + "</div>";
|
|
38945
|
-
}, $Html5Converter_generate_manname_section$
|
|
39007
|
+
}, $Html5Converter_generate_manname_section$64.$$arity = 1);
|
|
38946
39008
|
|
|
38947
|
-
Opal.def(self, '$get_root_document', $Html5Converter_get_root_document$
|
|
39009
|
+
Opal.def(self, '$get_root_document', $Html5Converter_get_root_document$65 = function $$get_root_document(node) {
|
|
38948
39010
|
var $a, self = this;
|
|
38949
39011
|
|
|
38950
39012
|
|
|
@@ -38952,12 +39014,12 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38952
39014
|
node = node.$parent_document()
|
|
38953
39015
|
};
|
|
38954
39016
|
return node;
|
|
38955
|
-
}, $Html5Converter_get_root_document$
|
|
39017
|
+
}, $Html5Converter_get_root_document$65.$$arity = 1);
|
|
38956
39018
|
|
|
38957
|
-
Opal.def(self, '$method_missing', $Html5Converter_method_missing$
|
|
38958
|
-
var $post_args, args, $b, $iter = $Html5Converter_method_missing$
|
|
39019
|
+
Opal.def(self, '$method_missing', $Html5Converter_method_missing$66 = function $$method_missing(id, $a) {
|
|
39020
|
+
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;
|
|
38959
39021
|
|
|
38960
|
-
if ($iter) $Html5Converter_method_missing$
|
|
39022
|
+
if ($iter) $Html5Converter_method_missing$66.$$p = null;
|
|
38961
39023
|
// Prepare super implicit arguments
|
|
38962
39024
|
for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {
|
|
38963
39025
|
$zuper[$zuper_i] = arguments[$zuper_i];
|
|
@@ -38971,10 +39033,10 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38971
39033
|
|
|
38972
39034
|
return $send(self, 'send', ["" + "convert_" + (name)].concat(Opal.to_a(args)));
|
|
38973
39035
|
} else {
|
|
38974
|
-
return $send(self, Opal.find_super_dispatcher(self, 'method_missing', $Html5Converter_method_missing$
|
|
39036
|
+
return $send(self, Opal.find_super_dispatcher(self, 'method_missing', $Html5Converter_method_missing$66, false), $zuper, $iter)
|
|
38975
39037
|
};
|
|
38976
|
-
}, $Html5Converter_method_missing$
|
|
38977
|
-
return (Opal.def(self, '$respond_to_missing?', $Html5Converter_respond_to_missing$ques$
|
|
39038
|
+
}, $Html5Converter_method_missing$66.$$arity = -2);
|
|
39039
|
+
return (Opal.def(self, '$respond_to_missing?', $Html5Converter_respond_to_missing$ques$67 = function(id, $a) {
|
|
38978
39040
|
var $post_args, options, $b, self = this, name = nil;
|
|
38979
39041
|
|
|
38980
39042
|
|
|
@@ -38983,7 +39045,7 @@ Opal.modules["asciidoctor/converter/html5"] = function(Opal) {
|
|
|
38983
39045
|
|
|
38984
39046
|
options = $post_args;;
|
|
38985
39047
|
return ($truthy($b = (name = id.$to_s())['$start_with?']("convert_")['$!']()) ? self['$handles?'](name) : $b);
|
|
38986
|
-
}, $Html5Converter_respond_to_missing$ques$
|
|
39048
|
+
}, $Html5Converter_respond_to_missing$ques$67.$$arity = -2), nil) && 'respond_to_missing?';
|
|
38987
39049
|
})($$($nesting, 'Converter'), $$$($$($nesting, 'Converter'), 'Base'), $nesting)
|
|
38988
39050
|
})($nesting[0], $nesting)
|
|
38989
39051
|
};
|
|
@@ -40645,6 +40707,12 @@ Opal.modules["asciidoctor/js/asciidoctor_ext/document"] = function(Opal) {
|
|
|
40645
40707
|
var nil = Opal.nil
|
|
40646
40708
|
var utc_offset
|
|
40647
40709
|
var source_date_epoch
|
|
40710
|
+
var localdate
|
|
40711
|
+
var localyear
|
|
40712
|
+
var localtime
|
|
40713
|
+
var localdatetime
|
|
40714
|
+
var docdate
|
|
40715
|
+
var doctime
|
|
40648
40716
|
|
|
40649
40717
|
var getYear = function (time, utc_offset) {
|
|
40650
40718
|
return utc_offset === 0 ? time.getUTCFullYear() : time.getFullYear()
|
|
@@ -40732,6 +40800,7 @@ Opal.modules["asciidoctor/js/asciidoctor_ext/document"] = function(Opal) {
|
|
|
40732
40800
|
var mtime_hours = ('0' + (getHours(input_mtime, utc_offset))).slice(-2)
|
|
40733
40801
|
var mtime_minutes = ('0' + (input_mtime.getMinutes())).slice(-2)
|
|
40734
40802
|
var mtime_seconds = ('0' + (input_mtime.getSeconds())).slice(-2)
|
|
40803
|
+
var utc_offset_format
|
|
40735
40804
|
if (utc_offset === 0) {
|
|
40736
40805
|
utc_offset_format = 'UTC'
|
|
40737
40806
|
} else if (utc_offset > 0) {
|
|
@@ -41607,7 +41676,7 @@ AbstractBlock.prototype.setTitle = function (title) {
|
|
|
41607
41676
|
*
|
|
41608
41677
|
* If a caption has already been assigned to this block, do nothing.
|
|
41609
41678
|
*
|
|
41610
|
-
* The parts of a complete caption are:
|
|
41679
|
+
* The parts of a complete caption are: `<prefix> <number>. <title>`
|
|
41611
41680
|
* This partial caption represents the part the precedes the title.
|
|
41612
41681
|
*
|
|
41613
41682
|
* @param {string} value - the String caption to assign to this block or nil to use document attribute.
|
|
@@ -46385,6 +46454,21 @@ ConverterFactory.register = function (converter, backends) {
|
|
|
46385
46454
|
var bridgeComposedMethodToInstance = function (obj, instance) {
|
|
46386
46455
|
bridgeMethodToInstance(obj, instance, '$composed', 'composed')
|
|
46387
46456
|
}
|
|
46457
|
+
var bridgeEqEqMethodToInstance = function (obj, instance) {
|
|
46458
|
+
bridgeMethodToInstance(obj, instance, '$==', '==', function (other) {
|
|
46459
|
+
return instance === other
|
|
46460
|
+
})
|
|
46461
|
+
}
|
|
46462
|
+
var bridgeSendMethodToInstance = function (obj, instance) {
|
|
46463
|
+
bridgeMethodToInstance(obj, instance, '$send', 'send', function (symbol) {
|
|
46464
|
+
var args = Array.prototype.slice.call(arguments, 1)
|
|
46465
|
+
var func = instance['$' + symbol]
|
|
46466
|
+
if (func) {
|
|
46467
|
+
return func.apply(instance, args)
|
|
46468
|
+
}
|
|
46469
|
+
throw new Error(`undefined method \`${symbol}\` for \`${instance.toString()}\``)
|
|
46470
|
+
})
|
|
46471
|
+
}
|
|
46388
46472
|
var bridgeMethodToInstance = function (obj, instance, methodName, functionName, defaultImplementation) {
|
|
46389
46473
|
if (typeof obj[methodName] === 'undefined') {
|
|
46390
46474
|
if (typeof obj[functionName] === 'function') {
|
|
@@ -46451,6 +46535,8 @@ ConverterFactory.register = function (converter, backends) {
|
|
|
46451
46535
|
}
|
|
46452
46536
|
bridgeHandlesMethodToInstance(converter, converter)
|
|
46453
46537
|
bridgeComposedMethodToInstance(converter, converter)
|
|
46538
|
+
bridgeEqEqMethodToInstance(converter, converter)
|
|
46539
|
+
bridgeSendMethodToInstance(converter, converter)
|
|
46454
46540
|
addRespondToMethod(converter)
|
|
46455
46541
|
object = converter
|
|
46456
46542
|
}
|
|
@@ -46550,7 +46636,7 @@ Html5Converter.prototype.convert = function (node, transform, opts) {
|
|
|
46550
46636
|
}
|
|
46551
46637
|
|
|
46552
46638
|
|
|
46553
|
-
var ASCIIDOCTOR_JS_VERSION = '2.2.
|
|
46639
|
+
var ASCIIDOCTOR_JS_VERSION = '2.2.6';
|
|
46554
46640
|
|
|
46555
46641
|
/**
|
|
46556
46642
|
* Get Asciidoctor.js version number.
|