diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-01-07 22:31:21 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-01-07 22:31:21 -0800 |
commit | c075a56436470061ffff9cf2ce7529984049e09e (patch) | |
tree | 790a409d6dd4615631f5d8c24dc30ff769e9fb66 /src | |
parent | 7020eb8dab065c3806fc6174443c19e262344999 (diff) |
Allow multiline setext header content, as per spec.
Diffstat (limited to 'src')
-rw-r--r-- | src/blocks.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/blocks.c b/src/blocks.c index 773179e..9f41e1f 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -800,11 +800,7 @@ static void S_process_line(cmark_parser *parser, const unsigned char *buffer, } else if (!indented && container->type == CMARK_NODE_PARAGRAPH && (lev = - scan_setext_heading_line(&input, parser->first_nonspace)) && - // check that there is only one line in the paragraph: - (cmark_strbuf_strrchr( - &container->string_content, '\n', - cmark_strbuf_len(&container->string_content) - 2) < 0)) { + scan_setext_heading_line(&input, parser->first_nonspace))) { container->type = CMARK_NODE_HEADING; container->as.heading.level = lev; |