@asciidoctor/core 2.2.7 → 2.2.9
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 +74 -41
- package/dist/browser/asciidoctor.min.js +1373 -1371
- package/dist/graalvm/asciidoctor.js +73 -40
- package/dist/node/asciidoctor.js +73 -40
- package/package.json +4 -4
|
@@ -22803,7 +22803,11 @@ Opal.modules["asciidoctor/rx"] = function(Opal) {
|
|
|
22803
22803
|
Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
22804
22804
|
Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
|
|
22805
22805
|
Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
22806
|
-
|
|
22806
|
+
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
22807
|
+
Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|\\\\?<(?=\\\\?(?:https?|file|ftp|irc)(:))|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|(?!\\2)([^\\s]+?)>|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"))
|
|
22808
|
+
} else {
|
|
22809
|
+
nil
|
|
22810
|
+
};
|
|
22807
22811
|
Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
22808
22812
|
Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*$"));
|
|
22809
22813
|
Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
@@ -23495,10 +23499,11 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
23495
23499
|
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$slice(1, (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$length());};
|
|
23496
23500
|
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](3))['$start_with?']($$($nesting, 'RS')))) {
|
|
23497
23501
|
return "" + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))) + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$slice($rb_plus((($c = $gvars['~']) === nil ? nil : $c['$[]'](1)).$length(), 1), (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$length()));};
|
|
23498
|
-
|
|
23499
|
-
|
|
23500
|
-
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));
|
|
23501
|
-
|
|
23502
|
+
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](6)))) {
|
|
23503
|
+
} else {
|
|
23504
|
+
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));
|
|
23505
|
+
};
|
|
23506
|
+
doc.$register("links", (target = $rb_plus((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)), (($c = $gvars['~']) === nil ? nil : $c['$[]'](6)))));
|
|
23502
23507
|
link_text = (function() {if ($truthy(doc_attrs['$key?']("hide-uri-scheme"))) {
|
|
23503
23508
|
|
|
23504
23509
|
return target.$sub($$($nesting, 'UriSniffRx'), "");
|
|
@@ -24799,7 +24804,7 @@ Opal.modules["asciidoctor/version"] = function(Opal) {
|
|
|
24799
24804
|
|
|
24800
24805
|
var $nesting = [self].concat($parent_nesting);
|
|
24801
24806
|
|
|
24802
|
-
Opal.const_set($nesting[0], 'VERSION', "2.0.
|
|
24807
|
+
Opal.const_set($nesting[0], 'VERSION', "2.0.23")
|
|
24803
24808
|
})($nesting[0], $nesting)
|
|
24804
24809
|
};
|
|
24805
24810
|
|
|
@@ -29057,7 +29062,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
29057
29062
|
}
|
|
29058
29063
|
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;
|
|
29059
29064
|
|
|
29060
|
-
Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$extend', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$skip_blank_lines', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$[]=', '$-', '$finalize_header', '$nil_or_empty?', '$title=', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$include?', '$sub_specialchars', '$sub_attributes', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$==', '$!', '$register', '$process_authors', '$update', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$save', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$split', '$title', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$style=', '$parent=', '$content_model', '$content_model=', '$lines', '$subs', '$size', '$context=', '$shift', '$unwrap_standalone_preamble', '$source_location', '$merge', '$fetch', '$parse_block_metadata_line', '$extensions', '$block_macros?', '$mark', '$read_line', '$terminator', '$to_s', '$masq', '$to_sym', '$registered_for_block?', '$debug?', '$debug', '$cursor_at_mark', '$strict_verbatim_paragraphs', '$unshift_line', '$markdown_syntax', '$keys', '$chr', '$uniform?', '$length', '$end_with?', '$===', '$parse_attributes', '$attribute_missing', '$tr', '$basename', '$assign_caption', '$registered_for_block_macro?', '$config', '$process_method', '$replace', '$parse_callout_list', '$callouts', '$parse_list', '$parse_description_list', '$underline_style_section_titles', '$is_section_title?', '$peek_line', '$atx_section_title?', '$generate_id', '$level=', '$read_paragraph_lines', '$adjust_indentation!', '$map!', '$slice', '$pop', '$build_block', '$apply_subs', '$chop', '$catalog_inline_anchors', '$rekey', '$index', '$strip', '$parse_table', '$each', '$raise', '$title?', '$update_attributes', '$commit_subs', '$sub?', '$catalog_callouts', '$source', '$remove_sub', '$block_terminates_paragraph', '$to_proc', '$nil?', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$marker=', '$catalog_inline_biblio_anchor', '$set_option', '$text=', '$resolve_ordered_list_marker', '$read_lines_for_list_item', '$skip_line_comments', '$unshift_lines', '$fold_first', '$text?', '$is_sibling_list_item?', '$concat', '$find', '$casecmp', '$sectname=', '$special=', '$numbered=', '$numbered', '$lineno', '$peek_lines', '$setext_section_title?', '$abs', '$cursor_at_prev_line', '$process_attribute_entries', '$next_line_empty?', '$apply_header_subs', '$rstrip', '$each_with_index', '$compact', '$to_h', '$squeeze', '$to_a', '$parse_style_attribute', '$process_attribute_entry', '$skip_comment_lines', '$store_attribute', '$sanitize_attribute_name', '$set_attribute', '$save_to', '$delete_attribute', '$ord', '$int_to_roman', '$resolve_list_marker', '$parse_colspecs', '$create_columns', '$has_header_option=', '$format', '$starts_with_delimiter?', '$close_open_cell', '$parse_cellspec', '$delimiter', '$match_delimiter', '$pre_match', '$post_match', '$buffer_has_unclosed_quotes?', '$skip_past_delimiter', '$buffer', '$buffer=', '$skip_past_escaped_delimiter', '$keep_cell_open', '$push_cellspec', '$close_cell', '$cell_open?', '$columns', '$assign_column_widths', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
|
|
29065
|
+
Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$extend', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$skip_blank_lines', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$[]=', '$-', '$finalize_header', '$nil_or_empty?', '$title=', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$include?', '$sub_specialchars', '$sub_attributes', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$==', '$!', '$register', '$process_authors', '$update', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$save', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$split', '$title', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$style=', '$parent=', '$content_model', '$content_model=', '$lines', '$subs', '$size', '$context=', '$shift', '$unwrap_standalone_preamble', '$source_location', '$merge', '$fetch', '$parse_block_metadata_line', '$extensions', '$block_macros?', '$mark', '$read_line', '$terminator', '$to_s', '$masq', '$to_sym', '$registered_for_block?', '$debug?', '$debug', '$cursor_at_mark', '$strict_verbatim_paragraphs', '$unshift_line', '$markdown_syntax', '$keys', '$chr', '$uniform?', '$length', '$end_with?', '$===', '$parse_attributes', '$attribute_missing', '$tr', '$basename', '$assign_caption', '$registered_for_block_macro?', '$config', '$process_method', '$replace', '$parse_callout_list', '$callouts', '$parse_list', '$parse_description_list', '$underline_style_section_titles', '$is_section_title?', '$peek_line', '$atx_section_title?', '$generate_id', '$level=', '$read_paragraph_lines', '$adjust_indentation!', '$map!', '$slice', '$pop', '$build_block', '$apply_subs', '$chop', '$catalog_inline_anchors', '$rekey', '$index', '$strip', '$parse_table', '$each', '$raise', '$title?', '$update_attributes', '$commit_subs', '$sub?', '$catalog_callouts', '$source', '$remove_sub', '$block_terminates_paragraph', '$to_proc', '$nil?', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$marker=', '$catalog_inline_biblio_anchor', '$set_option', '$text=', '$resolve_ordered_list_marker', '$read_lines_for_list_item', '$skip_line_comments', '$unshift_lines', '$fold_first', '$text?', '$is_sibling_list_item?', '$concat', '$find', '$casecmp', '$sectname=', '$special=', '$numbered=', '$numbered', '$lineno', '$peek_lines', '$setext_section_title?', '$abs', '$cursor_at_prev_line', '$process_attribute_entries', '$next_line_empty?', '$apply_header_subs', '$rstrip', '$each_with_index', '$compact', '$to_h', '$squeeze', '$to_a', '$parse_style_attribute', '$process_attribute_entry', '$skip_comment_lines', '$store_attribute', '$sanitize_attribute_name', '$set_attribute', '$save_to', '$delete_attribute', '$ord', '$int_to_roman', '$resolve_list_marker', '$parse_colspecs', '$create_columns', '$has_header_option=', '$format', '$starts_with_delimiter?', '$close_open_cell', '$parse_cellspec', '$delimiter', '$match_delimiter', '$pre_match', '$post_match', '$buffer_has_unclosed_quotes?', '$skip_past_delimiter', '$buffer', '$buffer=', '$skip_past_escaped_delimiter', '$keep_cell_open', '$push_cellspec', '$close_cell', '$cell_open?', '$close_table', '$columns', '$assign_column_widths', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
|
|
29061
29066
|
return (function($base, $parent_nesting) {
|
|
29062
29067
|
var self = $module($base, 'Asciidoctor');
|
|
29063
29068
|
|
|
@@ -30805,6 +30810,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
30805
30810
|
};
|
|
30806
30811
|
if ($truthy(interrupt)) {
|
|
30807
30812
|
|
|
30813
|
+
this_line = nil;
|
|
30808
30814
|
reader.$unshift_lines(block_attribute_lines);
|
|
30809
30815
|
break;;};
|
|
30810
30816
|
} else if ($truthy((($b = continuation['$==']("active")) ? this_line['$empty?']()['$!']() : continuation['$==']("active")))) {
|
|
@@ -31948,6 +31954,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
31948
31954
|
}
|
|
31949
31955
|
};
|
|
31950
31956
|
};
|
|
31957
|
+
parser_ctx.$close_table();
|
|
31951
31958
|
if ($truthy(($truthy($a = (($logical_op_recvr_tmp_2 = table.$attributes()), ($truthy($b = $logical_op_recvr_tmp_2['$[]']("colcount")) ? $b : (($writer = ["colcount", table.$columns().$size()]), $send($logical_op_recvr_tmp_2, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)])))['$=='](0)) ? $a : explicit_colspecs))) {
|
|
31952
31959
|
} else {
|
|
31953
31960
|
table.$assign_column_widths()
|
|
@@ -33554,7 +33561,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
33554
33561
|
|
|
33555
33562
|
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;
|
|
33556
33563
|
|
|
33557
|
-
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.
|
|
33564
|
+
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.skipping = self.$$prototype.look_ahead = self.$$prototype.conditional_stack = nil;
|
|
33558
33565
|
|
|
33559
33566
|
self.$attr_reader("include_stack");
|
|
33560
33567
|
|
|
@@ -33840,6 +33847,10 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
33840
33847
|
};
|
|
33841
33848
|
if ($truthy(line['$empty?']())) {
|
|
33842
33849
|
|
|
33850
|
+
if ($truthy(self.skipping)) {
|
|
33851
|
+
|
|
33852
|
+
self.$shift();
|
|
33853
|
+
return nil;};
|
|
33843
33854
|
self.look_ahead = $rb_plus(self.look_ahead, 1);
|
|
33844
33855
|
return line;};
|
|
33845
33856
|
if ($truthy(($truthy($a = ($truthy($b = line['$end_with?']("]")) ? line['$start_with?']("[")['$!']() : $b)) ? line['$include?']("::") : $a))) {
|
|
@@ -34940,7 +34951,7 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
34940
34951
|
}
|
|
34941
34952
|
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, $gvars = Opal.gvars;
|
|
34942
34953
|
|
|
34943
|
-
Opal.add_stubs(['$attr_accessor', '$attr_reader', '$new', '$[]', '$>', '$to_i', '$<', '$==', '$[]=', '$-', '$attributes', '$truncate', '$*', '$/', '$to_f', '$empty?', '$body', '$each', '$<<', '$size', '$+', '$assign_column_widths', '$warn', '$logger', '$update_attributes', '$assign_width', '$round', '$map', '$shift', '$reinitialize', '$head=', '$nil?', '$unshift', '$pop', '$foot=', '$parent', '$sourcemap', '$dup', '$header_row?', '$table', '$style', '$merge', '$delete', '$===', '$start_with?', '$rstrip', '$slice', '$length', '$advance', '$lstrip', '$strip', '$split', '$include?', '$readlines', '$catalog_inline_anchor', '$=~', '$apply_subs', '$attr_writer', '$convert', '$text', '$!=', '$file', '$lineno', '$include', '$to_set', '$mark', '$key?', '$nested?', '$document', '$error', '$message_with_context', '$cursor_at_prev_line', '$nil_or_empty?', '$escape', '$columns', '$match', '$chop', '$end_with?', '$gsub', '$!', '$push_cellspec', '$cell_open?', '$close_cell', '$take_cellspec', '$squeeze', '$upto', '$times', '$cursor_before_mark', '$rowspan', '$activate_rowspan', '$colspan', '$end_of_row?', '$close_row', '$private', '$rows', '$effective_column_visits']);
|
|
34954
|
+
Opal.add_stubs(['$attr_accessor', '$attr_reader', '$new', '$[]', '$>', '$to_i', '$<', '$==', '$[]=', '$-', '$attributes', '$truncate', '$*', '$/', '$to_f', '$empty?', '$body', '$each', '$<<', '$size', '$+', '$assign_column_widths', '$warn', '$logger', '$update_attributes', '$assign_width', '$round', '$map', '$shift', '$reinitialize', '$head=', '$nil?', '$unshift', '$pop', '$foot=', '$parent', '$sourcemap', '$dup', '$header_row?', '$table', '$style', '$merge', '$delete', '$===', '$start_with?', '$rstrip', '$slice', '$length', '$advance', '$lstrip', '$strip', '$split', '$include?', '$readlines', '$catalog_inline_anchor', '$=~', '$apply_subs', '$attr_writer', '$convert', '$text', '$!=', '$file', '$lineno', '$include', '$to_set', '$mark', '$key?', '$nested?', '$document', '$error', '$message_with_context', '$cursor_at_prev_line', '$nil_or_empty?', '$escape', '$columns', '$match', '$chop', '$end_with?', '$gsub', '$!', '$push_cellspec', '$cell_open?', '$close_cell', '$take_cellspec', '$squeeze', '$upto', '$times', '$cursor_before_mark', '$rowspan', '$activate_rowspan', '$colspan', '$end_of_row?', '$close_row', '$private', '$rows', '$<=>', '$effective_column_visits']);
|
|
34944
34955
|
return (function($base, $parent_nesting) {
|
|
34945
34956
|
var self = $module($base, 'Asciidoctor');
|
|
34946
34957
|
|
|
@@ -35356,7 +35367,7 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
35356
35367
|
if ($truthy(inner_document_lines['$empty?']())) {
|
|
35357
35368
|
} else if ($truthy((unprocessed_line1 = inner_document_lines['$[]'](0))['$include?']("::"))) {
|
|
35358
35369
|
|
|
35359
|
-
preprocessed_lines = $$($nesting, 'PreprocessorReader').$new(self.document, [unprocessed_line1]).$readlines();
|
|
35370
|
+
preprocessed_lines = $$($nesting, 'PreprocessorReader').$new(self.document, [unprocessed_line1], inner_document_cursor).$readlines();
|
|
35360
35371
|
if ($truthy((($a = unprocessed_line1['$=='](preprocessed_lines['$[]'](0))) ? $rb_lt(preprocessed_lines.$size(), 2) : unprocessed_line1['$=='](preprocessed_lines['$[]'](0))))) {
|
|
35361
35372
|
} else {
|
|
35362
35373
|
|
|
@@ -35504,9 +35515,9 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
35504
35515
|
(function($base, $super, $parent_nesting) {
|
|
35505
35516
|
var self = $klass($base, $super, 'ParserContext');
|
|
35506
35517
|
|
|
35507
|
-
var $nesting = [self].concat($parent_nesting), $ParserContext_initialize$30, $ParserContext_starts_with_delimiter$ques$31, $ParserContext_match_delimiter$32, $ParserContext_skip_past_delimiter$33, $ParserContext_skip_past_escaped_delimiter$34, $ParserContext_buffer_has_unclosed_quotes$ques$35, $ParserContext_take_cellspec$36, $ParserContext_push_cellspec$37, $ParserContext_keep_cell_open$38, $ParserContext_mark_cell_closed$39, $ParserContext_cell_open$ques$40, $ParserContext_cell_closed$ques$41, $ParserContext_close_open_cell$42, $ParserContext_close_cell$43, $
|
|
35518
|
+
var $nesting = [self].concat($parent_nesting), $ParserContext_initialize$30, $ParserContext_starts_with_delimiter$ques$31, $ParserContext_match_delimiter$32, $ParserContext_skip_past_delimiter$33, $ParserContext_skip_past_escaped_delimiter$34, $ParserContext_buffer_has_unclosed_quotes$ques$35, $ParserContext_take_cellspec$36, $ParserContext_push_cellspec$37, $ParserContext_keep_cell_open$38, $ParserContext_mark_cell_closed$39, $ParserContext_cell_open$ques$40, $ParserContext_cell_closed$ques$41, $ParserContext_close_open_cell$42, $ParserContext_close_cell$43, $ParserContext_close_table$46, $ParserContext_close_row$47, $ParserContext_activate_rowspan$48, $ParserContext_end_of_row$ques$50, $ParserContext_effective_column_visits$51, $ParserContext_advance$52;
|
|
35508
35519
|
|
|
35509
|
-
self.$$prototype.delimiter = self.$$prototype.delimiter_rx = self.$$prototype.buffer = self.$$prototype.cellspecs = self.$$prototype.cell_open = self.$$prototype.format = self.$$prototype.start_cursor_data = self.$$prototype.reader = self.$$prototype.
|
|
35520
|
+
self.$$prototype.delimiter = self.$$prototype.delimiter_rx = self.$$prototype.buffer = self.$$prototype.cellspecs = self.$$prototype.cell_open = self.$$prototype.format = self.$$prototype.start_cursor_data = self.$$prototype.reader = self.$$prototype.column_visits = self.$$prototype.table = self.$$prototype.current_row = self.$$prototype.colcount = self.$$prototype.active_rowspans = self.$$prototype.linenum = nil;
|
|
35510
35521
|
|
|
35511
35522
|
self.$include($$($nesting, 'Logging'));
|
|
35512
35523
|
Opal.const_set($nesting[0], 'FORMATS', ["psv", "csv", "dsv", "tsv"].$to_set());
|
|
@@ -35695,8 +35706,7 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
35695
35706
|
return nil;
|
|
35696
35707
|
}, $ParserContext_close_open_cell$42.$$arity = -1);
|
|
35697
35708
|
|
|
35698
|
-
Opal.def(self, '$close_cell', $ParserContext_close_cell$43 = function $$close_cell(eol) {
|
|
35699
|
-
|
|
35709
|
+
Opal.def(self, '$close_cell', $ParserContext_close_cell$43 = function $$close_cell(eol) {
|
|
35700
35710
|
var $a, $b, $$44, self = this, cell_text = nil, cellspec = nil, repeat = nil, q = nil;
|
|
35701
35711
|
|
|
35702
35712
|
|
|
@@ -35735,7 +35745,7 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
35735
35745
|
cell_text = cell_text.$squeeze(q)
|
|
35736
35746
|
}};
|
|
35737
35747
|
};
|
|
35738
|
-
$send((1), 'upto', [repeat], ($$44 = function(i){var self = $$44.$$s || this, $c, $d, $$45, $e, column = nil, extra_cols = nil, offset = nil, cell = nil;
|
|
35748
|
+
$send((1), 'upto', [repeat], ($$44 = function(i){var self = $$44.$$s || this, $c, $d, $$45, $e, column = nil, extra_cols = nil, offset = nil, cell = nil, cursor_before_mark = nil, row_status = nil;
|
|
35739
35749
|
if (self.colcount == null) self.colcount = nil;
|
|
35740
35750
|
if (self.table == null) self.table = nil;
|
|
35741
35751
|
if (self.current_row == null) self.current_row = nil;
|
|
@@ -35763,13 +35773,10 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
35763
35773
|
j = nil;
|
|
35764
35774
|
};
|
|
35765
35775
|
return self.table.$columns()['$<<']($$$($$($nesting, 'Table'), 'Column').$new(self.table, $rb_plus(offset, j)));}, $$45.$$s = self, $$45.$$arity = 1, $$45));};
|
|
35766
|
-
} else if ($truthy((column = self.table.$columns()['$[]'](self.current_row.$size())))) {
|
|
35767
35776
|
} else {
|
|
35768
|
-
|
|
35769
|
-
self.$logger().$error(self.$message_with_context("dropping cell because it exceeds specified number of columns", $hash2(["source_location"], {"source_location": self.reader.$cursor_before_mark()})));
|
|
35770
|
-
Opal.ret(nil);
|
|
35777
|
+
column = self.table.$columns()['$[]'](self.current_row.$size())
|
|
35771
35778
|
};
|
|
35772
|
-
cell = $$$($$($nesting, 'Table'), 'Cell').$new(column, cell_text, cellspec, $hash2(["cursor"], {"cursor": self.reader.$cursor_before_mark()}));
|
|
35779
|
+
cell = $$$($$($nesting, 'Table'), 'Cell').$new(column, cell_text, cellspec, $hash2(["cursor"], {"cursor": (cursor_before_mark = self.reader.$cursor_before_mark())}));
|
|
35773
35780
|
self.reader.$mark();
|
|
35774
35781
|
if ($truthy(($truthy($c = cell.$rowspan()['$!']()) ? $c : cell.$rowspan()['$=='](1)))) {
|
|
35775
35782
|
} else {
|
|
@@ -35777,22 +35784,44 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
35777
35784
|
};
|
|
35778
35785
|
self.column_visits = $rb_plus(self.column_visits, ($truthy($c = cell.$colspan()) ? $c : 1));
|
|
35779
35786
|
self.current_row['$<<'](cell);
|
|
35780
|
-
if ($truthy(($truthy($c = self['$end_of_row?']()) ? ($truthy($d = ($truthy($e = self.colcount['$!='](-1)) ? $e : $rb_gt(self.linenum, 0))) ? $d : ($truthy($e = eol) ? i['$=='](repeat) : $e)) : $c))) {
|
|
35781
|
-
|
|
35787
|
+
if ($truthy(($truthy($c = $rb_gt((row_status = self['$end_of_row?']()), -1)) ? ($truthy($d = ($truthy($e = self.colcount['$!='](-1)) ? $e : $rb_gt(self.linenum, 0))) ? $d : ($truthy($e = eol) ? i['$=='](repeat) : $e)) : $c))) {
|
|
35788
|
+
if ($truthy($rb_gt(row_status, 0))) {
|
|
35789
|
+
|
|
35790
|
+
self.$logger().$error(self.$message_with_context("dropping cell because it exceeds specified number of columns", $hash2(["source_location"], {"source_location": cursor_before_mark})));
|
|
35791
|
+
return self.$close_row(true);
|
|
35792
|
+
} else {
|
|
35793
|
+
return self.$close_row()
|
|
35794
|
+
}
|
|
35782
35795
|
} else {
|
|
35783
35796
|
return nil
|
|
35784
35797
|
};}, $$44.$$s = self, $$44.$$arity = 1, $$44));
|
|
35785
35798
|
self.cell_open = false;
|
|
35786
35799
|
return nil;
|
|
35787
|
-
} catch ($returner) { if ($returner === Opal.returner) { return $returner.$v } throw $returner; }
|
|
35788
35800
|
}, $ParserContext_close_cell$43.$$arity = -1);
|
|
35801
|
+
|
|
35802
|
+
Opal.def(self, '$close_table', $ParserContext_close_table$46 = function $$close_table() {
|
|
35803
|
+
var self = this;
|
|
35804
|
+
|
|
35805
|
+
|
|
35806
|
+
if (self.column_visits['$=='](0)) {
|
|
35807
|
+
return nil};
|
|
35808
|
+
self.$logger().$error(self.$message_with_context("dropping cells from incomplete row detected end of table", $hash2(["source_location"], {"source_location": self.reader.$cursor_before_mark()})));
|
|
35809
|
+
return nil;
|
|
35810
|
+
}, $ParserContext_close_table$46.$$arity = 0);
|
|
35789
35811
|
self.$private();
|
|
35790
35812
|
|
|
35791
|
-
Opal.def(self, '$close_row', $ParserContext_close_row$
|
|
35813
|
+
Opal.def(self, '$close_row', $ParserContext_close_row$47 = function $$close_row(drop) {
|
|
35792
35814
|
var $a, self = this, $writer = nil;
|
|
35793
35815
|
|
|
35794
35816
|
|
|
35795
|
-
|
|
35817
|
+
|
|
35818
|
+
if (drop == null) {
|
|
35819
|
+
drop = false;
|
|
35820
|
+
};
|
|
35821
|
+
if ($truthy(drop)) {
|
|
35822
|
+
} else {
|
|
35823
|
+
self.table.$rows().$body()['$<<'](self.current_row)
|
|
35824
|
+
};
|
|
35796
35825
|
if (self.colcount['$=='](-1)) {
|
|
35797
35826
|
self.colcount = self.column_visits};
|
|
35798
35827
|
self.column_visits = 0;
|
|
@@ -35800,13 +35829,13 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
35800
35829
|
self.active_rowspans.$shift();
|
|
35801
35830
|
($truthy($a = self.active_rowspans['$[]'](0)) ? $a : (($writer = [0, 0]), $send(self.active_rowspans, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
35802
35831
|
return nil;
|
|
35803
|
-
}, $ParserContext_close_row$
|
|
35832
|
+
}, $ParserContext_close_row$47.$$arity = -1);
|
|
35804
35833
|
|
|
35805
|
-
Opal.def(self, '$activate_rowspan', $ParserContext_activate_rowspan$
|
|
35806
|
-
var $$
|
|
35834
|
+
Opal.def(self, '$activate_rowspan', $ParserContext_activate_rowspan$48 = function $$activate_rowspan(rowspan, colspan) {
|
|
35835
|
+
var $$49, self = this;
|
|
35807
35836
|
|
|
35808
35837
|
|
|
35809
|
-
$send((1), 'upto', [$rb_minus(rowspan, 1)], ($$
|
|
35838
|
+
$send((1), 'upto', [$rb_minus(rowspan, 1)], ($$49 = function(i){var self = $$49.$$s || this, $a, $writer = nil;
|
|
35810
35839
|
if (self.active_rowspans == null) self.active_rowspans = nil;
|
|
35811
35840
|
|
|
35812
35841
|
|
|
@@ -35816,26 +35845,30 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
35816
35845
|
};
|
|
35817
35846
|
$writer = [i, $rb_plus(($truthy($a = self.active_rowspans['$[]'](i)) ? $a : 0), colspan)];
|
|
35818
35847
|
$send(self.active_rowspans, '[]=', Opal.to_a($writer));
|
|
35819
|
-
return $writer[$rb_minus($writer["length"], 1)];}, $$
|
|
35848
|
+
return $writer[$rb_minus($writer["length"], 1)];}, $$49.$$s = self, $$49.$$arity = 1, $$49));
|
|
35820
35849
|
return nil;
|
|
35821
|
-
}, $ParserContext_activate_rowspan$
|
|
35850
|
+
}, $ParserContext_activate_rowspan$48.$$arity = 2);
|
|
35822
35851
|
|
|
35823
|
-
Opal.def(self, '$end_of_row?', $ParserContext_end_of_row$ques$
|
|
35824
|
-
var
|
|
35852
|
+
Opal.def(self, '$end_of_row?', $ParserContext_end_of_row$ques$50 = function() {
|
|
35853
|
+
var self = this;
|
|
35825
35854
|
|
|
35826
|
-
|
|
35827
|
-
|
|
35855
|
+
if (self.colcount['$=='](-1)) {
|
|
35856
|
+
return 0
|
|
35857
|
+
} else {
|
|
35858
|
+
return self.$effective_column_visits()['$<=>'](self.colcount)
|
|
35859
|
+
}
|
|
35860
|
+
}, $ParserContext_end_of_row$ques$50.$$arity = 0);
|
|
35828
35861
|
|
|
35829
|
-
Opal.def(self, '$effective_column_visits', $ParserContext_effective_column_visits$
|
|
35862
|
+
Opal.def(self, '$effective_column_visits', $ParserContext_effective_column_visits$51 = function $$effective_column_visits() {
|
|
35830
35863
|
var self = this;
|
|
35831
35864
|
|
|
35832
35865
|
return $rb_plus(self.column_visits, self.active_rowspans['$[]'](0))
|
|
35833
|
-
}, $ParserContext_effective_column_visits$
|
|
35834
|
-
return (Opal.def(self, '$advance', $ParserContext_advance$
|
|
35866
|
+
}, $ParserContext_effective_column_visits$51.$$arity = 0);
|
|
35867
|
+
return (Opal.def(self, '$advance', $ParserContext_advance$52 = function $$advance() {
|
|
35835
35868
|
var self = this;
|
|
35836
35869
|
|
|
35837
35870
|
return (self.linenum = $rb_plus(self.linenum, 1))
|
|
35838
|
-
}, $ParserContext_advance$
|
|
35871
|
+
}, $ParserContext_advance$52.$$arity = 0), nil) && 'advance';
|
|
35839
35872
|
})($$($nesting, 'Table'), null, $nesting);
|
|
35840
35873
|
})($nesting[0], $nesting)
|
|
35841
35874
|
};
|
|
@@ -46769,7 +46802,7 @@ Html5Converter.prototype.convert = function (node, transform, opts) {
|
|
|
46769
46802
|
}
|
|
46770
46803
|
|
|
46771
46804
|
|
|
46772
|
-
var ASCIIDOCTOR_JS_VERSION = '2.2.
|
|
46805
|
+
var ASCIIDOCTOR_JS_VERSION = '2.2.9';
|
|
46773
46806
|
|
|
46774
46807
|
/**
|
|
46775
46808
|
* Get Asciidoctor.js version number.
|
package/dist/node/asciidoctor.js
CHANGED
|
@@ -3189,7 +3189,11 @@ Opal.modules["asciidoctor/rx"] = function(Opal) {
|
|
|
3189
3189
|
Opal.const_set($nesting[0], 'InlineImageMacroRx', new RegExp("" + "\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
3190
3190
|
Opal.const_set($nesting[0], 'InlineIndextermMacroRx', new RegExp("" + "\\\\?(?:(indexterm2?):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|\\(\\((" + ($$($nesting, 'CC_ALL')) + "+?)\\)\\)(?!\\)))", 'm'));
|
|
3191
3191
|
Opal.const_set($nesting[0], 'InlineKbdBtnMacroRx', new RegExp("" + "(\\\\)?(kbd|btn):\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
3192
|
-
|
|
3192
|
+
if ($$($nesting, 'RUBY_ENGINE')['$==']("opal")) {
|
|
3193
|
+
Opal.const_set($nesting[0], 'InlineLinkRx', new RegExp("" + "(^|link:|" + ($$($nesting, 'CG_BLANK')) + "|\\\\?<(?=\\\\?(?:https?|file|ftp|irc)(:))|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]|(?!\\2)([^\\s]+?)>|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"))
|
|
3194
|
+
} else {
|
|
3195
|
+
nil
|
|
3196
|
+
};
|
|
3193
3197
|
Opal.const_set($nesting[0], 'InlineLinkMacroRx', new RegExp("" + "\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
3194
3198
|
Opal.const_set($nesting[0], 'MacroNameRx', new RegExp("" + "^" + ($$($nesting, 'CG_WORD')) + "[" + ($$($nesting, 'CC_WORD')) + "-]*$"));
|
|
3195
3199
|
Opal.const_set($nesting[0], 'InlineStemMacroRx', new RegExp("" + "\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(" + ($$($nesting, 'CC_ALL')) + "*?[^\\\\])\\]", 'm'));
|
|
@@ -3881,10 +3885,11 @@ Opal.modules["asciidoctor/substitutors"] = function(Opal) {
|
|
|
3881
3885
|
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$slice(1, (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$length());};
|
|
3882
3886
|
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](3))['$start_with?']($$($nesting, 'RS')))) {
|
|
3883
3887
|
return "" + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](1))) + ((($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$slice($rb_plus((($c = $gvars['~']) === nil ? nil : $c['$[]'](1)).$length(), 1), (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$length()));};
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));
|
|
3887
|
-
|
|
3888
|
+
if ($truthy((($c = $gvars['~']) === nil ? nil : $c['$[]'](6)))) {
|
|
3889
|
+
} else {
|
|
3890
|
+
return (($c = $gvars['~']) === nil ? nil : $c['$[]'](0));
|
|
3891
|
+
};
|
|
3892
|
+
doc.$register("links", (target = $rb_plus((($c = $gvars['~']) === nil ? nil : $c['$[]'](3)), (($c = $gvars['~']) === nil ? nil : $c['$[]'](6)))));
|
|
3888
3893
|
link_text = (function() {if ($truthy(doc_attrs['$key?']("hide-uri-scheme"))) {
|
|
3889
3894
|
|
|
3890
3895
|
return target.$sub($$($nesting, 'UriSniffRx'), "");
|
|
@@ -5185,7 +5190,7 @@ Opal.modules["asciidoctor/version"] = function(Opal) {
|
|
|
5185
5190
|
|
|
5186
5191
|
var $nesting = [self].concat($parent_nesting);
|
|
5187
5192
|
|
|
5188
|
-
Opal.const_set($nesting[0], 'VERSION', "2.0.
|
|
5193
|
+
Opal.const_set($nesting[0], 'VERSION', "2.0.23")
|
|
5189
5194
|
})($nesting[0], $nesting)
|
|
5190
5195
|
};
|
|
5191
5196
|
|
|
@@ -9443,7 +9448,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
9443
9448
|
}
|
|
9444
9449
|
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;
|
|
9445
9450
|
|
|
9446
|
-
Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$extend', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$skip_blank_lines', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$[]=', '$-', '$finalize_header', '$nil_or_empty?', '$title=', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$include?', '$sub_specialchars', '$sub_attributes', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$==', '$!', '$register', '$process_authors', '$update', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$save', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$split', '$title', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$style=', '$parent=', '$content_model', '$content_model=', '$lines', '$subs', '$size', '$context=', '$shift', '$unwrap_standalone_preamble', '$source_location', '$merge', '$fetch', '$parse_block_metadata_line', '$extensions', '$block_macros?', '$mark', '$read_line', '$terminator', '$to_s', '$masq', '$to_sym', '$registered_for_block?', '$debug?', '$debug', '$cursor_at_mark', '$strict_verbatim_paragraphs', '$unshift_line', '$markdown_syntax', '$keys', '$chr', '$uniform?', '$length', '$end_with?', '$===', '$parse_attributes', '$attribute_missing', '$tr', '$basename', '$assign_caption', '$registered_for_block_macro?', '$config', '$process_method', '$replace', '$parse_callout_list', '$callouts', '$parse_list', '$parse_description_list', '$underline_style_section_titles', '$is_section_title?', '$peek_line', '$atx_section_title?', '$generate_id', '$level=', '$read_paragraph_lines', '$adjust_indentation!', '$map!', '$slice', '$pop', '$build_block', '$apply_subs', '$chop', '$catalog_inline_anchors', '$rekey', '$index', '$strip', '$parse_table', '$each', '$raise', '$title?', '$update_attributes', '$commit_subs', '$sub?', '$catalog_callouts', '$source', '$remove_sub', '$block_terminates_paragraph', '$to_proc', '$nil?', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$marker=', '$catalog_inline_biblio_anchor', '$set_option', '$text=', '$resolve_ordered_list_marker', '$read_lines_for_list_item', '$skip_line_comments', '$unshift_lines', '$fold_first', '$text?', '$is_sibling_list_item?', '$concat', '$find', '$casecmp', '$sectname=', '$special=', '$numbered=', '$numbered', '$lineno', '$peek_lines', '$setext_section_title?', '$abs', '$cursor_at_prev_line', '$process_attribute_entries', '$next_line_empty?', '$apply_header_subs', '$rstrip', '$each_with_index', '$compact', '$to_h', '$squeeze', '$to_a', '$parse_style_attribute', '$process_attribute_entry', '$skip_comment_lines', '$store_attribute', '$sanitize_attribute_name', '$set_attribute', '$save_to', '$delete_attribute', '$ord', '$int_to_roman', '$resolve_list_marker', '$parse_colspecs', '$create_columns', '$has_header_option=', '$format', '$starts_with_delimiter?', '$close_open_cell', '$parse_cellspec', '$delimiter', '$match_delimiter', '$pre_match', '$post_match', '$buffer_has_unclosed_quotes?', '$skip_past_delimiter', '$buffer', '$buffer=', '$skip_past_escaped_delimiter', '$keep_cell_open', '$push_cellspec', '$close_cell', '$cell_open?', '$columns', '$assign_column_widths', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
|
|
9451
|
+
Opal.add_stubs(['$include', '$new', '$proc', '$start_with?', '$match?', '$is_delimited_block?', '$extend', '$private_class_method', '$parse_document_header', '$[]', '$has_more_lines?', '$next_section', '$assign_numeral', '$<<', '$blocks', '$skip_blank_lines', '$parse_block_metadata_lines', '$attributes', '$is_next_line_doctitle?', '$[]=', '$-', '$finalize_header', '$nil_or_empty?', '$title=', '$sourcemap', '$cursor', '$parse_section_title', '$id=', '$include?', '$sub_specialchars', '$sub_attributes', '$source_location=', '$header', '$attribute_locked?', '$id', '$clear', '$delete', '$instance_variable_get', '$parse_header_metadata', '$==', '$!', '$register', '$process_authors', '$update', '$doctype', '$parse_manpage_header', '$=~', '$downcase', '$error', '$logger', '$message_with_context', '$cursor_at_line', '$backend', '$save', '$is_next_line_section?', '$initialize_section', '$join', '$map', '$read_lines_until', '$lstrip', '$split', '$title', '$restore_save', '$discard_save', '$context', '$empty?', '$header?', '$!=', '$attr?', '$attr', '$key?', '$document', '$+', '$level', '$special', '$sectname', '$to_i', '$<', '$>', '$warn', '$next_block', '$blocks?', '$style', '$style=', '$parent=', '$content_model', '$content_model=', '$lines', '$subs', '$size', '$context=', '$shift', '$unwrap_standalone_preamble', '$source_location', '$merge', '$fetch', '$parse_block_metadata_line', '$extensions', '$block_macros?', '$mark', '$read_line', '$terminator', '$to_s', '$masq', '$to_sym', '$registered_for_block?', '$debug?', '$debug', '$cursor_at_mark', '$strict_verbatim_paragraphs', '$unshift_line', '$markdown_syntax', '$keys', '$chr', '$uniform?', '$length', '$end_with?', '$===', '$parse_attributes', '$attribute_missing', '$tr', '$basename', '$assign_caption', '$registered_for_block_macro?', '$config', '$process_method', '$replace', '$parse_callout_list', '$callouts', '$parse_list', '$parse_description_list', '$underline_style_section_titles', '$is_section_title?', '$peek_line', '$atx_section_title?', '$generate_id', '$level=', '$read_paragraph_lines', '$adjust_indentation!', '$map!', '$slice', '$pop', '$build_block', '$apply_subs', '$chop', '$catalog_inline_anchors', '$rekey', '$index', '$strip', '$parse_table', '$each', '$raise', '$title?', '$update_attributes', '$commit_subs', '$sub?', '$catalog_callouts', '$source', '$remove_sub', '$block_terminates_paragraph', '$to_proc', '$nil?', '$parse_blocks', '$parse_list_item', '$items', '$scan', '$gsub', '$count', '$advance', '$dup', '$match', '$callout_ids', '$next_list', '$catalog_inline_anchor', '$marker=', '$catalog_inline_biblio_anchor', '$set_option', '$text=', '$resolve_ordered_list_marker', '$read_lines_for_list_item', '$skip_line_comments', '$unshift_lines', '$fold_first', '$text?', '$is_sibling_list_item?', '$concat', '$find', '$casecmp', '$sectname=', '$special=', '$numbered=', '$numbered', '$lineno', '$peek_lines', '$setext_section_title?', '$abs', '$cursor_at_prev_line', '$process_attribute_entries', '$next_line_empty?', '$apply_header_subs', '$rstrip', '$each_with_index', '$compact', '$to_h', '$squeeze', '$to_a', '$parse_style_attribute', '$process_attribute_entry', '$skip_comment_lines', '$store_attribute', '$sanitize_attribute_name', '$set_attribute', '$save_to', '$delete_attribute', '$ord', '$int_to_roman', '$resolve_list_marker', '$parse_colspecs', '$create_columns', '$has_header_option=', '$format', '$starts_with_delimiter?', '$close_open_cell', '$parse_cellspec', '$delimiter', '$match_delimiter', '$pre_match', '$post_match', '$buffer_has_unclosed_quotes?', '$skip_past_delimiter', '$buffer', '$buffer=', '$skip_past_escaped_delimiter', '$keep_cell_open', '$push_cellspec', '$close_cell', '$cell_open?', '$close_table', '$columns', '$assign_column_widths', '$partition_header_footer', '$upto', '$partition', '$shorthand_property_syntax', '$each_char', '$yield_buffered_attribute', '$any?', '$*', '$each_byte', '$%']);
|
|
9447
9452
|
return (function($base, $parent_nesting) {
|
|
9448
9453
|
var self = $module($base, 'Asciidoctor');
|
|
9449
9454
|
|
|
@@ -11191,6 +11196,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
11191
11196
|
};
|
|
11192
11197
|
if ($truthy(interrupt)) {
|
|
11193
11198
|
|
|
11199
|
+
this_line = nil;
|
|
11194
11200
|
reader.$unshift_lines(block_attribute_lines);
|
|
11195
11201
|
break;;};
|
|
11196
11202
|
} else if ($truthy((($b = continuation['$==']("active")) ? this_line['$empty?']()['$!']() : continuation['$==']("active")))) {
|
|
@@ -12334,6 +12340,7 @@ Opal.modules["asciidoctor/parser"] = function(Opal) {
|
|
|
12334
12340
|
}
|
|
12335
12341
|
};
|
|
12336
12342
|
};
|
|
12343
|
+
parser_ctx.$close_table();
|
|
12337
12344
|
if ($truthy(($truthy($a = (($logical_op_recvr_tmp_2 = table.$attributes()), ($truthy($b = $logical_op_recvr_tmp_2['$[]']("colcount")) ? $b : (($writer = ["colcount", table.$columns().$size()]), $send($logical_op_recvr_tmp_2, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)])))['$=='](0)) ? $a : explicit_colspecs))) {
|
|
12338
12345
|
} else {
|
|
12339
12346
|
table.$assign_column_widths()
|
|
@@ -13940,7 +13947,7 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
13940
13947
|
|
|
13941
13948
|
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;
|
|
13942
13949
|
|
|
13943
|
-
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.
|
|
13950
|
+
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.skipping = self.$$prototype.look_ahead = self.$$prototype.conditional_stack = nil;
|
|
13944
13951
|
|
|
13945
13952
|
self.$attr_reader("include_stack");
|
|
13946
13953
|
|
|
@@ -14226,6 +14233,10 @@ Opal.modules["asciidoctor/reader"] = function(Opal) {
|
|
|
14226
14233
|
};
|
|
14227
14234
|
if ($truthy(line['$empty?']())) {
|
|
14228
14235
|
|
|
14236
|
+
if ($truthy(self.skipping)) {
|
|
14237
|
+
|
|
14238
|
+
self.$shift();
|
|
14239
|
+
return nil;};
|
|
14229
14240
|
self.look_ahead = $rb_plus(self.look_ahead, 1);
|
|
14230
14241
|
return line;};
|
|
14231
14242
|
if ($truthy(($truthy($a = ($truthy($b = line['$end_with?']("]")) ? line['$start_with?']("[")['$!']() : $b)) ? line['$include?']("::") : $a))) {
|
|
@@ -15326,7 +15337,7 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
15326
15337
|
}
|
|
15327
15338
|
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, $gvars = Opal.gvars;
|
|
15328
15339
|
|
|
15329
|
-
Opal.add_stubs(['$attr_accessor', '$attr_reader', '$new', '$[]', '$>', '$to_i', '$<', '$==', '$[]=', '$-', '$attributes', '$truncate', '$*', '$/', '$to_f', '$empty?', '$body', '$each', '$<<', '$size', '$+', '$assign_column_widths', '$warn', '$logger', '$update_attributes', '$assign_width', '$round', '$map', '$shift', '$reinitialize', '$head=', '$nil?', '$unshift', '$pop', '$foot=', '$parent', '$sourcemap', '$dup', '$header_row?', '$table', '$style', '$merge', '$delete', '$===', '$start_with?', '$rstrip', '$slice', '$length', '$advance', '$lstrip', '$strip', '$split', '$include?', '$readlines', '$catalog_inline_anchor', '$=~', '$apply_subs', '$attr_writer', '$convert', '$text', '$!=', '$file', '$lineno', '$include', '$to_set', '$mark', '$key?', '$nested?', '$document', '$error', '$message_with_context', '$cursor_at_prev_line', '$nil_or_empty?', '$escape', '$columns', '$match', '$chop', '$end_with?', '$gsub', '$!', '$push_cellspec', '$cell_open?', '$close_cell', '$take_cellspec', '$squeeze', '$upto', '$times', '$cursor_before_mark', '$rowspan', '$activate_rowspan', '$colspan', '$end_of_row?', '$close_row', '$private', '$rows', '$effective_column_visits']);
|
|
15340
|
+
Opal.add_stubs(['$attr_accessor', '$attr_reader', '$new', '$[]', '$>', '$to_i', '$<', '$==', '$[]=', '$-', '$attributes', '$truncate', '$*', '$/', '$to_f', '$empty?', '$body', '$each', '$<<', '$size', '$+', '$assign_column_widths', '$warn', '$logger', '$update_attributes', '$assign_width', '$round', '$map', '$shift', '$reinitialize', '$head=', '$nil?', '$unshift', '$pop', '$foot=', '$parent', '$sourcemap', '$dup', '$header_row?', '$table', '$style', '$merge', '$delete', '$===', '$start_with?', '$rstrip', '$slice', '$length', '$advance', '$lstrip', '$strip', '$split', '$include?', '$readlines', '$catalog_inline_anchor', '$=~', '$apply_subs', '$attr_writer', '$convert', '$text', '$!=', '$file', '$lineno', '$include', '$to_set', '$mark', '$key?', '$nested?', '$document', '$error', '$message_with_context', '$cursor_at_prev_line', '$nil_or_empty?', '$escape', '$columns', '$match', '$chop', '$end_with?', '$gsub', '$!', '$push_cellspec', '$cell_open?', '$close_cell', '$take_cellspec', '$squeeze', '$upto', '$times', '$cursor_before_mark', '$rowspan', '$activate_rowspan', '$colspan', '$end_of_row?', '$close_row', '$private', '$rows', '$<=>', '$effective_column_visits']);
|
|
15330
15341
|
return (function($base, $parent_nesting) {
|
|
15331
15342
|
var self = $module($base, 'Asciidoctor');
|
|
15332
15343
|
|
|
@@ -15742,7 +15753,7 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
15742
15753
|
if ($truthy(inner_document_lines['$empty?']())) {
|
|
15743
15754
|
} else if ($truthy((unprocessed_line1 = inner_document_lines['$[]'](0))['$include?']("::"))) {
|
|
15744
15755
|
|
|
15745
|
-
preprocessed_lines = $$($nesting, 'PreprocessorReader').$new(self.document, [unprocessed_line1]).$readlines();
|
|
15756
|
+
preprocessed_lines = $$($nesting, 'PreprocessorReader').$new(self.document, [unprocessed_line1], inner_document_cursor).$readlines();
|
|
15746
15757
|
if ($truthy((($a = unprocessed_line1['$=='](preprocessed_lines['$[]'](0))) ? $rb_lt(preprocessed_lines.$size(), 2) : unprocessed_line1['$=='](preprocessed_lines['$[]'](0))))) {
|
|
15747
15758
|
} else {
|
|
15748
15759
|
|
|
@@ -15890,9 +15901,9 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
15890
15901
|
(function($base, $super, $parent_nesting) {
|
|
15891
15902
|
var self = $klass($base, $super, 'ParserContext');
|
|
15892
15903
|
|
|
15893
|
-
var $nesting = [self].concat($parent_nesting), $ParserContext_initialize$30, $ParserContext_starts_with_delimiter$ques$31, $ParserContext_match_delimiter$32, $ParserContext_skip_past_delimiter$33, $ParserContext_skip_past_escaped_delimiter$34, $ParserContext_buffer_has_unclosed_quotes$ques$35, $ParserContext_take_cellspec$36, $ParserContext_push_cellspec$37, $ParserContext_keep_cell_open$38, $ParserContext_mark_cell_closed$39, $ParserContext_cell_open$ques$40, $ParserContext_cell_closed$ques$41, $ParserContext_close_open_cell$42, $ParserContext_close_cell$43, $
|
|
15904
|
+
var $nesting = [self].concat($parent_nesting), $ParserContext_initialize$30, $ParserContext_starts_with_delimiter$ques$31, $ParserContext_match_delimiter$32, $ParserContext_skip_past_delimiter$33, $ParserContext_skip_past_escaped_delimiter$34, $ParserContext_buffer_has_unclosed_quotes$ques$35, $ParserContext_take_cellspec$36, $ParserContext_push_cellspec$37, $ParserContext_keep_cell_open$38, $ParserContext_mark_cell_closed$39, $ParserContext_cell_open$ques$40, $ParserContext_cell_closed$ques$41, $ParserContext_close_open_cell$42, $ParserContext_close_cell$43, $ParserContext_close_table$46, $ParserContext_close_row$47, $ParserContext_activate_rowspan$48, $ParserContext_end_of_row$ques$50, $ParserContext_effective_column_visits$51, $ParserContext_advance$52;
|
|
15894
15905
|
|
|
15895
|
-
self.$$prototype.delimiter = self.$$prototype.delimiter_rx = self.$$prototype.buffer = self.$$prototype.cellspecs = self.$$prototype.cell_open = self.$$prototype.format = self.$$prototype.start_cursor_data = self.$$prototype.reader = self.$$prototype.
|
|
15906
|
+
self.$$prototype.delimiter = self.$$prototype.delimiter_rx = self.$$prototype.buffer = self.$$prototype.cellspecs = self.$$prototype.cell_open = self.$$prototype.format = self.$$prototype.start_cursor_data = self.$$prototype.reader = self.$$prototype.column_visits = self.$$prototype.table = self.$$prototype.current_row = self.$$prototype.colcount = self.$$prototype.active_rowspans = self.$$prototype.linenum = nil;
|
|
15896
15907
|
|
|
15897
15908
|
self.$include($$($nesting, 'Logging'));
|
|
15898
15909
|
Opal.const_set($nesting[0], 'FORMATS', ["psv", "csv", "dsv", "tsv"].$to_set());
|
|
@@ -16081,8 +16092,7 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
16081
16092
|
return nil;
|
|
16082
16093
|
}, $ParserContext_close_open_cell$42.$$arity = -1);
|
|
16083
16094
|
|
|
16084
|
-
Opal.def(self, '$close_cell', $ParserContext_close_cell$43 = function $$close_cell(eol) {
|
|
16085
|
-
|
|
16095
|
+
Opal.def(self, '$close_cell', $ParserContext_close_cell$43 = function $$close_cell(eol) {
|
|
16086
16096
|
var $a, $b, $$44, self = this, cell_text = nil, cellspec = nil, repeat = nil, q = nil;
|
|
16087
16097
|
|
|
16088
16098
|
|
|
@@ -16121,7 +16131,7 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
16121
16131
|
cell_text = cell_text.$squeeze(q)
|
|
16122
16132
|
}};
|
|
16123
16133
|
};
|
|
16124
|
-
$send((1), 'upto', [repeat], ($$44 = function(i){var self = $$44.$$s || this, $c, $d, $$45, $e, column = nil, extra_cols = nil, offset = nil, cell = nil;
|
|
16134
|
+
$send((1), 'upto', [repeat], ($$44 = function(i){var self = $$44.$$s || this, $c, $d, $$45, $e, column = nil, extra_cols = nil, offset = nil, cell = nil, cursor_before_mark = nil, row_status = nil;
|
|
16125
16135
|
if (self.colcount == null) self.colcount = nil;
|
|
16126
16136
|
if (self.table == null) self.table = nil;
|
|
16127
16137
|
if (self.current_row == null) self.current_row = nil;
|
|
@@ -16149,13 +16159,10 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
16149
16159
|
j = nil;
|
|
16150
16160
|
};
|
|
16151
16161
|
return self.table.$columns()['$<<']($$$($$($nesting, 'Table'), 'Column').$new(self.table, $rb_plus(offset, j)));}, $$45.$$s = self, $$45.$$arity = 1, $$45));};
|
|
16152
|
-
} else if ($truthy((column = self.table.$columns()['$[]'](self.current_row.$size())))) {
|
|
16153
16162
|
} else {
|
|
16154
|
-
|
|
16155
|
-
self.$logger().$error(self.$message_with_context("dropping cell because it exceeds specified number of columns", $hash2(["source_location"], {"source_location": self.reader.$cursor_before_mark()})));
|
|
16156
|
-
Opal.ret(nil);
|
|
16163
|
+
column = self.table.$columns()['$[]'](self.current_row.$size())
|
|
16157
16164
|
};
|
|
16158
|
-
cell = $$$($$($nesting, 'Table'), 'Cell').$new(column, cell_text, cellspec, $hash2(["cursor"], {"cursor": self.reader.$cursor_before_mark()}));
|
|
16165
|
+
cell = $$$($$($nesting, 'Table'), 'Cell').$new(column, cell_text, cellspec, $hash2(["cursor"], {"cursor": (cursor_before_mark = self.reader.$cursor_before_mark())}));
|
|
16159
16166
|
self.reader.$mark();
|
|
16160
16167
|
if ($truthy(($truthy($c = cell.$rowspan()['$!']()) ? $c : cell.$rowspan()['$=='](1)))) {
|
|
16161
16168
|
} else {
|
|
@@ -16163,22 +16170,44 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
16163
16170
|
};
|
|
16164
16171
|
self.column_visits = $rb_plus(self.column_visits, ($truthy($c = cell.$colspan()) ? $c : 1));
|
|
16165
16172
|
self.current_row['$<<'](cell);
|
|
16166
|
-
if ($truthy(($truthy($c = self['$end_of_row?']()) ? ($truthy($d = ($truthy($e = self.colcount['$!='](-1)) ? $e : $rb_gt(self.linenum, 0))) ? $d : ($truthy($e = eol) ? i['$=='](repeat) : $e)) : $c))) {
|
|
16167
|
-
|
|
16173
|
+
if ($truthy(($truthy($c = $rb_gt((row_status = self['$end_of_row?']()), -1)) ? ($truthy($d = ($truthy($e = self.colcount['$!='](-1)) ? $e : $rb_gt(self.linenum, 0))) ? $d : ($truthy($e = eol) ? i['$=='](repeat) : $e)) : $c))) {
|
|
16174
|
+
if ($truthy($rb_gt(row_status, 0))) {
|
|
16175
|
+
|
|
16176
|
+
self.$logger().$error(self.$message_with_context("dropping cell because it exceeds specified number of columns", $hash2(["source_location"], {"source_location": cursor_before_mark})));
|
|
16177
|
+
return self.$close_row(true);
|
|
16178
|
+
} else {
|
|
16179
|
+
return self.$close_row()
|
|
16180
|
+
}
|
|
16168
16181
|
} else {
|
|
16169
16182
|
return nil
|
|
16170
16183
|
};}, $$44.$$s = self, $$44.$$arity = 1, $$44));
|
|
16171
16184
|
self.cell_open = false;
|
|
16172
16185
|
return nil;
|
|
16173
|
-
} catch ($returner) { if ($returner === Opal.returner) { return $returner.$v } throw $returner; }
|
|
16174
16186
|
}, $ParserContext_close_cell$43.$$arity = -1);
|
|
16187
|
+
|
|
16188
|
+
Opal.def(self, '$close_table', $ParserContext_close_table$46 = function $$close_table() {
|
|
16189
|
+
var self = this;
|
|
16190
|
+
|
|
16191
|
+
|
|
16192
|
+
if (self.column_visits['$=='](0)) {
|
|
16193
|
+
return nil};
|
|
16194
|
+
self.$logger().$error(self.$message_with_context("dropping cells from incomplete row detected end of table", $hash2(["source_location"], {"source_location": self.reader.$cursor_before_mark()})));
|
|
16195
|
+
return nil;
|
|
16196
|
+
}, $ParserContext_close_table$46.$$arity = 0);
|
|
16175
16197
|
self.$private();
|
|
16176
16198
|
|
|
16177
|
-
Opal.def(self, '$close_row', $ParserContext_close_row$
|
|
16199
|
+
Opal.def(self, '$close_row', $ParserContext_close_row$47 = function $$close_row(drop) {
|
|
16178
16200
|
var $a, self = this, $writer = nil;
|
|
16179
16201
|
|
|
16180
16202
|
|
|
16181
|
-
|
|
16203
|
+
|
|
16204
|
+
if (drop == null) {
|
|
16205
|
+
drop = false;
|
|
16206
|
+
};
|
|
16207
|
+
if ($truthy(drop)) {
|
|
16208
|
+
} else {
|
|
16209
|
+
self.table.$rows().$body()['$<<'](self.current_row)
|
|
16210
|
+
};
|
|
16182
16211
|
if (self.colcount['$=='](-1)) {
|
|
16183
16212
|
self.colcount = self.column_visits};
|
|
16184
16213
|
self.column_visits = 0;
|
|
@@ -16186,13 +16215,13 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
16186
16215
|
self.active_rowspans.$shift();
|
|
16187
16216
|
($truthy($a = self.active_rowspans['$[]'](0)) ? $a : (($writer = [0, 0]), $send(self.active_rowspans, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer["length"], 1)]));
|
|
16188
16217
|
return nil;
|
|
16189
|
-
}, $ParserContext_close_row$
|
|
16218
|
+
}, $ParserContext_close_row$47.$$arity = -1);
|
|
16190
16219
|
|
|
16191
|
-
Opal.def(self, '$activate_rowspan', $ParserContext_activate_rowspan$
|
|
16192
|
-
var $$
|
|
16220
|
+
Opal.def(self, '$activate_rowspan', $ParserContext_activate_rowspan$48 = function $$activate_rowspan(rowspan, colspan) {
|
|
16221
|
+
var $$49, self = this;
|
|
16193
16222
|
|
|
16194
16223
|
|
|
16195
|
-
$send((1), 'upto', [$rb_minus(rowspan, 1)], ($$
|
|
16224
|
+
$send((1), 'upto', [$rb_minus(rowspan, 1)], ($$49 = function(i){var self = $$49.$$s || this, $a, $writer = nil;
|
|
16196
16225
|
if (self.active_rowspans == null) self.active_rowspans = nil;
|
|
16197
16226
|
|
|
16198
16227
|
|
|
@@ -16202,26 +16231,30 @@ Opal.modules["asciidoctor/table"] = function(Opal) {
|
|
|
16202
16231
|
};
|
|
16203
16232
|
$writer = [i, $rb_plus(($truthy($a = self.active_rowspans['$[]'](i)) ? $a : 0), colspan)];
|
|
16204
16233
|
$send(self.active_rowspans, '[]=', Opal.to_a($writer));
|
|
16205
|
-
return $writer[$rb_minus($writer["length"], 1)];}, $$
|
|
16234
|
+
return $writer[$rb_minus($writer["length"], 1)];}, $$49.$$s = self, $$49.$$arity = 1, $$49));
|
|
16206
16235
|
return nil;
|
|
16207
|
-
}, $ParserContext_activate_rowspan$
|
|
16236
|
+
}, $ParserContext_activate_rowspan$48.$$arity = 2);
|
|
16208
16237
|
|
|
16209
|
-
Opal.def(self, '$end_of_row?', $ParserContext_end_of_row$ques$
|
|
16210
|
-
var
|
|
16238
|
+
Opal.def(self, '$end_of_row?', $ParserContext_end_of_row$ques$50 = function() {
|
|
16239
|
+
var self = this;
|
|
16211
16240
|
|
|
16212
|
-
|
|
16213
|
-
|
|
16241
|
+
if (self.colcount['$=='](-1)) {
|
|
16242
|
+
return 0
|
|
16243
|
+
} else {
|
|
16244
|
+
return self.$effective_column_visits()['$<=>'](self.colcount)
|
|
16245
|
+
}
|
|
16246
|
+
}, $ParserContext_end_of_row$ques$50.$$arity = 0);
|
|
16214
16247
|
|
|
16215
|
-
Opal.def(self, '$effective_column_visits', $ParserContext_effective_column_visits$
|
|
16248
|
+
Opal.def(self, '$effective_column_visits', $ParserContext_effective_column_visits$51 = function $$effective_column_visits() {
|
|
16216
16249
|
var self = this;
|
|
16217
16250
|
|
|
16218
16251
|
return $rb_plus(self.column_visits, self.active_rowspans['$[]'](0))
|
|
16219
|
-
}, $ParserContext_effective_column_visits$
|
|
16220
|
-
return (Opal.def(self, '$advance', $ParserContext_advance$
|
|
16252
|
+
}, $ParserContext_effective_column_visits$51.$$arity = 0);
|
|
16253
|
+
return (Opal.def(self, '$advance', $ParserContext_advance$52 = function $$advance() {
|
|
16221
16254
|
var self = this;
|
|
16222
16255
|
|
|
16223
16256
|
return (self.linenum = $rb_plus(self.linenum, 1))
|
|
16224
|
-
}, $ParserContext_advance$
|
|
16257
|
+
}, $ParserContext_advance$52.$$arity = 0), nil) && 'advance';
|
|
16225
16258
|
})($$($nesting, 'Table'), null, $nesting);
|
|
16226
16259
|
})($nesting[0], $nesting)
|
|
16227
16260
|
};
|
|
@@ -27155,7 +27188,7 @@ Html5Converter.prototype.convert = function (node, transform, opts) {
|
|
|
27155
27188
|
}
|
|
27156
27189
|
|
|
27157
27190
|
|
|
27158
|
-
var ASCIIDOCTOR_JS_VERSION = '2.2.
|
|
27191
|
+
var ASCIIDOCTOR_JS_VERSION = '2.2.9';
|
|
27159
27192
|
|
|
27160
27193
|
/**
|
|
27161
27194
|
* Get Asciidoctor.js version number.
|