From cc0c4d6866bb876e1ba098bc7f70fb8f312e9fc2 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 22 May 2016 17:10:46 +0200 Subject: content-parser: do not use paragraphs inside blockquote for DESCRIPTION --- src/content-parser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/content-parser.c b/src/content-parser.c index 0c99e31..4840a1d 100644 --- a/src/content-parser.c +++ b/src/content-parser.c @@ -701,7 +701,10 @@ blogc_content_parse(const char *src, size_t *end_excerpt, char **description) for (sb_slist_t *l = lines; l != NULL; l = l->next) sb_string_append_printf(tmp_str, "%s%s", l->data, line_ending); - tmp = blogc_content_parse(tmp_str->str, NULL, description); + // do not propagate description to blockquote parsing, + // because we just want paragraphs from first level of + // content. + tmp = blogc_content_parse(tmp_str->str, NULL, NULL); sb_string_append_printf(rv, "
%s
%s", tmp, line_ending); free(tmp); -- cgit v1.2.3-18-g5258