X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fparser.h;h=b2ecc21921506100786ad46a1cfc1cc56accc598;hb=b56994fd240a45f3b4060883f6a17c659c495e23;hp=4140389ee14302c5d1c506ee1970003bbd25cb4e;hpb=01a21345277528bb331653603e0d3771e5ed5870;p=smdp.git diff --git a/include/parser.h b/include/parser.h index 4140389..b2ecc21 100644 --- a/include/parser.h +++ b/include/parser.h @@ -5,7 +5,7 @@ * Functions necessary to parse a file and transform its content into * a deck of slides containing lines. All based on markdown formating * rules. - * Copyright (C) 2015 Michael Goehler + * Copyright (C) 2016 Michael Goehler * * This file is part of mdp. * @@ -49,13 +49,16 @@ #define CODE_INDENT 4 #define UNORDERED_LIST_MAX_LEVEL 3 -deck_t *markdown_load(FILE *input); +deck_t *markdown_load(FILE *input, int noexpand); int markdown_analyse(cstring_t *text, int prev); void markdown_debug(deck_t *deck, int debug); +void expand_character_entities(line_t *line); void adjust_line_length(line_t *line); 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); +int next_nontilde(cstring_t *text, int i); +int next_nonbacktick(cstring_t *text, int i); #endif // !defined( PARSER_H )