md2man 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY.markdown +17 -5
- data/LICENSE +1 -1
- data/README.markdown +1 -1
- data/bin/md2man +2 -2
- data/lib/md2man/engine.rb +1 -1
- data/lib/md2man/version.rb +1 -1
- data/man/man1/md2man.1 +5 -5
- data/test/md2man/roff_test.rb +6 -6
- metadata +2 -8
data/HISTORY.markdown
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
|
+
## Version 1.3.0 (2012-09-27)
|
|
2
|
+
|
|
3
|
+
Minor:
|
|
4
|
+
|
|
5
|
+
* Intra-word emphasis is now enabled *by default* in `Md2Man::ENGINE`.
|
|
6
|
+
To not be affected by this change, you may still construct your own
|
|
7
|
+
Redcarpet::Markdown engine with your own set of processing options.
|
|
8
|
+
|
|
1
9
|
## Version 1.2.1 (2012-07-05)
|
|
2
10
|
|
|
3
|
-
|
|
4
|
-
|
|
11
|
+
Patch:
|
|
12
|
+
|
|
13
|
+
* GH-4: ruby 1.8.7 lacks negative lookbehind regexps.
|
|
14
|
+
Thanks to Postmodern for reporting this issue.
|
|
15
|
+
|
|
16
|
+
Other:
|
|
5
17
|
|
|
6
|
-
* GH-1: use `~>` for gem version constraints.
|
|
7
|
-
|
|
8
|
-
|
|
18
|
+
* GH-1: use `~>` for gem version constraints.
|
|
19
|
+
See http://docs.rubygems.org/read/chapter/16
|
|
20
|
+
Thanks to Postmodern for this contribution.
|
|
9
21
|
|
|
10
22
|
## Version 1.2.0 (2012-02-06)
|
|
11
23
|
|
data/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(the ISC license)
|
|
2
2
|
|
|
3
3
|
Copyright 2011 Suraj N. Kurapati <sunaku@gmail.com>
|
|
4
|
-
Thanks to 2011 Vicent Marti <
|
|
4
|
+
Thanks to 2011 Vicent Marti <vicent@github.com>
|
|
5
5
|
Thanks to 2012 Postmodern <postmodern.mod3@gmail.com>
|
|
6
6
|
|
|
7
7
|
Permission to use, copy, modify, and/or distribute this software for any
|
data/README.markdown
CHANGED
|
@@ -112,6 +112,6 @@ Released under the ISC license. See the LICENSE file for details.
|
|
|
112
112
|
|
|
113
113
|
[Roff]: http://troff.org
|
|
114
114
|
[Markdown]: http://daringfireball.net/projects/markdown/
|
|
115
|
-
[Redcarpet]: https://github.com/
|
|
115
|
+
[Redcarpet]: https://github.com/vmg/redcarpet
|
|
116
116
|
[example]: https://raw.github.com/sunaku/md2man/master/EXAMPLE.markdown
|
|
117
117
|
[tables]: http://michelf.com/projects/php-markdown/extra/#table
|
data/bin/md2man
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
=begin =======================================================================
|
|
3
3
|
|
|
4
|
-
# MD2MAN 1 2012-
|
|
4
|
+
# MD2MAN 1 2012-09-27 1.3.0
|
|
5
5
|
|
|
6
6
|
## NAME
|
|
7
7
|
|
|
@@ -56,7 +56,7 @@ The following [Redcarpet] extensions are enabled while processing markdown(7):
|
|
|
56
56
|
markdown(7), roff(7)
|
|
57
57
|
|
|
58
58
|
[md2man]: https://github.com/sunaku/md2man
|
|
59
|
-
[Redcarpet]: https://github.com/
|
|
59
|
+
[Redcarpet]: https://github.com/vmg/redcarpet
|
|
60
60
|
|
|
61
61
|
=end =========================================================================
|
|
62
62
|
|
data/lib/md2man/engine.rb
CHANGED
data/lib/md2man/version.rb
CHANGED
data/man/man1/md2man.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH MD2MAN 1 2012\-
|
|
1
|
+
.TH MD2MAN 1 2012\-09\-27 1.3.0
|
|
2
2
|
.SH NAME
|
|
3
3
|
.PP
|
|
4
4
|
md2man \- convert
|
|
@@ -19,7 +19,7 @@ input from the given \fIFILE\fP into
|
|
|
19
19
|
.BR roff (7)
|
|
20
20
|
using
|
|
21
21
|
Redcarpet
|
|
22
|
-
.UR https://github.com/
|
|
22
|
+
.UR https://github.com/vmg/redcarpet
|
|
23
23
|
.UE
|
|
24
24
|
and then prints the result to the standard output stream. If
|
|
25
25
|
\fIFILE\fP is not given, then the standard input stream is read in its place.
|
|
@@ -57,7 +57,7 @@ output to define the UNIX manual page's header and footer.
|
|
|
57
57
|
.SS Markdown extensions
|
|
58
58
|
.PP
|
|
59
59
|
The following Redcarpet
|
|
60
|
-
.UR https://github.com/
|
|
60
|
+
.UR https://github.com/vmg/redcarpet
|
|
61
61
|
.UE
|
|
62
62
|
extensions are enabled while processing
|
|
63
63
|
.BR markdown (7):
|
|
@@ -71,9 +71,9 @@ superscript
|
|
|
71
71
|
.IP \(bu 2
|
|
72
72
|
strikethrough
|
|
73
73
|
.IP \(bu 2
|
|
74
|
-
|
|
74
|
+
no\fIintra\fPemphasis
|
|
75
75
|
.IP \(bu 2
|
|
76
|
-
|
|
76
|
+
fenced\fIcode\fPblocks
|
|
77
77
|
.RE
|
|
78
78
|
.SH OPTIONS
|
|
79
79
|
.TP
|
data/test/md2man/roff_test.rb
CHANGED
|
@@ -155,14 +155,14 @@ describe Md2Man::Roff do
|
|
|
155
155
|
it 'renders emphasis' do
|
|
156
156
|
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
|
157
157
|
|just *some paragraph*
|
|
158
|
-
|
|
|
158
|
+
| sp*ann*ing
|
|
159
159
|
| multiple
|
|
160
160
|
| *lines*
|
|
161
161
|
|but within 4-*space* indent
|
|
162
162
|
INPUT
|
|
163
163
|
|.PP
|
|
164
164
|
|just \\fIsome paragraph\\fP
|
|
165
|
-
|
|
|
165
|
+
| sp\\fIann\\fPing
|
|
166
166
|
| multiple
|
|
167
167
|
| \\fIlines\\fP
|
|
168
168
|
|but within 4\\-\\fIspace\\fP indent
|
|
@@ -172,14 +172,14 @@ describe Md2Man::Roff do
|
|
|
172
172
|
it 'renders double emphasis' do
|
|
173
173
|
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
|
174
174
|
|just **some paragraph**
|
|
175
|
-
|
|
|
175
|
+
| sp**ann**ing
|
|
176
176
|
| multiple
|
|
177
177
|
| **lines**
|
|
178
178
|
|but within 4-**space** indent
|
|
179
179
|
INPUT
|
|
180
180
|
|.PP
|
|
181
181
|
|just \\fBsome paragraph\\fP
|
|
182
|
-
|
|
|
182
|
+
| sp\\fBann\\fPing
|
|
183
183
|
| multiple
|
|
184
184
|
| \\fBlines\\fP
|
|
185
185
|
|but within 4\\-\\fBspace\\fP indent
|
|
@@ -189,14 +189,14 @@ describe Md2Man::Roff do
|
|
|
189
189
|
it 'renders triple emphasis' do
|
|
190
190
|
@markdown.render(heredoc(<<-INPUT)).must_equal(heredoc(<<-OUTPUT))
|
|
191
191
|
|just ***some paragraph***
|
|
192
|
-
|
|
|
192
|
+
| sp***ann***ing
|
|
193
193
|
| multiple
|
|
194
194
|
| ***lines***
|
|
195
195
|
|but within 4-***space*** indent
|
|
196
196
|
INPUT
|
|
197
197
|
|.PP
|
|
198
198
|
|just \\s+2\\fBsome paragraph\\fP\\s-2
|
|
199
|
-
|
|
|
199
|
+
| sp\\s+2\\fBann\\fP\\s-2ing
|
|
200
200
|
| multiple
|
|
201
201
|
| \\s+2\\fBlines\\fP\\s-2
|
|
202
202
|
|but within 4\\-\\s+2\\fBspace\\fP\\s-2 indent
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: md2man
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-09-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: binman
|
|
@@ -118,18 +118,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
118
118
|
- - ! '>='
|
|
119
119
|
- !ruby/object:Gem::Version
|
|
120
120
|
version: '0'
|
|
121
|
-
segments:
|
|
122
|
-
- 0
|
|
123
|
-
hash: -958714708805261954
|
|
124
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
122
|
none: false
|
|
126
123
|
requirements:
|
|
127
124
|
- - ! '>='
|
|
128
125
|
- !ruby/object:Gem::Version
|
|
129
126
|
version: '0'
|
|
130
|
-
segments:
|
|
131
|
-
- 0
|
|
132
|
-
hash: -958714708805261954
|
|
133
127
|
requirements: []
|
|
134
128
|
rubyforge_project:
|
|
135
129
|
rubygems_version: 1.8.23
|