summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--format.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/format.c b/format.c
index b62cd50..14508b9 100644
--- a/format.c
+++ b/format.c
@@ -38,10 +38,10 @@ struct {
38}; 38};
39 39
40 40
41static d_char *format_line(const char *line) 41static xs_str *format_line(const char *line)
42/* formats a line */ 42/* formats a line */
43{ 43{
44 d_char *s = xs_str_new(NULL); 44 xs_str *s = xs_str_new(NULL);
45 char *p, *v; 45 char *p, *v;
46 46
47 /* split by markup */ 47 /* split by markup */
@@ -90,10 +90,10 @@ static d_char *format_line(const char *line)
90} 90}
91 91
92 92
93d_char *not_really_markdown(const char *content) 93xs_str *not_really_markdown(const char *content)
94/* formats a content using some Markdown rules */ 94/* formats a content using some Markdown rules */
95{ 95{
96 d_char *s = xs_str_new(NULL); 96 xs_str *s = xs_str_new(NULL);
97 int in_pre = 0; 97 int in_pre = 0;
98 int in_blq = 0; 98 int in_blq = 0;
99 xs *list; 99 xs *list;
@@ -172,10 +172,10 @@ const char *valid_tags[] = {
172 "span", "i", "b", "u", "pre", "code", "em", "strong", NULL 172 "span", "i", "b", "u", "pre", "code", "em", "strong", NULL
173}; 173};
174 174
175d_char *sanitize(const char *content) 175xs_str *sanitize(const char *content)
176/* cleans dangerous HTML output */ 176/* cleans dangerous HTML output */
177{ 177{
178 d_char *s = xs_str_new(NULL); 178 xs_str *s = xs_str_new(NULL);
179 xs *sl; 179 xs *sl;
180 int n = 0; 180 int n = 0;
181 char *p, *v; 181 char *p, *v;