Skip to content

Commit

Permalink
Merge pull request #15 from neocotic/man-page
Browse files Browse the repository at this point in the history
New man page
  • Loading branch information
neocotic committed Feb 4, 2013
2 parents 30271ee + 7cff5fc commit 592d03f
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 1 deletion.
102 changes: 102 additions & 0 deletions docs/md.1
@@ -0,0 +1,102 @@
.TH MD 1 "February 2013" "" "General Commands Manual"

.SH NAME
.B md
\- HTML to Markdown converter

.SH SYNOPSIS

.B md
[
.B \-adlp
]
[
.B \-o
.I output_dir
]
[
.I paths
]
.br
[
.B \-dp
]
[
.B \-e
.I html
]
.br
[
.B \-v
]

.SH DESCRIPTION

html.md is a JavaScript library which allows HTML to be
converted into valid Markdown. It also supports file
systems to provide a complete command line utility.

.SH OPTIONS

.TP 15
.B \-a/\-\-absolute
Always use absolute URLs for converted links.

.TP
.B \-d/\-\-debug
Debug mode. Causes
.B md
to print debugging messages about its progress.

.HP
.B \-e/\-\-eval
.I html
.br
Specifies the HTML string to be evaluated.

.TP
.B \-l/\-\-long-ext
Generated Markdown files should have the long file
extension. When used, files will be created in the
.I output_dir
will have a .markdown file extension.

.HP
.B \-o/\-\-output
.I output_dir
.br
Specifies the output directory to which generated
Markdown files will be created.

.TP
.B \-p/\-\-print
Print out converted Markdown to the
.B stdout
stream.

.TP
.B \-v/\-\-version
Display the version number and exit.

.SH BUGS

Inline HTML is not yet supported in the resulting
Markdown.

.SH CAVEATS

It is always recommended to pair option
.B \-p
with
.B \-e
otherwise
.B md
does all of the work but you won't see the outcome.

.SH AUTHOR

Alasdair Mercer <
.I mercer.alasdair@gmail.com
> (
.I http://neocotic.com
)
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -42,8 +42,9 @@
, "scripts": {
"test": "tap ./test"
}
, "man": "./docs/md.1"
, "bin": {
"md": "./bin/md"
}
, "main": "./lib/md"
}
}

0 comments on commit 592d03f

Please sign in to comment.