X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fmarkdown.h;h=9c29d868f86d0e174d02d994000c87b7f71b3fe0;hb=9f1e6a612e7e9ebb4bc703b8e75a723ed7c8779c;hp=ee6dff73b918f0e8ebe8d3e1518959b51f8472ed;hpb=5ef15d236a390f60d3bfb435325c6b40e3bfede2;p=smdp.git diff --git a/include/markdown.h b/include/markdown.h index ee6dff7..9c29d86 100644 --- a/include/markdown.h +++ b/include/markdown.h @@ -14,13 +14,12 @@ #define CHECK_BIT(var, pos) ((var) & (1<<(pos))) enum line_bitmask { - IS_HEADER, - IS_HEADER2, + IS_H1, + IS_H2, IS_QUOTE, IS_CODE, - IS_LIST, - IS_NUMLIST, - IS_HR + IS_HR, + IS_EMPTY }; typedef struct _line_t { @@ -49,6 +48,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 )