-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
md.1
102 lines (83 loc) · 1.37 KB
/
md.1
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
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
)