github-markup 3.0.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.dockerignore +1 -0
- data/.gitignore +1 -1
- data/.travis.yml +4 -7
- data/Dockerfile +39 -0
- data/Gemfile +1 -1
- data/HISTORY.md +24 -2
- 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 +2 -1
- data/lib/github/markups.rb +9 -4
- data/script/bootstrap +1 -1
- 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.rst.html +41 -0
- data/test/markups/README.toc.asciidoc +15 -0
- data/test/markups/README.toc.asciidoc.html +46 -0
- metadata +26 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d478e5b0587fafc728039bb362eb59b37e849cac
|
4
|
+
data.tar.gz: 6b637a68b21097a1975f5c9c3a152aeee76c80f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f69437f7f93962727c3de22187f26cf9f127c6a994b4d7b6892b2a288d3923ece69fd0e206b899b1c9b7e22cad66ecde884477ea31e0253ebe80184ae7b823c
|
7
|
+
data.tar.gz: 2b4d54324998b79ef4fd8254f0113419a805f8e2a3e8d7fd142b85d876fdc5e2a57ab9847fb5498b5ff1031204a085d054f27711b2b17b834d244d3e58e3595b
|
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
|
+
## 4.0.0 - 2021-03-31
|
2
|
+
|
3
|
+
* Drop support for Python 2 in RST rendering [#1456](https://github.com/github/markup/pull/1456)
|
4
|
+
|
5
|
+
## 3.0.5 - 2020-11-12
|
6
|
+
|
7
|
+
* Add commonmarker_exts to commonmarker options [#1268](https://github.com/github/markup/pull/1268)
|
8
|
+
* Check whether filename is set when rendering Asciidoc. [#1290](https://github.com/github/markup/pull/1290)
|
9
|
+
|
10
|
+
## 3.0.4 - 2019-04-03
|
11
|
+
|
12
|
+
* Expose options in #render_s [#1249](https://github.com/github/markup/pull/1249)
|
13
|
+
* Upgrade to Asciidoctor 2.0.x [#1264](https://github.com/github/markup/pull/1264)
|
14
|
+
|
15
|
+
## 3.0.3 - 2018-12-17
|
16
|
+
|
17
|
+
* Temporarily remove support for POD6 [#1248](https://github.com/github/markup/pull/1248)
|
18
|
+
|
19
|
+
## 3.0.2 - 2018-12-12
|
20
|
+
|
21
|
+
* Add support for POD6 [#1173](https://github.com/github/markup/pull/1173)
|
22
|
+
|
1
23
|
## 3.0.1 - 2018-10-19
|
2
24
|
|
3
25
|
* Remove linguist-detected RMarkdown files from the Markdown renderer [#1237](https://github.com/github/markup/pull/1237)
|
@@ -54,8 +76,8 @@
|
|
54
76
|
|
55
77
|
### Added
|
56
78
|
|
57
|
-
* Re-introduce [#537](https://github.com/github/markup/pull/537) to detect language of markup document
|
58
|
-
However `github-linguist` is optional and this gem will fallback to extensions for detection.
|
79
|
+
* Re-introduce [#537](https://github.com/github/markup/pull/537) to detect language of markup document
|
80
|
+
However `github-linguist` is optional and this gem will fallback to extensions for detection.
|
59
81
|
|
60
82
|
[Full changelog](https://github.com/github/markup/compare/v1.4.9...v1.5.0)
|
61
83
|
|
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)
|
data/lib/github/markups.rb
CHANGED
@@ -32,23 +32,28 @@ 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
|
45
49
|
|
46
50
|
command(
|
47
51
|
::GitHub::Markups::MARKUP_RST,
|
48
|
-
"
|
52
|
+
"python3 #{Shellwords.escape(File.dirname(__FILE__))}/commands/rest2html",
|
49
53
|
/re?st(\.txt)?/,
|
50
54
|
["reStructuredText"],
|
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/script/bootstrap
CHANGED
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
|
|
@@ -16,6 +16,47 @@
|
|
16
16
|
<li>Somé UTF-8°</li>
|
17
17
|
</ol>
|
18
18
|
<p>The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.</p>
|
19
|
+
<table>
|
20
|
+
Things that are Awesome (on a scale of 1-11)
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<tbody valign="top">
|
26
|
+
<tr>
|
27
|
+
<td>Thing</td>
|
28
|
+
<td>Awesomeness</td>
|
29
|
+
</tr>
|
30
|
+
<tr>
|
31
|
+
<td>Icecream</td>
|
32
|
+
<td>7</td>
|
33
|
+
</tr>
|
34
|
+
<tr>
|
35
|
+
<td>Honey Badgers</td>
|
36
|
+
<td>10.5</td>
|
37
|
+
</tr>
|
38
|
+
<tr>
|
39
|
+
<td>Nickelback</td>
|
40
|
+
<td>-2</td>
|
41
|
+
</tr>
|
42
|
+
<tr>
|
43
|
+
<td>Iron Man</td>
|
44
|
+
<td>10</td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<td>Iron Man 2</td>
|
48
|
+
<td>3</td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td>Tabular Data</td>
|
52
|
+
<td>5</td>
|
53
|
+
</tr>
|
54
|
+
<tr>
|
55
|
+
<td>Made up ratings</td>
|
56
|
+
<td>11</td>
|
57
|
+
</tr>
|
58
|
+
</tbody>
|
59
|
+
</table>
|
19
60
|
<pre>
|
20
61
|
A block of code
|
21
62
|
</pre>
|
@@ -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:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-31 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
|
@@ -203,7 +205,7 @@ homepage: https://github.com/github/markup
|
|
203
205
|
licenses:
|
204
206
|
- MIT
|
205
207
|
metadata: {}
|
206
|
-
post_install_message:
|
208
|
+
post_install_message:
|
207
209
|
rdoc_options: []
|
208
210
|
require_paths:
|
209
211
|
- lib
|
@@ -218,9 +220,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
220
|
- !ruby/object:Gem::Version
|
219
221
|
version: '0'
|
220
222
|
requirements: []
|
221
|
-
rubyforge_project:
|
222
|
-
rubygems_version: 2.
|
223
|
-
signing_key:
|
223
|
+
rubyforge_project:
|
224
|
+
rubygems_version: 2.6.11
|
225
|
+
signing_key:
|
224
226
|
specification_version: 4
|
225
227
|
summary: The code GitHub uses to render README.markup
|
226
228
|
test_files:
|
@@ -232,6 +234,8 @@ test_files:
|
|
232
234
|
- test/markups/README.creole.html
|
233
235
|
- test/markups/README.directives.rst
|
234
236
|
- test/markups/README.directives.rst.html
|
237
|
+
- test/markups/README.hidetitle.asciidoc
|
238
|
+
- test/markups/README.hidetitle.asciidoc.html
|
235
239
|
- test/markups/README.litcoffee
|
236
240
|
- test/markups/README.litcoffee.html
|
237
241
|
- test/markups/README.markdown
|
@@ -252,6 +256,8 @@ test_files:
|
|
252
256
|
- test/markups/README.rst.txt.html
|
253
257
|
- test/markups/README.textile
|
254
258
|
- test/markups/README.textile.html
|
259
|
+
- test/markups/README.toc.asciidoc
|
260
|
+
- test/markups/README.toc.asciidoc.html
|
255
261
|
- test/markups/README.toc.rst
|
256
262
|
- test/markups/README.toc.rst.html
|
257
263
|
- test/markups/README.txt
|