github-markup 1.1.2 → 1.2.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.
- checksums.yaml +4 -4
- data/github-markup.gemspec +1 -1
- data/lib/github-markup.rb +1 -1
- data/lib/github/commands/rest2html +5 -2
- data/test/markups/README.rst +5 -0
- data/test/markups/README.rst.html +10 -3
- data/test/markups/README.rst.txt.html +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 053d23b209f38eae629505ae411d984965c75bbc
|
|
4
|
+
data.tar.gz: f7344b954171e3d94b57cd4fd7e656200e366f74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f34d2b79680a79e3277a8cacdfc58266094762204a6c65751769d028867241660e14af972d5aee1d4fd54749617718559df65c95eb82b89cfc0fc84f10e9498
|
|
7
|
+
data.tar.gz: 92becc57e7b5df01e5c209164d932bc6b1a67b3d1289d229e5e019e26cd50d627258e26c848ca06a21fd471d5c63b2afc12886ab4b22b8597e078c32bcd7190d
|
data/github-markup.gemspec
CHANGED
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
## the sub! line in the Rakefile
|
|
17
17
|
s.name = 'github-markup'
|
|
18
18
|
s.version = GitHub::Markup::VERSION
|
|
19
|
-
s.date = '2014-04-
|
|
19
|
+
s.date = '2014-04-17'
|
|
20
20
|
s.executables = ['github-markup']
|
|
21
21
|
|
|
22
22
|
## Make sure your summary is short. The description may be as long
|
data/lib/github-markup.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env python
|
|
2
2
|
"""
|
|
3
3
|
rest2html - A small wrapper file for parsing ReST files at GitHub.
|
|
4
4
|
|
|
@@ -32,6 +32,7 @@ import os
|
|
|
32
32
|
|
|
33
33
|
# This fixes docutils failing with unicode parameters to CSV-Table. The -S
|
|
34
34
|
# switch and the following 2 lines can be removed after upgrading to python 3.
|
|
35
|
+
reload(sys)
|
|
35
36
|
sys.setdefaultencoding('utf-8')
|
|
36
37
|
import site
|
|
37
38
|
|
|
@@ -51,7 +52,9 @@ SETTINGS = {
|
|
|
51
52
|
'file_insertion_enabled': False,
|
|
52
53
|
'raw_enabled': False,
|
|
53
54
|
'strip_comments': True,
|
|
54
|
-
'doctitle_xform':
|
|
55
|
+
'doctitle_xform': True,
|
|
56
|
+
'sectsubtitle_xform': True,
|
|
57
|
+
'initial_header_level': 2,
|
|
55
58
|
'report_level': 3,
|
|
56
59
|
'syntax_highlight' : 'none',
|
|
57
60
|
'math_output' : 'latex'
|
data/test/markups/README.rst
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
<h1>Header 1</h1>
|
|
1
|
+
<h1 class="title">Header 1</h1>
|
|
2
|
+
<h2 class="subtitle" id="subtitle">Subtitle</h2>
|
|
2
3
|
<p>Example text.</p>
|
|
3
|
-
<
|
|
4
|
+
<div class="contents topic" id="table-of-contents">
|
|
5
|
+
<p class="topic-title first">Table of Contents</p>
|
|
6
|
+
<ul class="simple">
|
|
7
|
+
<li><a class="reference internal" href="#header-2" id="id1">Header 2</a></li>
|
|
8
|
+
</ul>
|
|
9
|
+
</div>
|
|
10
|
+
<h2><a class="toc-backref" href="#id1">Header 2</a></h2>
|
|
4
11
|
<ol class="arabic simple">
|
|
5
12
|
<li>Blah blah <tt class="docutils literal">code</tt> blah</li>
|
|
6
13
|
<li>More <tt class="docutils literal">code</tt>, hooray</li>
|
|
@@ -8,7 +15,7 @@
|
|
|
8
15
|
</ol>
|
|
9
16
|
<p>The UTF-8 quote character in this table used to cause python to go boom. Now docutils just displays an error inline so the user can fix it. Upgrading to Python 3 will fix this.</p>
|
|
10
17
|
<div class="system-message">
|
|
11
|
-
<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils"><string></tt>, line
|
|
18
|
+
<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils"><string></tt>, line 22)</p>
|
|
12
19
|
<p>Error with CSV data in "csv-table" directive:
|
|
13
20
|
"quotechar" must be an 1-character string</p>
|
|
14
21
|
<pre>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github-markup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Wanstrath
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-04-
|
|
11
|
+
date: 2014-04-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: posix-spawn
|