github-markup 3.0.0 → 3.0.5
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/.dockerignore +1 -0
- data/.gitignore +1 -1
- data/.travis.yml +4 -7
- data/Dockerfile +39 -0
- data/Gemfile +1 -1
- data/HISTORY.md +22 -0
- data/README.md +9 -2
- data/github-markup.gemspec +7 -4
- data/lib/github-markup.rb +1 -1
- data/lib/github/commands/pod62html +5 -0
- data/lib/github/markup.rb +3 -2
- data/lib/github/markup/implementation.rb +5 -1
- data/lib/github/markup/markdown.rb +3 -2
- data/lib/github/markups.rb +8 -3
- data/test/markup_test.rb +17 -6
- data/test/markups/README.asciidoc +3 -1
- data/test/markups/README.hidetitle.asciidoc +4 -0
- data/test/markups/README.hidetitle.asciidoc.html +3 -0
- data/test/markups/README.toc.asciidoc +15 -0
- data/test/markups/README.toc.asciidoc.html +46 -0
- metadata +22 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed10cd1dbc1a7163fdf02e5cb7ee8ca2a7b2fca74f740b862c051aee1bc1547b
|
4
|
+
data.tar.gz: f0bda9286bc09c5409e805d20ac67c5f0d5ea25e41b97e3512526597c439a573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2b9ce502ae753a9cdc2559803d4e3dc24a578f09de84ff4899a886e3252a4ec89a9fb045f0c69ca2ba440638e552487c7f51ddeb56c32f6a9841fdd52f777aa
|
7
|
+
data.tar.gz: 2031883234215ba63e23c4f7be7aef7daf8b270ce4ce82a5723caca12a32182beea84046db399ee551e34df72a1bbdd3340407f3c54e1ee13300e3111bf17578
|
data/.dockerignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Dockerfile
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -6,16 +6,16 @@ rvm:
|
|
6
6
|
- 2.2.7
|
7
7
|
- 2.3.4
|
8
8
|
- 2.4.1
|
9
|
-
- jruby-9.1.9.0
|
10
|
-
jdk:
|
11
|
-
- oraclejdk8
|
12
9
|
notifications:
|
13
10
|
email: false
|
14
11
|
git:
|
15
12
|
depth: 10
|
16
13
|
before_install:
|
14
|
+
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 379CE192D401AB61
|
15
|
+
- echo "deb https://dl.bintray.com/nxadm/rakudo-pkg-debs `lsb_release -cs` main" | sudo tee -a /etc/apt/sources.list.d/rakudo-pkg.list
|
17
16
|
- sudo apt-get update -qq
|
18
|
-
- sudo apt-get install perl
|
17
|
+
- sudo apt-get install perl rakudo-pkg
|
18
|
+
- export PATH=$PATH:/.perl6/bin:/opt/rakudo-pkg/bin
|
19
19
|
- curl -L http://cpanmin.us | perl - --sudo App::cpanminus
|
20
20
|
- sudo cpanm --installdeps --notest Pod::Simple
|
21
21
|
- sudo pip install docutils
|
@@ -25,6 +25,3 @@ cache:
|
|
25
25
|
env:
|
26
26
|
global:
|
27
27
|
- "JRUBY_OPTS=-Xcext.enabled=true"
|
28
|
-
matrix:
|
29
|
-
allow_failures:
|
30
|
-
- rvm: jruby-9.1.9.0
|
data/Dockerfile
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
FROM ubuntu:trusty
|
2
|
+
|
3
|
+
RUN apt-get update -qq
|
4
|
+
RUN apt-get install -y apt-transport-https
|
5
|
+
|
6
|
+
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 379CE192D401AB61
|
7
|
+
RUN echo "deb https://dl.bintray.com/nxadm/rakudo-pkg-debs `lsb_release -cs` main" | tee -a /etc/apt/sources.list.d/rakudo-pkg.list
|
8
|
+
RUN apt-get update -qq
|
9
|
+
|
10
|
+
RUN apt-get install -y \
|
11
|
+
perl rakudo-pkg curl git build-essential python python-pip \
|
12
|
+
libssl-dev libreadline-dev zlib1g-dev \
|
13
|
+
libicu-dev cmake pkg-config
|
14
|
+
|
15
|
+
ENV PATH $PATH:/opt/rakudo-pkg/bin
|
16
|
+
RUN install-zef-as-user && zef install Pod::To::HTML
|
17
|
+
|
18
|
+
RUN curl -L http://cpanmin.us | perl - App::cpanminus
|
19
|
+
RUN cpanm --installdeps --notest Pod::Simple
|
20
|
+
|
21
|
+
RUN pip install docutils
|
22
|
+
|
23
|
+
ENV PATH $PATH:/root/.rbenv/bin:/root/.rbenv/shims
|
24
|
+
RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash
|
25
|
+
RUN rbenv install 2.4.1
|
26
|
+
RUN rbenv global 2.4.1
|
27
|
+
RUN rbenv rehash
|
28
|
+
|
29
|
+
RUN gem install bundler
|
30
|
+
|
31
|
+
WORKDIR /data/github-markup
|
32
|
+
COPY github-markup.gemspec .
|
33
|
+
COPY Gemfile .
|
34
|
+
COPY Gemfile.lock .
|
35
|
+
COPY lib/github-markup.rb lib/github-markup.rb
|
36
|
+
RUN bundle
|
37
|
+
|
38
|
+
ENV LC_ALL en_US.UTF-8
|
39
|
+
RUN locale-gen en_US.UTF-8
|
data/Gemfile
CHANGED
data/HISTORY.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
## 3.0.5 - 2020-11-12
|
2
|
+
|
3
|
+
* Add commonmarker_exts to commonmarker options [#1268](https://github.com/github/markup/pull/1268)
|
4
|
+
* Check whether filename is set when rendering Asciidoc. [#1290](https://github.com/github/markup/pull/1290)
|
5
|
+
|
6
|
+
## 3.0.4 - 2019-04-03
|
7
|
+
|
8
|
+
* Expose options in #render_s [#1249](https://github.com/github/markup/pull/1249)
|
9
|
+
* Upgrade to Asciidoctor 2.0.x [#1264](https://github.com/github/markup/pull/1264)
|
10
|
+
|
11
|
+
## 3.0.3 - 2018-12-17
|
12
|
+
|
13
|
+
* Temporarily remove support for POD6 [#1248](https://github.com/github/markup/pull/1248)
|
14
|
+
|
15
|
+
## 3.0.2 - 2018-12-12
|
16
|
+
|
17
|
+
* Add support for POD6 [#1173](https://github.com/github/markup/pull/1173)
|
18
|
+
|
19
|
+
## 3.0.1 - 2018-10-19
|
20
|
+
|
21
|
+
* Remove linguist-detected RMarkdown files from the Markdown renderer [#1237](https://github.com/github/markup/pull/1237)
|
22
|
+
|
1
23
|
## 3.0.0 - 2018-10-18
|
2
24
|
|
3
25
|
* Allow passing options through to CommonMarker [#1236](https://github.com/github/markup/pull/1236)
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ This library is the **first step** of a journey that every markup file in a repo
|
|
6
6
|
1. `github-markup` selects an _underlying library_ to convert the raw markup to HTML. See the list of [supported markup formats](#markups) below.
|
7
7
|
1. The HTML is sanitized, aggressively removing things that could harm you and your kin—such as `script` tags, inline-styles, and `class` or `id` attributes.
|
8
8
|
1. Syntax highlighting is performed on code blocks. See [github/linguist](https://github.com/github/linguist#syntax-highlighting) for more information about syntax highlighting.
|
9
|
-
1. The HTML is passed through other filters
|
9
|
+
1. The HTML is passed through other filters that add special sauce, such as emoji, task lists, named anchors, CDN caching for images, and autolinking.
|
10
10
|
1. The resulting HTML is rendered on GitHub.com.
|
11
11
|
|
12
12
|
Please note that **only the first step** is covered by this gem — the rest happens on GitHub.com. In particular, `markup` itself does no sanitization of the resulting HTML, as it expects that to be covered by whatever pipeline is consuming the HTML.
|
@@ -30,7 +30,6 @@ you wish to run the library. You can also run `script/bootstrap` to fetch them a
|
|
30
30
|
* [.pod](http://search.cpan.org/dist/perl/pod/perlpod.pod) -- `Pod::Simple::XHTML`
|
31
31
|
comes with Perl >= 5.10. Lower versions should install Pod::Simple from CPAN.
|
32
32
|
|
33
|
-
|
34
33
|
Installation
|
35
34
|
-----------
|
36
35
|
|
@@ -38,6 +37,14 @@ Installation
|
|
38
37
|
gem install github-markup
|
39
38
|
```
|
40
39
|
|
40
|
+
or
|
41
|
+
|
42
|
+
```
|
43
|
+
bundle install
|
44
|
+
```
|
45
|
+
|
46
|
+
from this directory.
|
47
|
+
|
41
48
|
Usage
|
42
49
|
-----
|
43
50
|
|
data/github-markup.gemspec
CHANGED
@@ -4,14 +4,17 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.name = "github-markup"
|
5
5
|
s.version = GitHub::Markup::VERSION
|
6
6
|
s.summary = "The code GitHub uses to render README.markup"
|
7
|
-
s.description =
|
8
|
-
|
7
|
+
s.description = <<~DESC
|
8
|
+
This gem is used by GitHub to render any fancy markup such as Markdown,
|
9
|
+
Textile, Org-Mode, etc. Fork it and add your own!
|
10
|
+
DESC
|
9
11
|
s.authors = ["Chris Wanstrath"]
|
10
12
|
s.email = "chris@ozmm.org"
|
11
13
|
s.homepage = "https://github.com/github/markup"
|
12
14
|
s.license = "MIT"
|
13
15
|
|
14
16
|
s.files = `git ls-files`.split($\)
|
17
|
+
s.files += Dir['vendor/**/*']
|
15
18
|
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
16
19
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
17
20
|
s.require_paths = %w[lib]
|
@@ -20,8 +23,8 @@ Gem::Specification.new do |s|
|
|
20
23
|
s.add_development_dependency 'activesupport', '~> 4.0'
|
21
24
|
s.add_development_dependency 'minitest', '~> 5.4', '>= 5.4.3'
|
22
25
|
s.add_development_dependency 'html-pipeline', '~> 1.0'
|
23
|
-
s.add_development_dependency 'sanitize', '
|
26
|
+
s.add_development_dependency 'sanitize', '>= 4.6.3'
|
24
27
|
s.add_development_dependency 'nokogiri', '~> 1.8.1'
|
25
28
|
s.add_development_dependency 'nokogiri-diff', '~> 0.2.0'
|
26
|
-
s.add_development_dependency "github-linguist", "
|
29
|
+
s.add_development_dependency "github-linguist", ">= 7.1.3"
|
27
30
|
end
|
data/lib/github-markup.rb
CHANGED
data/lib/github/markup.rb
CHANGED
@@ -19,6 +19,7 @@ module GitHub
|
|
19
19
|
MARKUP_RDOC = :rdoc
|
20
20
|
MARKUP_RST = :rst
|
21
21
|
MARKUP_TEXTILE = :textile
|
22
|
+
MARKUP_POD6 = :pod6
|
22
23
|
end
|
23
24
|
|
24
25
|
module Markup
|
@@ -46,11 +47,11 @@ module GitHub
|
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
49
|
-
def render_s(symbol, content)
|
50
|
+
def render_s(symbol, content, options: {})
|
50
51
|
raise ArgumentError, 'Can not render a nil.' if content.nil?
|
51
52
|
|
52
53
|
if markups.key?(symbol)
|
53
|
-
markups[symbol].render(nil, content)
|
54
|
+
markups[symbol].render(nil, content, options: options)
|
54
55
|
else
|
55
56
|
content
|
56
57
|
end
|
@@ -8,7 +8,11 @@ module GitHub
|
|
8
8
|
@regexp = regexp
|
9
9
|
|
10
10
|
if defined?(::Linguist)
|
11
|
-
@languages = languages.map
|
11
|
+
@languages = languages.map do |l|
|
12
|
+
lang = Linguist::Language[l]
|
13
|
+
raise "no match for language #{l.inspect}" if lang.nil?
|
14
|
+
lang
|
15
|
+
end
|
12
16
|
end
|
13
17
|
end
|
14
18
|
|
@@ -6,7 +6,8 @@ module GitHub
|
|
6
6
|
MARKDOWN_GEMS = {
|
7
7
|
"commonmarker" => proc { |content, options: {}|
|
8
8
|
commonmarker_opts = [:GITHUB_PRE_LANG].concat(options.fetch(:commonmarker_opts, []))
|
9
|
-
|
9
|
+
commonmarker_exts = options.fetch(:commonmarker_exts, [:tagfilter, :autolink, :table, :strikethrough])
|
10
|
+
CommonMarker.render_html(content, commonmarker_opts, commonmarker_exts)
|
10
11
|
},
|
11
12
|
"github/markdown" => proc { |content, options: {}|
|
12
13
|
GitHub::Markdown.render(content)
|
@@ -31,7 +32,7 @@ module GitHub
|
|
31
32
|
def initialize
|
32
33
|
super(
|
33
34
|
/md|mkdn?|mdwn|mdown|markdown|litcoffee/i,
|
34
|
-
["Markdown", "
|
35
|
+
["Markdown", "Literate CoffeeScript"])
|
35
36
|
end
|
36
37
|
|
37
38
|
def load
|
data/lib/github/markups.rb
CHANGED
@@ -32,13 +32,17 @@ markup(::GitHub::Markups::MARKUP_ASCIIDOC, :asciidoctor, /adoc|asc(iidoc)?/, ["A
|
|
32
32
|
'showtitle' => '@',
|
33
33
|
'idprefix' => '',
|
34
34
|
'idseparator' => '-',
|
35
|
-
'
|
36
|
-
'docfilesuffix' => extname,
|
37
|
-
'outfilesuffix' => extname,
|
35
|
+
'sectanchors' => nil,
|
38
36
|
'env' => 'github',
|
39
37
|
'env-github' => '',
|
40
38
|
'source-highlighter' => 'html-pipeline'
|
41
39
|
}
|
40
|
+
if filename
|
41
|
+
attributes['docname'] = File.basename(filename, (extname = File.extname(filename)))
|
42
|
+
attributes['docfilesuffix'] = attributes['outfilesuffix'] = extname
|
43
|
+
else
|
44
|
+
attributes['outfilesuffix'] = '.adoc'
|
45
|
+
end
|
42
46
|
Asciidoctor::Compliance.unique_id_start_index = 1
|
43
47
|
Asciidoctor.convert(content, :safe => :secure, :attributes => attributes)
|
44
48
|
end
|
@@ -51,4 +55,5 @@ command(
|
|
51
55
|
"restructuredtext"
|
52
56
|
)
|
53
57
|
|
58
|
+
command(::GitHub::Markups::MARKUP_POD6, :pod62html, /pod6/, ["Pod 6"], "pod6")
|
54
59
|
command(::GitHub::Markups::MARKUP_POD, :pod2html, /pod/, ["Pod"], "pod")
|
data/test/markup_test.rb
CHANGED
@@ -52,7 +52,6 @@ class MarkupTest < Minitest::Test
|
|
52
52
|
|
53
53
|
define_method "test_#{markup}" do
|
54
54
|
skip "Skipping MediaWiki test because wikicloth is currently not compatible with JRuby." if markup == "mediawiki" && RUBY_PLATFORM == "java"
|
55
|
-
|
56
55
|
source = File.read(readme)
|
57
56
|
expected_file = "#{readme}.html"
|
58
57
|
expected = File.read(expected_file).rstrip
|
@@ -67,14 +66,13 @@ class MarkupTest < Minitest::Test
|
|
67
66
|
f.close_write
|
68
67
|
f.read
|
69
68
|
end
|
70
|
-
|
71
69
|
assert_html_equal expected, actual, <<message
|
72
70
|
#{File.basename expected_file}'s contents are not html equal to output:
|
73
71
|
#{diff}
|
74
72
|
message
|
75
73
|
end
|
76
74
|
end
|
77
|
-
|
75
|
+
|
78
76
|
def test_knows_what_it_can_and_cannot_render
|
79
77
|
assert_equal false, GitHub::Markup.can_render?('README.html', '<h1>Title</h1>')
|
80
78
|
assert_equal true, GitHub::Markup.can_render?('README.markdown', '=== Title')
|
@@ -91,11 +89,15 @@ message
|
|
91
89
|
assert_equal "wikicloth", GitHub::Markup.renderer('README.wiki', '<h1>Title</h1>').name
|
92
90
|
assert_equal "asciidoctor", GitHub::Markup.renderer('README.adoc', '== Title').name
|
93
91
|
assert_equal "restructuredtext", GitHub::Markup.renderer('README.rst', 'Title').name
|
94
|
-
assert_equal "pod", GitHub::Markup.renderer('README.pod', '=
|
92
|
+
assert_equal "pod", GitHub::Markup.renderer('README.pod', '=head1').name
|
93
|
+
assert_equal "pod6", GitHub::Markup.renderer('README.pod6', '=begin pod').name
|
95
94
|
end
|
96
|
-
|
95
|
+
|
97
96
|
def test_rendering_by_symbol
|
98
|
-
|
97
|
+
markup = '`test`'
|
98
|
+
result = /<p><code>test<\/code><\/p>/
|
99
|
+
assert_match result, GitHub::Markup.render_s(GitHub::Markups::MARKUP_MARKDOWN, markup).strip
|
100
|
+
assert_match result, GitHub::Markup.render_s(GitHub::Markups::MARKUP_ASCIIDOC, markup).split.join
|
99
101
|
end
|
100
102
|
|
101
103
|
def test_raises_error_if_command_exits_non_zero
|
@@ -118,5 +120,14 @@ message
|
|
118
120
|
def test_commonmarker_options
|
119
121
|
assert_equal "<p>hello <!-- raw HTML omitted --> world</p>\n", GitHub::Markup.render("test.md", "hello <bad> world")
|
120
122
|
assert_equal "<p>hello <bad> world</p>\n", GitHub::Markup.render("test.md", "hello <bad> world", options: {commonmarker_opts: [:UNSAFE]})
|
123
|
+
|
124
|
+
assert_equal "<p>hello <!-- raw HTML omitted --> world</p>\n", GitHub::Markup.render_s(GitHub::Markups::MARKUP_MARKDOWN, "hello <bad> world")
|
125
|
+
assert_equal "<p>hello <bad> world</p>\n", GitHub::Markup.render_s(GitHub::Markups::MARKUP_MARKDOWN, "hello <bad> world", options: {commonmarker_opts: [:UNSAFE]})
|
126
|
+
|
127
|
+
assert_equal "<style>.red{color: red;}</style>\n", GitHub::Markup.render("test.md", "<style>.red{color: red;}</style>", options: {commonmarker_opts: [:UNSAFE]})
|
128
|
+
assert_equal "<style>.red{color: red;}</style>\n", GitHub::Markup.render("test.md", "<style>.red{color: red;}</style>", options: {commonmarker_opts: [:UNSAFE], commonmarker_exts: [:autolink, :table, :strikethrough]})
|
129
|
+
|
130
|
+
assert_equal "<style>.red{color: red;}</style>\n", GitHub::Markup.render_s(GitHub::Markups::MARKUP_MARKDOWN, "<style>.red{color: red;}</style>", options: {commonmarker_opts: [:UNSAFE]})
|
131
|
+
assert_equal "<style>.red{color: red;}</style>\n", GitHub::Markup.render_s(GitHub::Markups::MARKUP_MARKDOWN, "<style>.red{color: red;}</style>", options: {commonmarker_opts: [:UNSAFE], commonmarker_exts: [:autolink, :table, :strikethrough]})
|
121
132
|
end
|
122
133
|
end
|
@@ -1,4 +1,6 @@
|
|
1
1
|
= Document Title
|
2
|
+
// sectanchors will be ignored
|
3
|
+
:sectanchors:
|
2
4
|
|
3
5
|
== First Section
|
4
6
|
|
@@ -7,7 +9,7 @@
|
|
7
9
|
|
8
10
|
Refer to <<another-section>> or <<another-section-1>>.
|
9
11
|
|
10
|
-
Navigate from {docname}{outfilesuffix} to
|
12
|
+
Navigate from {docname}{outfilesuffix} to xref:another-document.asciidoc[another document].
|
11
13
|
|
12
14
|
== Another Section
|
13
15
|
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<h1>Document Title</h1>
|
2
|
+
<div>
|
3
|
+
<div>Contents</div>
|
4
|
+
<ul>
|
5
|
+
<li>
|
6
|
+
<a href="#section-a">Section A</a>
|
7
|
+
<ul>
|
8
|
+
<li><a href="#subsection-a-1">Subsection A-1</a></li>
|
9
|
+
<li><a href="#subsection-a-2">Subsection A-2</a></li>
|
10
|
+
</ul>
|
11
|
+
</li>
|
12
|
+
<li>
|
13
|
+
<a href="#section-b">Section B</a>
|
14
|
+
<ul>
|
15
|
+
<li><a href="#subsection-b-1">Subsection B-1</a></li>
|
16
|
+
<li><a href="#subsection-b-2">Subsection B-2</a></li>
|
17
|
+
</ul>
|
18
|
+
</li>
|
19
|
+
</ul>
|
20
|
+
</div>
|
21
|
+
<div>
|
22
|
+
<h2>Section A</h2>
|
23
|
+
<div>
|
24
|
+
<div>
|
25
|
+
<h3>Subsection A-1</h3>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
<div>
|
29
|
+
<h3>Subsection A-2</h3>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<div>
|
35
|
+
<h2>Section B</h2>
|
36
|
+
<div>
|
37
|
+
<div>
|
38
|
+
<h3>Subsection B-1</h3>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
<div>
|
42
|
+
<h3>Subsection B-2</h3>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
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: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -76,22 +76,16 @@ dependencies:
|
|
76
76
|
name: sanitize
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '2.1'
|
82
79
|
- - ">="
|
83
80
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
81
|
+
version: 4.6.3
|
85
82
|
type: :development
|
86
83
|
prerelease: false
|
87
84
|
version_requirements: !ruby/object:Gem::Requirement
|
88
85
|
requirements:
|
89
|
-
- - "~>"
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '2.1'
|
92
86
|
- - ">="
|
93
87
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
88
|
+
version: 4.6.3
|
95
89
|
- !ruby/object:Gem::Dependency
|
96
90
|
name: nokogiri
|
97
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,17 +118,18 @@ dependencies:
|
|
124
118
|
name: github-linguist
|
125
119
|
requirement: !ruby/object:Gem::Requirement
|
126
120
|
requirements:
|
127
|
-
- - "
|
121
|
+
- - ">="
|
128
122
|
- !ruby/object:Gem::Version
|
129
|
-
version:
|
123
|
+
version: 7.1.3
|
130
124
|
type: :development
|
131
125
|
prerelease: false
|
132
126
|
version_requirements: !ruby/object:Gem::Requirement
|
133
127
|
requirements:
|
134
|
-
- - "
|
128
|
+
- - ">="
|
135
129
|
- !ruby/object:Gem::Version
|
136
|
-
version:
|
137
|
-
description:
|
130
|
+
version: 7.1.3
|
131
|
+
description: |
|
132
|
+
This gem is used by GitHub to render any fancy markup such as Markdown,
|
138
133
|
Textile, Org-Mode, etc. Fork it and add your own!
|
139
134
|
email: chris@ozmm.org
|
140
135
|
executables:
|
@@ -142,11 +137,13 @@ executables:
|
|
142
137
|
extensions: []
|
143
138
|
extra_rdoc_files: []
|
144
139
|
files:
|
140
|
+
- ".dockerignore"
|
145
141
|
- ".gitignore"
|
146
142
|
- ".kick"
|
147
143
|
- ".travis.yml"
|
148
144
|
- CODE_OF_CONDUCT.md
|
149
145
|
- CONTRIBUTING.md
|
146
|
+
- Dockerfile
|
150
147
|
- Gemfile
|
151
148
|
- HISTORY.md
|
152
149
|
- LICENSE
|
@@ -156,6 +153,7 @@ files:
|
|
156
153
|
- github-markup.gemspec
|
157
154
|
- lib/github-markup.rb
|
158
155
|
- lib/github/commands/pod2html
|
156
|
+
- lib/github/commands/pod62html
|
159
157
|
- lib/github/commands/rest2html
|
160
158
|
- lib/github/markup.rb
|
161
159
|
- lib/github/markup/command_implementation.rb
|
@@ -175,6 +173,8 @@ files:
|
|
175
173
|
- test/markups/README.creole.html
|
176
174
|
- test/markups/README.directives.rst
|
177
175
|
- test/markups/README.directives.rst.html
|
176
|
+
- test/markups/README.hidetitle.asciidoc
|
177
|
+
- test/markups/README.hidetitle.asciidoc.html
|
178
178
|
- test/markups/README.litcoffee
|
179
179
|
- test/markups/README.litcoffee.html
|
180
180
|
- test/markups/README.markdown
|
@@ -195,6 +195,8 @@ files:
|
|
195
195
|
- test/markups/README.rst.txt.html
|
196
196
|
- test/markups/README.textile
|
197
197
|
- test/markups/README.textile.html
|
198
|
+
- test/markups/README.toc.asciidoc
|
199
|
+
- test/markups/README.toc.asciidoc.html
|
198
200
|
- test/markups/README.toc.rst
|
199
201
|
- test/markups/README.toc.rst.html
|
200
202
|
- test/markups/README.txt
|
@@ -218,8 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
220
|
- !ruby/object:Gem::Version
|
219
221
|
version: '0'
|
220
222
|
requirements: []
|
221
|
-
|
222
|
-
rubygems_version: 2.7.6
|
223
|
+
rubygems_version: 3.0.3
|
223
224
|
signing_key:
|
224
225
|
specification_version: 4
|
225
226
|
summary: The code GitHub uses to render README.markup
|
@@ -232,6 +233,8 @@ test_files:
|
|
232
233
|
- test/markups/README.creole.html
|
233
234
|
- test/markups/README.directives.rst
|
234
235
|
- test/markups/README.directives.rst.html
|
236
|
+
- test/markups/README.hidetitle.asciidoc
|
237
|
+
- test/markups/README.hidetitle.asciidoc.html
|
235
238
|
- test/markups/README.litcoffee
|
236
239
|
- test/markups/README.litcoffee.html
|
237
240
|
- test/markups/README.markdown
|
@@ -252,6 +255,8 @@ test_files:
|
|
252
255
|
- test/markups/README.rst.txt.html
|
253
256
|
- test/markups/README.textile
|
254
257
|
- test/markups/README.textile.html
|
258
|
+
- test/markups/README.toc.asciidoc
|
259
|
+
- test/markups/README.toc.asciidoc.html
|
255
260
|
- test/markups/README.toc.rst
|
256
261
|
- test/markups/README.toc.rst.html
|
257
262
|
- test/markups/README.txt
|