ronn-ng 0.8.0 → 0.8.1.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +3 -0
- data/INSTALLING.md +1 -2
- data/README.md +7 -1
- data/lib/ronn/roff.rb +3 -3
- data/lib/ronn.rb +1 -1
- data/man/ronn-format.7 +3 -3
- data/man/ronn.1 +3 -3
- data/ronn-ng.gemspec +5 -1
- data/test/markdown_syntax.roff +6 -6
- data/test/ordered_list.html +30 -0
- data/test/ordered_list.roff +25 -0
- data/test/ordered_list.ronn +21 -0
- data/test/section_reference_links.roff +1 -1
- data/test/url_formatting.ronn +3 -0
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cae4ba81f57d12143471cdf54866a6a88c94425e418d021870609cb61ae8199a
|
4
|
+
data.tar.gz: 01e5f919b8daaa90541080439e711e4b915f419e0338c45b6eaa95fe3f80088b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f54961fb896a1fe5d62ae679fe2c16451cb022452fadde3605a32d94ed5a14ef09291ad73590dcb8e0f45cadaaff839e2722a25dcd73f527d20fdc21850d0e2
|
7
|
+
data.tar.gz: ba9ef921c56fb10fb9c02567c3b53eaed61f6f27de4b2fd669bb79b57da13ba98376a2f88b25bbca8ac5b3d5e70241246ea612f3fd32f80fc3e6ddc88df602f0
|
data/CHANGES
CHANGED
data/INSTALLING.md
CHANGED
@@ -10,7 +10,7 @@ only supported on macOS, with [Homebrew](http://brew.sh). To install with `brew`
|
|
10
10
|
|
11
11
|
```
|
12
12
|
brew tap apjanke/ronn-ng
|
13
|
-
brew install
|
13
|
+
brew install ronn-ng
|
14
14
|
```
|
15
15
|
|
16
16
|
### From RubyGems
|
@@ -97,4 +97,3 @@ curl -L http://github.com/rtomayko/ronn/downloads/0.6.6 | tar xvzf -
|
|
97
97
|
cd rtomayko-r*
|
98
98
|
ruby setup.rb
|
99
99
|
```
|
100
|
-
|
data/README.md
CHANGED
@@ -35,7 +35,13 @@ brew tap apjanke/ronn-ng
|
|
35
35
|
brew install ronn-ng
|
36
36
|
```
|
37
37
|
|
38
|
-
|
38
|
+
Install with `gem` anywhere that supports it:
|
39
|
+
|
40
|
+
```
|
41
|
+
gem install ronn-ng
|
42
|
+
```
|
43
|
+
|
44
|
+
See [INSTALLING.md](INSTALLING.md) for details on other systems and installation methods.
|
39
45
|
|
40
46
|
## Examples
|
41
47
|
|
data/lib/ronn/roff.rb
CHANGED
@@ -162,7 +162,7 @@ module Ronn
|
|
162
162
|
when 'li'
|
163
163
|
case node.parent.name
|
164
164
|
when 'ol'
|
165
|
-
macro 'IP', %W["#{node.
|
165
|
+
macro 'IP', %W["#{node.parent.children.index(node) + 1}." 4]
|
166
166
|
when 'ul'
|
167
167
|
macro 'IP', ['"\\[ci]"', '4']
|
168
168
|
else
|
@@ -277,13 +277,13 @@ module Ronn
|
|
277
277
|
inline_filter(node.children)
|
278
278
|
elsif node.has_attribute?('data-bare-link')
|
279
279
|
write '\fI'
|
280
|
-
|
280
|
+
write '\%' + escape(node.attributes['href'].content)
|
281
281
|
write '\fR'
|
282
282
|
else
|
283
283
|
inline_filter(node.children)
|
284
284
|
write ' '
|
285
285
|
write '\fI'
|
286
|
-
write escape(node.attributes['href'].content)
|
286
|
+
write '\%' + escape(node.attributes['href'].content)
|
287
287
|
write '\fR'
|
288
288
|
end
|
289
289
|
|
data/lib/ronn.rb
CHANGED
data/man/ronn-format.7
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
.\" generated with Ronn-NG/v0.8.
|
2
|
-
.\" http://github.com/apjanke/ronn-ng/tree/0.8.
|
3
|
-
.TH "RONN\-FORMAT" "7" "December 2018" "Ronn-NG 0.8.
|
1
|
+
.\" generated with Ronn-NG/v0.8.1
|
2
|
+
.\" http://github.com/apjanke/ronn-ng/tree/0.8.1.SNAPSHOT
|
3
|
+
.TH "RONN\-FORMAT" "7" "December 2018" "Ronn-NG 0.8.1.SNAPSHOT" "Ronn Manual"
|
4
4
|
.SH "NAME"
|
5
5
|
\fBronn\-format\fR \- manual authoring format based on Markdown
|
6
6
|
.SH "SYNOPSIS"
|
data/man/ronn.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
.\" generated with Ronn-NG/v0.8.
|
2
|
-
.\" http://github.com/apjanke/ronn-ng/tree/0.8.
|
3
|
-
.TH "RONN" "1" "December 2018" "Ronn-NG 0.8.
|
1
|
+
.\" generated with Ronn-NG/v0.8.1
|
2
|
+
.\" http://github.com/apjanke/ronn-ng/tree/0.8.1.SNAPSHOT
|
3
|
+
.TH "RONN" "1" "December 2018" "Ronn-NG 0.8.1.SNAPSHOT" "Ronn Manual"
|
4
4
|
.SH "NAME"
|
5
5
|
\fBronn\fR \- convert markdown files to manpages
|
6
6
|
.SH "SYNOPSIS"
|
data/ronn-ng.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'ronn-ng'
|
3
|
-
s.version = '0.8.
|
3
|
+
s.version = '0.8.1.beta.1'
|
4
4
|
s.date = '2019-02-16'
|
5
5
|
|
6
6
|
s.summary = 'Builds man pages from Markdown'
|
@@ -86,6 +86,9 @@ Gem::Specification.new do |s|
|
|
86
86
|
test/nested_list_with_code.html
|
87
87
|
test/nested_list_with_code.roff
|
88
88
|
test/nested_list_with_code.ronn
|
89
|
+
test/ordered_list.html
|
90
|
+
test/ordered_list.roff
|
91
|
+
test/ordered_list.ronn
|
89
92
|
test/page.with.periods.in.name.5.ronn
|
90
93
|
test/pre_block_with_quotes.roff
|
91
94
|
test/pre_block_with_quotes.ronn
|
@@ -100,6 +103,7 @@ Gem::Specification.new do |s|
|
|
100
103
|
test/titleless_document.ronn
|
101
104
|
test/underline_spacing_test.roff
|
102
105
|
test/underline_spacing_test.ronn
|
106
|
+
test/url_formatting.ronn
|
103
107
|
]
|
104
108
|
# = MANIFEST =
|
105
109
|
|
data/test/markdown_syntax.roff
CHANGED
@@ -37,7 +37,7 @@ Inline markup like _italics_, **bold**, and `code()`\.
|
|
37
37
|
.SS "Philosophy"
|
38
38
|
Markdown is intended to be as easy\-to\-read and easy\-to\-write as is feasible\.
|
39
39
|
.P
|
40
|
-
Readability, however, is emphasized above all else\. A Markdown\-formatted document should be publishable as\-is, as plain text, without looking like it\'s been marked up with tags or formatting instructions\. While Markdown\'s syntax has been influenced by several existing text\-to\-HTML filters \-\- including Setext \
|
40
|
+
Readability, however, is emphasized above all else\. A Markdown\-formatted document should be publishable as\-is, as plain text, without looking like it\'s been marked up with tags or formatting instructions\. While Markdown\'s syntax has been influenced by several existing text\-to\-HTML filters \-\- including Setext \fI\%http://docutils\.sourceforge\.net/mirror/setext\.html\fR, atx \fI\%http://www\.aaronsw\.com/2002/atx/\fR, Textile \fI\%http://textism\.com/tools/textile/\fR, reStructuredText \fI\%http://docutils\.sourceforge\.net/rst\.html\fR, Grutatext \fI\%http://www\.triptico\.com/software/grutatxt\.html\fR, and EtText \fI\%http://ettext\.taint\.org/doc/\fR \-\- the single biggest source of inspiration for Markdown\'s syntax is the format of plain text email\.
|
41
41
|
.P
|
42
42
|
To this end, Markdown\'s syntax is comprised entirely of punctuation characters, which punctuation characters have been carefully chosen so as to look like what they mean\. E\.g\., asterisks around a word actually look like *emphasis*\. Markdown lists look like, well, lists\. Even blockquotes look like quoted passages of text, assuming you\'ve ever used email\.
|
43
43
|
.SS "Inline HTML"
|
@@ -111,7 +111,7 @@ AT&T
|
|
111
111
|
.fi
|
112
112
|
.IP "" 0
|
113
113
|
.P
|
114
|
-
Similarly, because Markdown supports \
|
114
|
+
Similarly, because Markdown supports \fI\%#html\fR, if you use angle brackets as delimiters for HTML tags, Markdown will treat them as such\. But if you write:
|
115
115
|
.IP "" 4
|
116
116
|
.nf
|
117
117
|
4 < 5
|
@@ -134,9 +134,9 @@ The implication of the "one or more consecutive lines of text" rule is that Mark
|
|
134
134
|
.P
|
135
135
|
When you \fIdo\fR want to insert a \fB<br />\fR break tag using Markdown, you end a line with two or more spaces, then type return\.
|
136
136
|
.P
|
137
|
-
Yes, this takes a tad more effort to create a \fB<br />\fR, but a simplistic "every line break is a \fB<br />\fR" rule wouldn\'t work for Markdown\. Markdown\'s email\-style \
|
137
|
+
Yes, this takes a tad more effort to create a \fB<br />\fR, but a simplistic "every line break is a \fB<br />\fR" rule wouldn\'t work for Markdown\. Markdown\'s email\-style \fI\%#blockquote\fR and multi\-paragraph \fI\%#list\fR work best \-\- and look better \-\- when you format them with hard breaks\.
|
138
138
|
.SS "Headers"
|
139
|
-
Markdown supports two styles of headers, Setext \
|
139
|
+
Markdown supports two styles of headers, Setext \fI\%http://docutils\.sourceforge\.net/mirror/setext\.html\fR and atx \fI\%http://www\.aaronsw\.com/2002/atx/\fR\.
|
140
140
|
.P
|
141
141
|
Setext\-style headers are "underlined" using equal signs (for first\-level headers) and dashes (for second\-level headers)\. For example:
|
142
142
|
.IP "" 4
|
@@ -900,8 +900,8 @@ _ underscore
|
|
900
900
|
.SH "AUTHOR"
|
901
901
|
Markdown was created by John Gruber\.
|
902
902
|
.P
|
903
|
-
Manual page by Ryan Tomayko\. It\'s pretty much a direct copy of the Markdown Syntax Reference \
|
903
|
+
Manual page by Ryan Tomayko\. It\'s pretty much a direct copy of the Markdown Syntax Reference \fI\%http://daringfireball\.net/projects/markdown/syntax\fR, also by John Gruber\.
|
904
904
|
.SH "SEE ALSO"
|
905
905
|
ronn(5)
|
906
906
|
.br
|
907
|
-
\
|
907
|
+
\fI\%http://daringfireball\.net/projects/markdown/\fR
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<div class='mp'>
|
2
|
+
|
3
|
+
<h1 id="Ordered-Lists">Ordered Lists</h1>
|
4
|
+
<h2 id="Simple-ordered-lists">Simple ordered lists</h2>
|
5
|
+
|
6
|
+
<h3 id="One-item-list">One-item list</h3>
|
7
|
+
|
8
|
+
<ol>
|
9
|
+
<li>Hello, world!</li>
|
10
|
+
</ol>
|
11
|
+
|
12
|
+
|
13
|
+
<h3 id="Three-item-list">Three-item list</h3>
|
14
|
+
|
15
|
+
<ol>
|
16
|
+
<li>Hello, world!</li>
|
17
|
+
<li>Item 2</li>
|
18
|
+
<li>Item 3</li>
|
19
|
+
</ol>
|
20
|
+
|
21
|
+
|
22
|
+
<h3 id="Four-item-list-with-all-1s">Four-item list with all 1s</h3>
|
23
|
+
|
24
|
+
<ol>
|
25
|
+
<li>Item 1</li>
|
26
|
+
<li>Item 2</li>
|
27
|
+
<li>Item 3</li>
|
28
|
+
<li>Item 4</li>
|
29
|
+
</ol>
|
30
|
+
</div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.TH "ORDERED_LIST" "" "January 1979" "" ""
|
2
|
+
.SH "Simple ordered lists"
|
3
|
+
.SS "One\-item list"
|
4
|
+
.IP "1." 4
|
5
|
+
Hello, world!
|
6
|
+
.IP "" 0
|
7
|
+
.SS "Three\-item list"
|
8
|
+
.IP "1." 4
|
9
|
+
Hello, world!
|
10
|
+
.IP "2." 4
|
11
|
+
Item 2
|
12
|
+
.IP "3." 4
|
13
|
+
Item 3
|
14
|
+
.IP "" 0
|
15
|
+
.SS "Four\-item list with all 1s"
|
16
|
+
.IP "1." 4
|
17
|
+
Item 1
|
18
|
+
.IP "2." 4
|
19
|
+
Item 2
|
20
|
+
.IP "3." 4
|
21
|
+
Item 3
|
22
|
+
.IP "4." 4
|
23
|
+
Item 4
|
24
|
+
.IP "" 0
|
25
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
Ordered Lists
|
2
|
+
=============
|
3
|
+
|
4
|
+
## Simple ordered lists
|
5
|
+
|
6
|
+
### One-item list
|
7
|
+
|
8
|
+
1. Hello, world!
|
9
|
+
|
10
|
+
### Three-item list
|
11
|
+
|
12
|
+
1. Hello, world!
|
13
|
+
2. Item 2
|
14
|
+
3. Item 3
|
15
|
+
|
16
|
+
### Four-item list with all 1s
|
17
|
+
|
18
|
+
1. Item 1
|
19
|
+
1. Item 2
|
20
|
+
1. Item 3
|
21
|
+
1. Item 4
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ronn-ng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Janke
|
@@ -246,6 +246,9 @@ files:
|
|
246
246
|
- test/nested_list_with_code.html
|
247
247
|
- test/nested_list_with_code.roff
|
248
248
|
- test/nested_list_with_code.ronn
|
249
|
+
- test/ordered_list.html
|
250
|
+
- test/ordered_list.roff
|
251
|
+
- test/ordered_list.ronn
|
249
252
|
- test/page.with.periods.in.name.5.ronn
|
250
253
|
- test/pre_block_with_quotes.roff
|
251
254
|
- test/pre_block_with_quotes.ronn
|
@@ -260,6 +263,7 @@ files:
|
|
260
263
|
- test/titleless_document.ronn
|
261
264
|
- test/underline_spacing_test.roff
|
262
265
|
- test/underline_spacing_test.ronn
|
266
|
+
- test/url_formatting.ronn
|
263
267
|
homepage: https://github.com/apjanke/ronn-ng
|
264
268
|
licenses:
|
265
269
|
- MIT
|
@@ -282,9 +286,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
282
286
|
version: '0'
|
283
287
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
288
|
requirements:
|
285
|
-
- - "
|
289
|
+
- - ">"
|
286
290
|
- !ruby/object:Gem::Version
|
287
|
-
version:
|
291
|
+
version: 1.3.1
|
288
292
|
requirements: []
|
289
293
|
rubygems_version: 3.0.2
|
290
294
|
signing_key:
|