diff options
author | Yuki Izumi <ashe@kivikakk.ee> | 2017-08-09 17:13:16 +1000 |
---|---|---|
committer | Yuki Izumi <ashe@kivikakk.ee> | 2017-08-10 13:29:40 +1000 |
commit | e22d1b42ce7f860c51c261ea9d42c0b77245fde5 (patch) | |
tree | d0cd5bee6b826fb6b09db44beddb48a96fff023e /api_test | |
parent | 919cdb2c583163411b3b15b2eae0ce72cf2d7981 (diff) |
Fix inlines spanning newlines, text in non-para
Diffstat (limited to 'api_test')
-rw-r--r-- | api_test/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/api_test/main.c b/api_test/main.c index 08f3c98..c30dc71 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -885,7 +885,7 @@ static void test_feed_across_line_ending(test_batch_runner *runner) { static void source_pos(test_batch_runner *runner) { static const char markdown[] = - "Hi *there*.\n" + "# Hi *there*.\n" "\n" "Hello “ <http://www.google.com>\n" "there `hi` -- [okay](www.google.com (ok)).\n" @@ -901,13 +901,13 @@ static void source_pos(test_batch_runner *runner) { STR_EQ(runner, xml, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" "<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n" "<document sourcepos=\"1:1-10:20\" xmlns=\"http://commonmark.org/xml/1.0\">\n" - " <paragraph sourcepos=\"1:1-1:11\">\n" - " <text sourcepos=\"1:1-1:3\">Hi </text>\n" - " <emph sourcepos=\"1:4-1:10\">\n" - " <text sourcepos=\"1:5-1:9\">there</text>\n" + " <heading sourcepos=\"1:1-1:13\" level=\"1\">\n" + " <text sourcepos=\"1:3-1:5\">Hi </text>\n" + " <emph sourcepos=\"1:6-1:12\">\n" + " <text sourcepos=\"1:7-1:11\">there</text>\n" " </emph>\n" - " <text sourcepos=\"1:11-1:11\">.</text>\n" - " </paragraph>\n" + " <text sourcepos=\"1:13-1:13\">.</text>\n" + " </heading>\n" " <paragraph sourcepos=\"3:1-4:42\">\n" " <text sourcepos=\"3:1-3:14\">Hello “ </text>\n" " <link sourcepos=\"3:15-3:37\" destination=\"http://www.google.com\" title=\"\">\n" |