class Nanoc::Filters::AsciiDoc
@since 3.2.0
@api private
Public Instance Methods
run(content, _params = {})
click to toggle source
Runs the content through [AsciiDoc](www.methods.co.nz/asciidoc/). This method takes no options.
@param [String] content The content to filter
@return [String] The filtered content
# File lib/nanoc/filters/asciidoc.rb, line 12 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