pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added debug levels + debug to STDERR
[smdp.git]
/
include
/
markdown.h
diff --git
a/include/markdown.h
b/include/markdown.h
index
28b48e0
..
9c29d86
100644
(file)
--- a/
include/markdown.h
+++ b/
include/markdown.h
@@
-14,13
+14,12
@@
#define CHECK_BIT(var, pos) ((var) & (1<<(pos)))
enum line_bitmask {
#define CHECK_BIT(var, pos) ((var) & (1<<(pos)))
enum line_bitmask {
- IS_H
EADER
,
- IS_H
EADER
2,
+ IS_H
1
,
+ IS_H2,
IS_QUOTE,
IS_CODE,
IS_QUOTE,
IS_CODE,
- IS_LIST,
- IS_NUMLIST,
- IS_HR
+ IS_HR,
+ IS_EMPTY
};
typedef struct _line_t {
};
typedef struct _line_t {
@@
-38,9
+37,7
@@
typedef struct _page_t {
} page_t;
typedef struct _document_t {
} page_t;
typedef struct _document_t {
- line_t *title;
- line_t *author;
- line_t *date;
+ line_t *header;
page_t *page;
} document_t;
page_t *page;
} document_t;
@@
-51,6
+48,7
@@
page_t *next_page(page_t *prev);
document_t *new_document();
int is_utf8(char ch);
int next_nonblank(cstring_t *text, int i);
document_t *new_document();
int is_utf8(char ch);
int next_nonblank(cstring_t *text, int i);
+int next_blank(cstring_t *text, int i);
document_t *markdown_load(FILE *input);
#endif // !defined( MARKDOWN_H )
document_t *markdown_load(FILE *input);
#endif // !defined( MARKDOWN_H )