X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fmarkdown.h;h=d353896bf69a9110fd9844ddb79881791f7e9cc7;hb=c3bcbda5c26b9234b6207b4c6fb85ab1565d9d0b;hp=da8805e8b5caaeaae7fb67c1c835a75f7252ecf1;hpb=680d0478fc66d6d25b1f258be0114d6c915ec0a0;p=smdp.git diff --git a/include/markdown.h b/include/markdown.h index da8805e..d353896 100644 --- a/include/markdown.h +++ b/include/markdown.h @@ -3,7 +3,7 @@ /* * An implementation of markdown objects. - * Copyright (C) 2014 Michael Goehler + * Copyright (C) 2018 Michael Goehler * * This file is part of mdp. * @@ -21,7 +21,7 @@ * along with this program. If not, see . * * - * enum: line_bitmask which enumerates markdown formating bits + * enum: line_bitmask which enumerates markdown formatting bits * * struct: deck_t the root object representing a deck of slides * struct: slide_t a linked list element of type slide contained in a deck @@ -47,6 +47,8 @@ enum line_bitmask { IS_H2_ATX, IS_QUOTE, IS_CODE, + IS_TILDE_CODE, + IS_GFM_CODE, IS_HR, IS_UNORDERED_LIST_1, IS_UNORDERED_LIST_2, @@ -72,6 +74,7 @@ typedef struct _slide_t { struct _slide_t *next; int lines; int stop; + int lines_consumed; } slide_t; typedef struct _deck_t {