1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
marked-man(1) -- markdown to roff
=================================
SYNOPSIS
--------
```
marked-man README.md > doc/marked-man.1
```
See [marked README](https://github.com/chjj/marked) for documentation about how to use marked.
Note that `marked-man --format=html` is the same as `marked`.
DESCRIPTION
-----------
`marked-man` wraps `marked` to extend it with groff output support in order to
create Unix manual pages for use with `man`.
OPTIONS
-------
`marked-man` invokes `marked --gfm --sanitize`, and you can pass additional
options through.
The `--breaks` option, which retains intra-paragraph line breaks, can be helpful to match default ronn behavior.
`marked-man` adds some options to `marked`'s existing options:
* `--format <format>`
Sets the output format. Outputs html if different from `roff`.
Defaults to `roff`.
* `--name <name>`
The name shown in the manpage header, if it isn't given in the ronn header like in this README.
Defaults to empty string.
* `--section <section>`
The section number shown in the manpage header, if it isn't given in the ronn header like in this README.
Defaults to empty string.
* `--version <version>`
The version shown in the manpage footer.
Defaults to empty string.
* `--manual <manual>`
The manual-group name shown in the manpage header.
Defaults to empty string.
* `--date <date>`
The date shown in the manpage header.
Defaults to now, must be acceptable to `new Date(string)`.
INSTALLATION
------------
From the [npm registry](https://npmjs.com):
* locally (`--save`, `--save-dev`, or `--save-optional` add `marked-man` to your `package.json` file as a runtime, development-time, or optional runtime dependency, respectively)
npm install marked-man [--save|--save-dev|--save-optional]
* globally (puts `marked-man` in your system's path):
[sudo] npm install marked-man -g
EXAMPLE
-------
To view this README as a man page, run something like the following:
marked-man --version v0.1.0 --manual 'Man Utilities' README.md > /tmp/mm$$.1 && man /tmp/mm$$.1
SEE ALSO
--------
[Ronn](https://github.com/rtomayko/ronn)
REPORTING BUGS
--------------
See [marked-man repository](https://github.com/kapouer/marked-man).
|