Sha256: 7695280dac8fb2ae3fbe8c9a94346082dc94c0be1b91e7eddb1353039513ff99
Contents?: true
Size: 487 Bytes
Versions: 47
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module Nanoc::Filters # @api private class AsciiDoc < Nanoc::Filter identifier :asciidoc # 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 = {}) TTY::Command.new(printer: :null).run('asciidoc -o - -', input: content).out end end end
Version data entries
47 entries across 47 versions & 1 rubygems