diff --git a/Gemfile b/Gemfile index 6801eb2c..79862851 100644 --- a/Gemfile +++ b/Gemfile @@ -15,5 +15,5 @@ gem 'twitter-text', '~> 3.1' gem "wikicloth", "=0.8.3" gem 'asciidoctor', '~> 2.0', '>= 2.0.21' gem 'rake', '~> 13.1' -gem 'pandoc-ruby', '~> 2.1', '>= 2.1.10' +gem 'paru' diff --git a/lib/github/markups.rb b/lib/github/markups.rb index 20702af3..1ab4030f 100644 --- a/lib/github/markups.rb +++ b/lib/github/markups.rb @@ -1,7 +1,7 @@ require "github/markup/markdown" require "github/markup/rdoc" require "shellwords" -require 'pandoc-ruby' +require "paru/pandoc" markup_impl(::GitHub::Markups::MARKUP_MARKDOWN, ::GitHub::Markup::Markdown.new) @@ -49,7 +49,11 @@ end markup(::GitHub::Markups::MARKUP_RST, :rst, /re?st(\.txt)?/, ["reStructuredText"]) do |filename, content, options: {}| - PandocRuby.new(content, from: :rst).to_html + output = Paru::Pandoc.new do + from "rst" + to "html" + end << content + puts output end command(::GitHub::Markups::MARKUP_POD6, :pod62html, /pod6/, ["Pod 6"], "pod6")