diff --git a/converters/tags.rb b/converters/tags.rb index 7f32400..d638af1 100644 --- a/converters/tags.rb +++ b/converters/tags.rb @@ -110,7 +110,8 @@ def convert(node, transform = node.node_name, opts = nil) def node_text_content(node) content_or_nil = case node.node_name when "document" - raise "node_text_content(document) should be unreachable" + # Can occur when table cells use the "a|" syntax. + node.content.strip when "section" "\n" + [node.title, node.content].join("\n").rstrip() when "paragraph" diff --git a/tests/norm-rule/test.adoc b/tests/norm-rule/test.adoc index 921275e..a8c120f 100644 --- a/tests/norm-rule/test.adoc +++ b/tests/norm-rule/test.adoc @@ -52,6 +52,12 @@ Here's the second line. | cell without anchor |=== +|=== + +// PASSES +a| Cell is adoc +|=== + == Chapter 3 - Tagging Unordered Lists // PASSES - Tag includes all list items