From 829b089c80895d9a78938c5bc7747aea1cd48eb6 Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Sat, 24 Jan 2015 21:35:03 -0800 Subject: 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. --- wrappers/wrapper.rb | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 wrappers/wrapper.rb (limited to 'wrappers/wrapper.rb') diff --git a/wrappers/wrapper.rb b/wrappers/wrapper.rb deleted file mode 100755 index 59a9b87..0000000 --- a/wrappers/wrapper.rb +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env ruby -require 'ffi' - -module CMark - extend FFI::Library - ffi_lib ['libcmark', 'cmark'] - attach_function :cmark_markdown_to_html, [:string, :int], :string -end - -def markdown_to_html(s) - len = s.bytesize - CMark::cmark_markdown_to_html(s, len) -end - -STDOUT.write(markdown_to_html(ARGF.read())) -- cgit v1.2.3