Sha256: f39be3c8ebe40be3ca8cf2bdb9b33305fd8f8e78f4c91fe1849c77b84d46b292

Contents?: true

Size: 479 Bytes

Versions: 5

Compression:

Stored size: 479 Bytes

Contents

#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, int options)
{
	cmark_node *doc;
	char *result;

	doc = cmark_parse_document(text, len, options);

	result = cmark_render_html(doc, options);
	cmark_node_free(doc);

	return result;
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonmarker-0.1.3 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.1.2 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.1.1 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.1.0 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.0.1 ext/commonmarker/cmark/src/cmark.c