Sha256: 3b589802e677964de2f17935e934c747a8897e58df605149734bf7362739db97
Contents?: true
Size: 577 Bytes
Versions: 4
Compression:
Stored size: 577 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters # @since 3.2.0 # # @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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.0.0b2 | lib/nanoc/filters/asciidoc.rb |
nanoc-4.0.0b1 | lib/nanoc/filters/asciidoc.rb |
nanoc-4.0.0a2 | lib/nanoc/filters/asciidoc.rb |
nanoc-4.0.0a1 | lib/nanoc/filters/asciidoc.rb |