X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fparser.h;h=db95f650e1d220b24327b7ce6cdc4aae8fe00d49;hb=ab232c9a47a28d78fd50fb602b7e8d6904f5d38c;hp=477342deb3cda4f20ca4162a9be0dee41399875e;hpb=5f369c826ac0ca4989892b3691f66d0ac73679f3;p=smdp.git diff --git a/include/parser.h b/include/parser.h index 477342d..db95f65 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) 2014 Michael Goehler + * Copyright (C) 2016 Michael Goehler * * This file is part of mdp. * @@ -40,19 +40,24 @@ #include "markdown.h" #include "cstack.h" +#if defined( CYGWIN ) +#undef WEOF +#define WEOF (0xffff) +#endif // defined( CYGWIN ) + #define EXPAND_TABS 4 #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); -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); +int next_nontilde(cstring_t *text, int i); #endif // !defined( PARSER_H )