From ec64e9ea899c3f40e26aec8bfc4a9b8941b91cdf Mon Sep 17 00:00:00 2001 From: Pavlo Kapyshin Date: Fri, 18 Mar 2016 10:25:23 +0200 Subject: Add library option to render softbreaks as spaces --- api_test/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api_test') diff --git a/api_test/main.c b/api_test/main.c index cd9ffb5..bde6222 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -788,6 +788,11 @@ static void line_endings(test_batch_runner *runner) { STR_EQ(runner, html, "

line
\nline

\n", "crlf endings with CMARK_OPT_HARDBREAKS"); free(html); + html = cmark_markdown_to_html(crlf_lines, sizeof(crlf_lines) - 1, + CMARK_OPT_DEFAULT | CMARK_OPT_NOBREAKS); + STR_EQ(runner, html, "

line line

\n", + "crlf endings with CMARK_OPT_NOBREAKS"); + free(html); static const char no_line_ending[] = "```\nline\n```"; html = cmark_markdown_to_html(no_line_ending, sizeof(no_line_ending) - 1, -- cgit v1.2.3