Sha256: cbe3281c319a0a2af3ce477309e13ee14145c35d3e70c7c37cb82e8d959b182a

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

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

# MD2MAN-HTML 1 2013-05-05 2.0.0

## NAME

md2man-html - convert md2man(5) flavored markdown(7) into HTML

## SYNOPSIS

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

## DESCRIPTION

This program converts md2man(5) flavored markdown(7) input from the given
*FILE* into HTML 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.

### Cross references

Cross references to manual pages are emitted as HTML hyperlinks that have
`class="md2man-xref"` and `href="../man$SECTION/$PAGE.$SECTION.html"`
attributes.

For example, the `printf(3)` cross reference would be emitted as this HTML:

    <a class="md2man-xref" href="../man3/printf.3.html">printf(3)</a>

## OPTIONS

`-h`, `--help`
  Show this help manual.

## SEE ALSO

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

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

require 'binman'
BinMan.help

require 'md2man/html/engine'
puts Md2Man::HTML::ENGINE.render(ARGF.read)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
md2man-2.0.0 bin/md2man-html