Sha256: 780f73dab1ead74ba428c1842b37883e9fa890d9ef7da46f44eaf5c44d0b9902

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

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

# MD2MAN-HTML 1 2012-10-14 1.4.0

## NAME

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

## SYNOPSIS

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

## DESCRIPTION

This program converts the markdown(7) input from the given *FILE* into HTML
and then prints the result to stdout.  stdin is read if *FILE* is not given.

### Document format

See md2man(1) for details about the document format and Markdown extensions.

### Cross linking

References to other manual pages are converted into hyperlinks that have
class="manpage-reference" and href="../man${section}/${page}.${section}.html"
attributes.

For example, the markdown(7) reference would be converted into HTML as:

    <a class="manpage-reference" href="../man7/markdown.7.html">markdown(7)</a>

## OPTIONS

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

## SEE ALSO

md2man(1)

=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-1.4.0 bin/md2man-html