lib/mdify/renderer.rb in mdify-1.0.0 vs lib/mdify/renderer.rb in mdify-1.0.1

- old
+ new

@@ -11,10 +11,14 @@ def render html = Redcarpet.new(@content).to_html document = render_html(@title, html) temp_file = create_temp_file(document) - exec "launchy #{temp_file}" + if RUBY_PLATFORM.downcase.include?("darwin") + exec "open #{temp_file}" + else + exec "launchy #{temp_file}" + end end protected def render_html(title, html)