diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-17 16:27:32 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-17 16:27:32 -0800 |
commit | ce3c6a4dadf08f94a0ea73cff1cde6c992679803 (patch) | |
tree | 31b794a10cbd3b5eca11bf1dbb32dc5ace8da676 | |
parent | 04f0cb8ea5e1f31409c11ed445bac13adca03d11 (diff) |
Small code clarification.
-rw-r--r-- | src/blocks.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/blocks.c b/src/blocks.c index 9e76723..edd03d5 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -836,14 +836,12 @@ S_process_line(cmark_parser *parser, const unsigned char *buffer, size_t bytes) // ??? do nothing - } else if (container->type == NODE_HEADER) { - // TODO move to normalization?: - chop_trailing_hashtags(&input); - add_line(container, &input, first_nonspace); - container = finalize(parser, container); - } else if (accepts_lines(container->type)) { + if (container->type == NODE_HEADER && + container->as.header.setext == false) { + chop_trailing_hashtags(&input); + } add_line(container, &input, first_nonspace); } else if (container->type != NODE_HRULE && |