pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add g and G keybinds to usage description
[smdp.git]
/
include
/
parser.h
diff --git
a/include/parser.h
b/include/parser.h
index
4eb9dfe
..
477342d
100644
(file)
--- a/
include/parser.h
+++ b/
include/parser.h
@@
-28,6
+28,7
@@
* function: markdown_analyse which is used to identify line wide formating
* rules in given line
* function: markdown_debug to print a report of the generated data structure
* function: markdown_analyse which is used to identify line wide formating
* 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
@@
-37,15
+38,17
@@
#include "common.h"
#include "markdown.h"
#include "common.h"
#include "markdown.h"
+#include "cstack.h"
#define EXPAND_TABS 4
#define CODE_INDENT 4
#define UNORDERED_LIST_MAX_LEVEL 3
deck_t *markdown_load(FILE *input);
#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);
+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);
+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 length_utf8(char ch);
int next_nonblank(cstring_t *text, int i);
int prev_blank(cstring_t *text, int i);