Permalink
Browse files

move to asciidoctor

  • Loading branch information...
1 parent 8d681b2 commit d36bb944699042cac554f6eb32d91fdff40bb582 @qmx qmx committed Jan 30, 2013
Showing with 3 additions and 7 deletions.
  1. +1 −0 Gemfile
  2. +2 −7 _plugins/asciidoc.rb
View
1 Gemfile
@@ -3,3 +3,4 @@ source :rubygems
gem 'RedCloth'
gem 'jekyll'
gem 'net-sftp'
+gem 'asciidoctor'
View
9 _plugins/asciidoc.rb
@@ -1,4 +1,4 @@
-require 'open3'
+require 'asciidoctor'
module Jekyll
class AsciiDoc < Converter
safe true
@@ -12,12 +12,7 @@ def output_ext(ext)
end
def convert(content)
- cmd = "asciidoc -s -b html5 -a pygments -a imagesdir='../' -o - -"
- Open3.popen3(cmd) do |stdin, stdout, _|
- stdin.puts content
- stdin.close
- out = stdout.read
- end
+ Asciidoctor::Document.new(content).render
end
end
end

0 comments on commit d36bb94

Please sign in to comment.