diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-04-20 02:50:20 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-04-20 02:50:20 +0200 |
commit | 9b2a563b4931ca39cd6dd14bf85cda627714a4b2 (patch) | |
tree | afcc5ead7219b0f9f38728eb58c88dfe641325dc /src/content-parser.h | |
parent | c216deff59e2c0dd9538ced99d6b579013b3b5de (diff) | |
download | blogc-9b2a563b4931ca39cd6dd14bf85cda627714a4b2.tar.gz blogc-9b2a563b4931ca39cd6dd14bf85cda627714a4b2.tar.bz2 blogc-9b2a563b4931ca39cd6dd14bf85cda627714a4b2.zip |
content-parser: extract post description from content
description is the first line of the first paragraph parsed from content
file. users can override it declaring DESCRIPTION variable in source
file itself.
this also fixes a bug with line endings when using single line
blockquotes.
Diffstat (limited to 'src/content-parser.h')
-rw-r--r-- | src/content-parser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content-parser.h b/src/content-parser.h index 6617bb4..148d5ed 100644 --- a/src/content-parser.h +++ b/src/content-parser.h @@ -16,6 +16,7 @@ char* blogc_slugify(const char *str); char* blogc_htmlentities(const char *str); 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); +char* blogc_content_parse(const char *src, size_t *end_excerpt, + char **description); #endif /* _CONTENT_PARSER_H */ |