summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-15 15:28:49 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-15 15:28:49 +0200
commit118e3d3c39242225baa876319cdbfbb1adadc77b (patch)
treef3ee75c973eb8f64bb843e7d5980d02a9940481e /src/main.c
parent0ae7f4f53720e867c92ac9465062285293568856 (diff)
Cleanup external APIs
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 90bb16d..76a0e12 100644
--- a/src/main.c
+++ b/src/main.c
@@ -17,9 +17,9 @@ static void print_document(node_block *document, bool ast)
strbuf html = GH_BUF_INIT;
if (ast) {
- print_blocks(document, 0);
+ stmd_debug_print(document);
} else {
- blocks_to_html(&html, document, false);
+ stmd_render_html(&html, document);
printf("%s", html.ptr);
strbuf_free(&html);
}
@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
if (numfps == 0) {
document = stmd_parse_file(stdin);
print_document(document, ast);
- free_blocks(document);
+ stmd_free_nodes(document);
} else {
for (i = 0; i < numfps; i++) {
FILE *fp = fopen(argv[files[i]], "r");
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
document = stmd_parse_file(fp);
print_document(document, ast);
- free_blocks(document);
+ stmd_free_nodes(document);
fclose(fp);
}
}