summaryrefslogtreecommitdiff
path: root/api_test/main.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-04-09 11:35:58 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-04-09 11:35:58 -0700
commit0b6805c0c544cfd8973f457142434127cac4b3a5 (patch)
tree96230667623ca308fe74cd51970b9d808233a564 /api_test/main.c
parent6e8c3f6148ec586fd4cc5c89c644422dd6ec33d5 (diff)
parentbb7289750b93e20f760fb94fd04931b651e5ce3e (diff)
Merge pull request #111 from PavloKapyshin/master
Add library option to render softbreaks as spaces
Diffstat (limited to 'api_test/main.c')
-rw-r--r--api_test/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/api_test/main.c b/api_test/main.c
index 8af2e71..8da9ba9 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -791,6 +791,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,