Sha256: c70f94a1f1017c9d30554b4325b5b0e4192301fe6b16e8721ef61a288d2d4548
Contents?: true
Size: 556 Bytes
Versions: 17
Compression:
Stored size: 556 Bytes
Contents
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
17 entries across 17 versions & 1 rubygems