Skip to content

Commit

Permalink
Update man renderer api docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpfs committed Apr 18, 2016
1 parent cc9b097 commit 7e0ecc1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -356,6 +356,20 @@ specified.
Adds macros for headings level 1-6 (.h1-.h6), a macro for the thematic
break (.hr) and the newline macro (.nl) after the preamble.

A standard list uses the .BL, .IP and .EL macros rendering a circle as
the list bullet.

Lists that use the bullet character `+` are treated differently; they are
rendered using the .TP macro and the first softbreak in the list item
paragraph causes a newline in the output. This is intended for listing
options and commands in the idiomatic format:

```troff
.TP
\fB\-\-version\fR
Print version and exit
```

* `opts` Object processing options.

#### Options
Expand Down
14 changes: 14 additions & 0 deletions lib/man.js
Expand Up @@ -35,6 +35,20 @@ var macros = {
* Adds macros for headings level 1-6 (.h1-.h6), a macro for the thematic
* break (.hr) and the newline macro (.nl) after the preamble.
*
* A standard list uses the .BL, .IP and .EL macros rendering a circle as
* the list bullet.
*
* Lists that use the bullet character `+` are treated differently; they are
* rendered using the .TP macro and the first softbreak in the list item
* paragraph causes a newline in the output. This is intended for listing
* options and commands in the idiomatic format:
*
* ```troff
* .TP
* \fB\-\-version\fR
* Print version and exit
* ```
*
* @constructor ManRenderer
* @param {Object} [opts] processing options.
*
Expand Down

0 comments on commit 7e0ecc1

Please sign in to comment.