X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fparser.h;h=99f68ff7cef1783a10284bcd1f00af6bcb5c44f7;hb=70165fdb849ddf3d5c0977caa119915186c7baa4;hp=2690b20e27f9747a3e3338eb6e907d2238cd3f2c;hpb=d4843ea375360f37e965709e73c0fbd68e302dca;p=smdp.git diff --git a/include/parser.h b/include/parser.h index 2690b20..99f68ff 100644 --- a/include/parser.h +++ b/include/parser.h @@ -35,17 +35,20 @@ * */ +#include "common.h" #include "markdown.h" #define EXPAND_TABS 4 #define CODE_INDENT 4 +#define UNORDERED_LIST_MAX_LEVEL 3 deck_t *markdown_load(FILE *input); int markdown_analyse(cstring_t *text); void markdown_debug(deck_t *deck, int debug); -int is_utf8(char ch); +bool is_utf8(char ch); int length_utf8(char ch); int next_nonblank(cstring_t *text, int i); +int prev_blank(cstring_t *text, int i); int next_blank(cstring_t *text, int i); int next_word(cstring_t *text, int i);