aboutsummaryrefslogtreecommitdiff
path: root/src/cmark.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-24 21:35:03 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-24 21:39:07 -0800
commit829b089c80895d9a78938c5bc7747aea1cd48eb6 (patch)
tree53bd534741a90c547c5d87039efa5ee625da8081 /src/cmark.c
parent5ef31853d5161d4b5a2dfc0df94e6eaaeb3215d0 (diff)
Removed implementation-specific material from repository.
The C and JS implementations are being split off into different repositories. This repository will just have the spec itself.
Diffstat (limited to 'src/cmark.c')
-rw-r--r--src/cmark.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/cmark.c b/src/cmark.c
deleted file mode 100644
index 2ec9be9..0000000
--- a/src/cmark.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <stdlib.h>
-#include <assert.h>
-#include <stdio.h>
-#include "node.h"
-#include "houdini.h"
-#include "cmark.h"
-#include "buffer.h"
-
-const int cmark_version = CMARK_VERSION;
-const char cmark_version_string[] = CMARK_VERSION_STRING;
-
-char *cmark_markdown_to_html(const char *text, int len)
-{
- cmark_node *doc;
- char *result;
-
- doc = cmark_parse_document(text, len);
-
- result = cmark_render_html(doc, CMARK_OPT_DEFAULT);
- cmark_node_free(doc);
-
- return result;
-}
-