aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-29 14:57:53 -0800
committerCody Logan <cody@lokken.dev>2023-11-29 14:57:53 -0800
commitd582d8a6c6db5f1b2b34c3ac3469ff0a112920d4 (patch)
treeb54773622c35ce51af22d37c48025f3c0a7dd147
parent925f22f2c9fba2ca8cb52a14c7dc5f57fb92fd64 (diff)
downloadconvert-markdown-d582d8a6c6db5f1b2b34c3ac3469ff0a112920d4.tar.gz
convert-markdown-d582d8a6c6db5f1b2b34c3ac3469ff0a112920d4.zip
Update expected output for newer versions of lowdown
-rw-r--r--test-convert-markdown.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/test-convert-markdown.c b/test-convert-markdown.c
index e33383f..0a2e6d0 100644
--- a/test-convert-markdown.c
+++ b/test-convert-markdown.c
@@ -65,9 +65,20 @@ int main(void) {
errors += test_parse_file("2. Bold",
"**bold**",
"<p><strong>bold</strong></p>\n");
+ /*
+ * Lowdown 1.0.2 removed superfluous newlines between HTML elements (see
+ * GitHub commit f42602c); as a result, this test will fail for versions
+ * older than that.
+ *
+ * Package or port availability as of 2023-11-29 (amd64-only; not an
+ * exhaustive list):
+ * FreeBSD: 1.1.0 (latest), 1.0.2 (quarterly)
+ * OpenBSD: 1.0.0
+ * Ubuntu: 1.0.0 (23.10 and 23.04), 0.10.0 (22.04)
+ */
errors += test_parse_file("3. Multiline",
"# header\n`code`",
- "<h1 id=\"header\">header</h1>\n\n<p><code>code</code></p>\n");
+ "<h1 id=\"header\">header</h1>\n<p><code>code</code></p>\n");
printf("\n============\nTest Summary\n============\n");