Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move to asciidoctor

  • Loading branch information...
commit d36bb944699042cac554f6eb32d91fdff40bb582 1 parent 8d681b2
Douglas Campos qmx authored
Showing with 3 additions and 7 deletions.
  1. +1 −0  Gemfile
  2. +2 −7 _plugins/asciidoc.rb
1  Gemfile
View
@@ -3,3 +3,4 @@ source :rubygems
gem 'RedCloth'
gem 'jekyll'
gem 'net-sftp'
+gem 'asciidoctor'
9 _plugins/asciidoc.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.