aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/check_content_parser.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/check_content_parser.c b/tests/check_content_parser.c
index fb56c19..ea069a7 100644
--- a/tests/check_content_parser.c
+++ b/tests/check_content_parser.c
@@ -1621,6 +1621,15 @@ test_content_parse_inline_image(void **state)
"<a href=\"https://blogc.rgm.io\"><img src=\"picture.jpg\" "
"alt=\"This is the image alt text\"></a>");
free(html);
+ html = blogc_content_parse_inline(
+ "[![This is the image alt text]\n"
+ "(picture.jpg)]\n"
+ "(https://blogc.rgm.io)");
+ assert_non_null(html);
+ assert_string_equal(html,
+ "<a href=\"https://blogc.rgm.io\"><img src=\"picture.jpg\" "
+ "alt=\"This is the image alt text\"></a>");
+ free(html);
html = blogc_content_parse_inline("asd ![bola]chunda(1234)");
assert_non_null(html);
assert_string_equal(html, "asd ![bola]chunda(1234)");