Sha256: 9fcc3bb61698ce76ff05584f33f9d12f57caa2a7866f1f58e1615947f805adfe
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
module Nanoc::Filters # @api private class AsciiDoc < Nanoc::Filter # Runs the content through [AsciiDoc](http://www.methods.co.nz/asciidoc/). # This method takes no options. # # @param [String] content The content to filter # # @return [String] The filtered content def run(content, _params = {}) stdout = StringIO.new stderr = $stderr piper = Nanoc::Extra::Piper.new(stdout: stdout, stderr: stderr) piper.run(%w(asciidoc -o - -), content) stdout.string end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.4.7 | lib/nanoc/filters/asciidoc.rb |
nanoc-4.4.6 | lib/nanoc/filters/asciidoc.rb |
nanoc-4.4.5 | lib/nanoc/filters/asciidoc.rb |