From f6207586974fc638cef13b7b05cdfdb13513e2c2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 6 May 2015 14:31:04 -0700 Subject: wrapper.rb: added argument for options. --- wrappers/wrapper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wrappers') diff --git a/wrappers/wrapper.rb b/wrappers/wrapper.rb index 59a9b87..2359366 100755 --- a/wrappers/wrapper.rb +++ b/wrappers/wrapper.rb @@ -4,12 +4,12 @@ require 'ffi' module CMark extend FFI::Library ffi_lib ['libcmark', 'cmark'] - attach_function :cmark_markdown_to_html, [:string, :int], :string + attach_function :cmark_markdown_to_html, [:string, :int, :int], :string end def markdown_to_html(s) len = s.bytesize - CMark::cmark_markdown_to_html(s, len) + CMark::cmark_markdown_to_html(s, len, 0) end STDOUT.write(markdown_to_html(ARGF.read())) -- cgit v1.2.3