Sha256: a871b55cc268a834562bac946b83b1631d59b50a72be4f34ea867c71fe7ff688

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

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

# MD2MAN-HTML 1 2013-05-04 1.6.1

## 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.6.1 bin/md2man-html