summaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-16 17:49:56 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-16 17:49:56 -0800
commit9ab35064d99ebe70e80dba88fa75f22f79751cb5 (patch)
tree80365e15496df8ee8f36a73f1ab039cb4151f551 /src/html
parent025140cf71e90cd7d54144c82ba8328493692bb6 (diff)
Export enums for inline, block types, list and list delim types.
Also switched from `bullet`, `ordered`, `parens`, `period` to `CMARK_BULLET_LIST`, `CMARK_ORDERED_LIST`, `CMARK_PAREN_DELIM`, `CMARK_PERIOD_DELIM`.
Diffstat (limited to 'src/html')
-rw-r--r--src/html/html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/html/html.c b/src/html/html.c
index a0be6f2..1969490 100644
--- a/src/html/html.c
+++ b/src/html/html.c
@@ -295,14 +295,14 @@ static void blocks_to_html(strbuf *html, node_block *b)
if (data->start > 1) {
strbuf_printf(html, "<%s start=\"%d\">\n",
- data->list_type == bullet ? "ul" : "ol",
+ data->list_type == CMARK_BULLET_LIST ? "ul" : "ol",
data->start);
} else {
- strbuf_puts(html, data->list_type == bullet ? "<ul>\n" : "<ol>\n");
+ strbuf_puts(html, data->list_type == CMARK_BULLET_LIST ? "<ul>\n" : "<ol>\n");
}
rstack = push_block(rstack, b->next,
- data->list_type == bullet ?
+ data->list_type == CMARK_BULLET_LIST ?
"\n</ul>\n" : "\n</ol>\n", tight, false);
tight = data->tight;
visit_children = true;