summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_markdown.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc/test_rdoc_markdown.rb')
-rw-r--r--test/rdoc/test_rdoc_markdown.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_markdown.rb b/test/rdoc/test_rdoc_markdown.rb
index 1b13e2e7e6..a02ff7c8cc 100644
--- a/test/rdoc/test_rdoc_markdown.rb
+++ b/test/rdoc/test_rdoc_markdown.rb
@@ -1063,11 +1063,12 @@ and an extra note.[^2]
end
def test_gfm_table_2
- doc = parse <<~MD
+ doc = parse <<~'MD'
| Cmd | Returns | Meaning
------|---------|--------
|"b" | boolean | True if file1 is a block device
"c" | boolean | True if file1 is a character device
+ |"\|" | boolean | escaped bar \| test
MD
head = %w[Cmd Returns Meaning]
@@ -1075,6 +1076,7 @@ and an extra note.[^2]
body = [
['"b"', 'boolean', 'True if file1 is a block device'],
['"c"', 'boolean', 'True if file1 is a character device'],
+ ['"|"', 'boolean', 'escaped bar | test'],
]
expected = doc(@RM::Table.new(head, align, body))