Sha256: 1fe94d94e0b8caee3a09d96dd020dfb0b4202d575ccb2b0624c01dd2c16a5262

Contents?: true

Size: 503 Bytes

Versions: 9

Compression:

Stored size: 503 Bytes

Contents

#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include "node.h"
#include "houdini.h"
#include "cmark.h"
#include "buffer.h"

int cmark_version() { return CMARK_VERSION; }

const char *cmark_version_string() { return CMARK_VERSION_STRING; }

char *cmark_markdown_to_html(const char *text, size_t 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

9 entries across 9 versions & 1 rubygems

Version Path
commonmarker-0.9.1 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.9.0 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.8.0 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.7.0 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.6.0 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.5.1 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.5.0 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.4.1 ext/commonmarker/cmark/src/cmark.c
commonmarker-0.4.0 ext/commonmarker/cmark/src/cmark.c