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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 971f5ca6d79f95552b2e202f6beb56bd4460e9f9e4423c105d94559002676648
4
- data.tar.gz: '06085a5ba67fb685730e8071cc70b609b0bf8694e64a3c8f295fec2f913c630a'
3
+ metadata.gz: cae4ba81f57d12143471cdf54866a6a88c94425e418d021870609cb61ae8199a
4
+ data.tar.gz: 01e5f919b8daaa90541080439e711e4b915f419e0338c45b6eaa95fe3f80088b
5
5
  SHA512:
6
- metadata.gz: 5f1dc02761a59b184bb9f531ae259e57aa86f08d223c90de1b83c7f6474390f0970b1aa04dda3102dc9b8c3d28266c5085927aa16b927b187966196f85c425dd
7
- data.tar.gz: 1ecd402b1457b4060e61af3c9bc95318ea1e9c0782dbf6620347760fe0906fd08e290149d31a945d38b53d3af6832fddb943260f9dc64d369e89c37b7bad35bd
6
+ metadata.gz: 1f54961fb896a1fe5d62ae679fe2c16451cb022452fadde3605a32d94ed5a14ef09291ad73590dcb8e0f45cadaaff839e2722a25dcd73f527d20fdc21850d0e2
7
+ data.tar.gz: ba9ef921c56fb10fb9c02567c3b53eaed61f6f27de4b2fd669bb79b57da13ba98376a2f88b25bbca8ac5b3d5e70241246ea612f3fd32f80fc3e6ddc88df602f0
data/CHANGES CHANGED
@@ -1,6 +1,9 @@
1
1
  Ronn-NG CHANGES
2
2
  ===============
3
3
 
4
+ Version 0.8.1 (???)
5
+ -------------------
6
+
4
7
  Version 0.8.0 (2018 Dec 25)
5
8
  ---------------------------
6
9
 
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 --HEAD ronn-ng
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
- See [INSTALLING.md][] for details on other systems and installation methods.
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.position + 1}." 4]
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
- inline_filter(node.children)
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
@@ -47,6 +47,6 @@ module Ronn
47
47
  # value generated by: rake rev
48
48
  # or edit manually; I'm not sure of how rake rev interacts with git
49
49
  # tags -apjanke
50
- REV = '0.8.0'.freeze
50
+ REV = '0.8.1.SNAPSHOT'.freeze
51
51
  VERSION = version
52
52
  end
data/man/ronn-format.7 CHANGED
@@ -1,6 +1,6 @@
1
- .\" generated with Ronn-NG/v0.8.0
2
- .\" http://github.com/apjanke/ronn-ng/tree/0.8.0
3
- .TH "RONN\-FORMAT" "7" "December 2018" "Ronn-NG 0.8.0" "Ronn Manual"
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.0
2
- .\" http://github.com/apjanke/ronn-ng/tree/0.8.0
3
- .TH "RONN" "1" "December 2018" "Ronn-NG 0.8.0" "Ronn Manual"
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.0'
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
 
@@ -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 \fIhttp://docutils\.sourceforge\.net/mirror/setext\.html\fR, atx \fIhttp://www\.aaronsw\.com/2002/atx/\fR, Textile \fIhttp://textism\.com/tools/textile/\fR, reStructuredText \fIhttp://docutils\.sourceforge\.net/rst\.html\fR, Grutatext \fIhttp://www\.triptico\.com/software/grutatxt\.html\fR, and EtText \fIhttp://ettext\.taint\.org/doc/\fR \-\- the single biggest source of inspiration for Markdown\'s syntax is the format of plain text email\.
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 \fIinline HTML\fR, if you use angle brackets as delimiters for HTML tags, Markdown will treat them as such\. But if you write:
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 \fIblockquoting\fR and multi\-paragraph \fIlist items\fR work best \-\- and look better \-\- when you format them with hard breaks\.
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 \fIhttp://docutils\.sourceforge\.net/mirror/setext\.html\fR and atx \fIhttp://www\.aaronsw\.com/2002/atx/\fR\.
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 \fIhttp://daringfireball\.net/projects/markdown/syntax\fR, also by John Gruber\.
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
- \fIhttp://daringfireball\.net/projects/markdown/\fR
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
@@ -4,4 +4,4 @@
4
4
  .SH "SECTION 1"
5
5
  See the following section\.
6
6
  .SH "SECTION 2"
7
- See \fISECTION 1\fR or \fIto put it another way\fR or even \fIlike this\fR
7
+ See \fI\%#SECTION\-1\fR or \fI\%#SECTION\-1\fR or even \fI\%#SECTION\-1\fR
@@ -0,0 +1,3 @@
1
+ # URL formatting
2
+
3
+ Documentation of the Emily programming language can be found at <http://emilylang.org> or <http://bitbucket.org/runhello/emily>.
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.0
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: '0'
291
+ version: 1.3.1
288
292
  requirements: []
289
293
  rubygems_version: 3.0.2
290
294
  signing_key: