Skip to content

Commit 38d94b6

Browse files
committed
lets test paru
1 parent 7fc188f commit 38d94b6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ gem 'twitter-text', '~> 3.1'
1515
gem "wikicloth", "=0.8.3"
1616
gem 'asciidoctor', '~> 2.0', '>= 2.0.21'
1717
gem 'rake', '~> 13.1'
18-
gem 'pandoc-ruby', '~> 2.1', '>= 2.1.10'
18+
gem 'paru'
1919

lib/github/markups.rb

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "github/markup/markdown"
22
require "github/markup/rdoc"
33
require "shellwords"
4-
require 'pandoc-ruby'
4+
require "paru/pandoc"
55

66
markup_impl(::GitHub::Markups::MARKUP_MARKDOWN, ::GitHub::Markup::Markdown.new)
77

@@ -49,7 +49,11 @@
4949
end
5050

5151
markup(::GitHub::Markups::MARKUP_RST, :rst, /re?st(\.txt)?/, ["reStructuredText"]) do |filename, content, options: {}|
52-
PandocRuby.new(content, from: :rst).to_html
52+
output = Paru::Pandoc.new do
53+
from "rst"
54+
to "html"
55+
end << content
56+
puts output
5357
end
5458

5559
command(::GitHub::Markups::MARKUP_POD6, :pod62html, /pod6/, ["Pod 6"], "pod6")

0 commit comments

Comments
 (0)