From: FreeBirdLjj Date: Wed, 24 Sep 2014 16:58:16 +0000 (+0800) Subject: Add data structure for unordered list. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=0cb71268b17951d68ae97e12593afcd6b6aaabbb;p=smdp.git Add data structure for unordered list. --- diff --git a/include/markdown.h b/include/markdown.h index 7c786ef..a1dd759 100644 --- a/include/markdown.h +++ b/include/markdown.h @@ -44,6 +44,9 @@ enum line_bitmask { IS_QUOTE, IS_CODE, IS_HR, + IS_UNORDERED_LIST_1, + IS_UNORDERED_LIST_2, + IS_UNORDERED_LIST_3, IS_EMPTY }; diff --git a/include/parser.h b/include/parser.h index 2690b20..1a113e0 100644 --- a/include/parser.h +++ b/include/parser.h @@ -35,10 +35,12 @@ * */ +#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);