forked from dreamwieber/AttributedMarkdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
markdown_lib.h
34 lines (27 loc) · 855 Bytes
/
markdown_lib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <stdlib.h>
#include <stdio.h>
#import <Foundation/Foundation.h>
#import <CoreText/CoreText.h>
enum markdown_extensions {
EXT_NONE = 0x00,
EXT_SMART = 0x01,
EXT_NOTES = 0x02,
EXT_FILTER_HTML = 0x04,
EXT_FILTER_STYLES = 0x08,
EXT_ALL = 0xFF
};
enum markdown_formats {
HTML_FORMAT,
LATEX_FORMAT,
GROFF_MM_FORMAT
};
NSMutableAttributedString* markdown_to_attr_string(NSString *text, int extensions, NSDictionary* attributes);
NSMutableString * markdown_to_nsstring(NSString *text, int extensions, int output_format);
const char * markdown_to_string(NSString *text, int extensions, int output_format);
@interface NSMutableString (Sugar)
- (void)appendCharacter:(unichar)ch;
@end
@interface NSString (Sugar)
- (const char *)defaultCString;
@end
/* vim: set ts=4 sw=4 : */