aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wrapper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/wrapper.rb b/wrapper.rb
index 3ec2186..e7e515c 100644
--- a/wrapper.rb
+++ b/wrapper.rb
@@ -7,7 +7,8 @@ module CMark
end
def markdown_to_html(s)
- CMark::cmark_markdown_to_html(s, s.length)
+ len = s.bytes.length
+ CMark::cmark_markdown_to_html(s, len)
end
print markdown_to_html(STDIN.read());