diff options
author | Pavlo Kapyshin <i@93z.org> | 2016-03-18 10:25:23 +0200 |
---|---|---|
committer | Pavlo Kapyshin <i@93z.org> | 2016-03-18 10:28:22 +0200 |
commit | ec64e9ea899c3f40e26aec8bfc4a9b8941b91cdf (patch) | |
tree | e3b94e4fe4de517f930c193bcd9cf47839e2f455 /api_test | |
parent | c4eb6bc33d9639ce0840a5fa3cea173c2c816fd1 (diff) |
Add library option to render softbreaks as spaces
Diffstat (limited to 'api_test')
-rw-r--r-- | api_test/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, "<p>line<br />\nline</p>\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, "<p>line line</p>\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, |