X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fmarkdown.h;h=4d5105c268324f17d94f9c50fffd19c691880cd6;hb=c8c3b3d8b2755bddb5c9562ead12d659c31f3090;hp=28b48e066c501336d184d0dbc33dd45354d9e472;hpb=76cedc9066d3fd65788f86ea5d0b71db98bb6e24;p=smdp.git diff --git a/include/markdown.h b/include/markdown.h index 28b48e0..4d5105c 100644 --- a/include/markdown.h +++ b/include/markdown.h @@ -38,9 +38,7 @@ typedef struct _page_t { } page_t; typedef struct _document_t { - line_t *title; - line_t *author; - line_t *date; + line_t *header; page_t *page; } document_t; @@ -51,6 +49,7 @@ page_t *next_page(page_t *prev); document_t *new_document(); int is_utf8(char ch); int next_nonblank(cstring_t *text, int i); +int next_blank(cstring_t *text, int i); document_t *markdown_load(FILE *input); #endif // !defined( MARKDOWN_H )