- Commit
- ce3c6a4dadf08f94a0ea73cff1cde6c992679803
- Parent
- 04f0cb8ea5e1f31409c11ed445bac13adca03d11
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Small code clarification.
My personal build of CMark ✏️
Small code clarification.
1 file changed, 4 insertions, 6 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/blocks.c | 10 | 4 | 6 |
diff --git 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 &&