pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typos
[smdp.git]
/
include
/
parser.h
diff --git
a/include/parser.h
b/include/parser.h
index
9c11b2a
..
751afdd
100644
(file)
--- a/
include/parser.h
+++ b/
include/parser.h
@@
-5,9
+5,9
@@
* Functions necessary to parse a file and transform its content into
* a deck of slides containing lines. All based on markdown formating
* rules.
* 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) 201
4
Michael Goehler
+ * Copyright (C) 201
8
Michael Goehler
*
*
- * This file is part of m
pd
.
+ * This file is part of m
dp
.
*
* 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
*
* 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
@@
-25,9
+25,10
@@
*
* function: markdown_load is the main function which reads a file handle,
* and initializes deck, slides and lines
*
* function: markdown_load is the main function which reads a file handle,
* and initializes deck, slides and lines
- * function: markdown_analyse which is used to identify line wide formating
+ * function: markdown_analyse which is used to identify line wide format
t
ing
* rules in given line
* function: markdown_debug to print a report of the generated data structure
* rules in given line
* function: markdown_debug to print a report of the generated data structure
+ * function: adjust_line_length to calculate line length excluding markup
* function: is_utf8 detects multi-byte char
* function: length_utf8 calculates the amount of bytes used for a multi-byte
* char
* function: is_utf8 detects multi-byte char
* function: length_utf8 calculates the amount of bytes used for a multi-byte
* char
@@
-35,18
+36,29
@@
*
*/
*
*/
+#include "common.h"
#include "markdown.h"
#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 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);
+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 markdown_debug(deck_t *deck, int debug);
-
int is_utf8(char ch
);
-
int length_utf8(char ch
);
+
void expand_character_entities(line_t *line
);
+
void adjust_line_length(line_t *line
);
int next_nonblank(cstring_t *text, int i);
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_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 )
#endif // !defined( PARSER_H )