X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=inline;f=include%2Fparser.h;h=4eb9dfe1558f536c1c13cde541f83c5b450d474f;hb=32c41cac57abc7887875b82c4b1511939ee4b5f1;hp=9c11b2accd468727658bb37e13910664a72c917a;hpb=3da34e1957b3484506b5f0f79f84f64a4cff2f1b;p=smdp.git diff --git a/include/parser.h b/include/parser.h index 9c11b2a..4eb9dfe 100644 --- a/include/parser.h +++ b/include/parser.h @@ -7,7 +7,7 @@ * rules. * Copyright (C) 2014 Michael Goehler * - * This file is part of mpd. + * This file is part of mdp. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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); @@ -46,6 +48,7 @@ void markdown_debug(deck_t *deck, int debug); int 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);