aboutsummaryrefslogtreecommitdiffstats
path: root/src/content-parser.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-05-23 02:38:22 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-05-23 02:41:11 +0200
commit1605bf39ab342ea5d904fe96df81dd0f55bd3bcf (patch)
tree04a8edf1609888cedeb284efa2bc041fd2d40b60 /src/content-parser.h
parentcc0c4d6866bb876e1ba098bc7f70fb8f312e9fc2 (diff)
downloadblogc-1605bf39ab342ea5d904fe96df81dd0f55bd3bcf.tar.gz
blogc-1605bf39ab342ea5d904fe96df81dd0f55bd3bcf.tar.bz2
blogc-1605bf39ab342ea5d904fe96df81dd0f55bd3bcf.zip
content-parser: fixed DESCRIPTION variable.
it is now built as a single line variable, that contains the full unparsed content of the first paragraph found in the source file, instead of just the first line of it. this also fixes a bug that prevented creating of DESCRIPTION variable, if the source file contained only a single line paragraph.
Diffstat (limited to 'src/content-parser.h')
-rw-r--r--src/content-parser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content-parser.h b/src/content-parser.h
index 148d5ed..85bd063 100644
--- a/src/content-parser.h
+++ b/src/content-parser.h
@@ -14,6 +14,7 @@
char* blogc_slugify(const char *str);
char* blogc_htmlentities(const char *str);
+char* blogc_fix_description(const char *paragraph);
char* blogc_content_parse_inline(const char *src);
bool blogc_is_ordered_list_item(const char *str, size_t prefix_len);
char* blogc_content_parse(const char *src, size_t *end_excerpt,