Sha256: 0dd61b82df320b6c0fef58bf1137429d8ae117c02216cb799c17d5db3df39988

Contents?: true

Size: 344 Bytes

Versions: 7

Compression:

Stored size: 344 Bytes

Contents

#!/usr/bin/env ruby

lib_dir = File.expand_path('../lib',File.dirname(__FILE__))
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)

require 'kramdown'
require 'kramdown/man'

case ARGV[0]
when '-h', '--help'
  warn "usage: #{File.dirname($0)} <INPUT.md >OUTPUT"
  exit
end

doc = Kramdown::Document.new(ARGF.read)
puts doc.to_man

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kramdown-man-0.1.9 bin/kramdown-man
kramdown-man-0.1.8 bin/kramdown-man
kramdown-man-0.1.7 bin/kramdown-man
kramdown-man-0.1.6 bin/kramdown-man
kramdown-man-0.1.5 bin/kramdown-man
kramdown-man-0.1.4 bin/kramdown-man
kramdown-man-0.1.3 bin/kramdown-man