We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a354c92 commit fe35085Copy full SHA for fe35085
_ruby_libs/text_rendering.rb
@@ -7,7 +7,8 @@
7
# Converts RST to Markdown
8
def rst_to_md(rst)
9
begin
10
- return PandocRuby.convert(rst, :from => :rst, :to => :markdown)
+ # For some reason, Pandoc is converting UTF-8 into ASCII which then kills kramdown
11
+ return PandocRuby.convert(rst, :from => :rst, :to => :markdown).force_encoding(Encoding::UTF_8)
12
rescue Exception => e
13
return "Could not convert RST to MD: "+e.to_s
14
end
0 commit comments