From 894186418a378c1e654160c5c7612ba84e6b83c6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 18:00:06 -1000 Subject: Let a table cut a paragraph short A table written right under a line of text came out as more of the paragraph, pipes and all. --- tests/extensions/test-about-render.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/extensions/test-about-render.lua') diff --git a/tests/extensions/test-about-render.lua b/tests/extensions/test-about-render.lua index b7d12c7..6644664 100644 --- a/tests/extensions/test-about-render.lua +++ b/tests/extensions/test-about-render.lua @@ -216,6 +216,9 @@ out = render("README.md", "| a | b |\n| --- | --- |\n| 1 | 2 |") h.contains("a pipe table renders its head", out, "ab") h.contains("a pipe table renders its body", out, "12") +out = render("README.md", "Pick one:\n| a | b |\n|---|---|\n| 1 | 2 |") +h.contains("a table cuts a paragraph short", out, "

Pick one:

") + out = render("README.md", "a | b in prose") h.excludes("a pipe without a delimiter row stays prose", out, "
a