summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-05-06 14:31:04 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-05-06 14:31:04 -0700
commitf6207586974fc638cef13b7b05cdfdb13513e2c2 (patch)
tree4acbcfc257357b057fbcdc26cc692e44de6be36c /wrappers
parent8dab8b603d3f115d7830f3d90b071ab784596978 (diff)
wrapper.rb: added argument for options.
Diffstat (limited to 'wrappers')
-rwxr-xr-xwrappers/wrapper.rb4
1 files changed, 2 insertions, 2 deletions
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()))