{"repo":"xwmx/pandoc-ruby","free":true,"listed":false,"github":"https://github.com/xwmx/pandoc-ruby","clone":"git clone https://github.com/xwmx/pandoc-ruby.git","description":"Ruby wrapper for Pandoc","language":"Ruby","stars":351,"topics":["pandoc","ruby","markup","markup-language","markdown","restructuredtext"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"PandocRuby PandocRuby is a wrapper for Pandoc, a Haskell library with command line tools for converting one markup format to another. Pandoc can convert documents from a variety of formats including markdown, reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a variety of other formats, including markdown, reStructuredText, HTML, LaTeX, ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and more. Installation First, install Pandoc. PandocRuby is available on RubyGems: To install with Bundler, add the following to your Gemfile: Then run bundle install Usage This takes the Markdown formatted string and converts it to reStructuredText. You can also use the #convert class method: Other arguments are simply converted into command line options, accepting symbols and strings for options and hashes for options with arguments. is equivalent to Also provided are #to [writer] instance methods for each of the writers, and these can also accept options: Similarly, there are class methods for each of the readers, so readers and writers can be specified like this: Available readers and writers are can be found in the following variables: - PandocRuby::READERS - PandocRuby::STRING WRITERS - PandocRuby::BINARY WRITERS - PandocRuby::WRITERS PandocRuby assumes the pandoc executable is in your environment's $PATH variable. If you'd like to set an explicit path to the pandoc exec","default_branch":null,"files":null,"tree":[],"storefront":"/r/xwmx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xwmx/pandoc-ruby/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}