Sha256: 19db517e849b665cf4080b5d5a2436d6a3b51eac5747e098df4a33d42fbac6e7

Contents?: true

Size: 573 Bytes

Versions: 2

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

require 'kramdown'

require 'kramdown/man/version'
require 'kramdown/man/converter'

module Kramdown
  class Document
    #
    # Converts the parsed markdown document to a man page.
    #
    # @param [Hash] options
    #   Additional options.
    #
    # @return [String]
    #   The converted man page contents.
    #
    # @since 1.0.0
    #
    # @api public
    #
    def to_man(options={})
      output, warnings = Kramdown::Man::Converter.convert(@root,options)

      @warnings.concat(warnings)
      return output
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kramdown-man-1.0.1 lib/kramdown/man.rb
kramdown-man-1.0.0 lib/kramdown/man.rb