Sha256: 6ee7d3934f1c7da57f1b0126e500488bdd37ed175a15cc051afe6d1d0bf9b595

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

#!/usr/bin/env ruby
=begin =======================================================================

# MD2MAN-ROFF 1                   2016-02-21                            5.0.3

## NAME

md2man-roff - convert md2man(5) flavored markdown(7) into roff(7)

## SYNOPSIS

`md2man-roff` [*OPTION*]... [*FILE*]

## DESCRIPTION

This program converts md2man(5) flavored markdown(7) input from the given
*FILE* into roff(7) and then prints the result to the standard output stream.
If *FILE* is not given, then the standard input stream is read in its place.

### Limitations

This program does not convert the following [Redcarpet] nodes into roff(7):

  * `block_html`
  * `strikethrough`
  * `superscript`
  * `image`
  * `raw_html`

It issues a warning when it encounters these instead.  Patches are welcome!

## OPTIONS

`-h` [*PATTERN*], `--help` [*PATTERN*]
  Show this help manual and search for *PATTERN* regular expression therein.

## SEE ALSO

md2man-html(1), md2man-rake(1), md2man(5)

[Redcarpet]: https://github.com/vmg/redcarpet

=end =========================================================================

require 'binman'
BinMan.help

require 'md2man/roff/engine'
puts Md2Man::Roff::ENGINE.render(ARGF.read)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
md2man-5.0.3 bin/md2man-roff