summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 96e53ce..a7f18cb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -19,13 +19,13 @@ static void print_document(cmark_node *document, bool ast)
{
char *result;
if (ast) {
- cmark_debug_print(document);
+ result = cmark_render_ast(document);
} else {
result = cmark_render_html(document);
- printf("%s", result);
- free(result);
}
+ printf("%s", result);
+ free(result);
}
int main(int argc, char *argv[])