github-markup 5.0.0 → 6.0.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/dependabot.yaml +28 -0
- data/.github/workflows/ci.yml +15 -11
- data/.github/workflows/stale.yml +27 -0
- data/.gitignore +3 -1
- data/Gemfile +6 -5
- data/Gemfile.lock +141 -0
- data/HISTORY.md +37 -0
- data/README.md +10 -1
- data/github-markup.gemspec +4 -4
- data/lib/github/commands/rest2html +2 -2
- data/lib/github-markup.rb +1 -1
- data/test/markups/README.org +1 -1
- data/test/markups/README.org.html +1 -1
- data/test/markups/README.rst +4 -0
- data/test/markups/README.rst.html +2 -0
- metadata +13 -12
- data/.dockerignore +0 -1
- data/Dockerfile +0 -39
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 80586e3bf671eeee5c18bff710b2ecc03475f997ecf46a1c4cffa5c7e6720ebb
|
|
4
|
+
data.tar.gz: 9d9d0c4e38e73dc26b2ce431646ee985d8669c6de7e78727f2d2c454e082e50d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e624218e7db37c315a3b74cfdeb261f9002123bfbf8f3b61abb538db5163ff01813183552797f5e2ad3f71ef9f5915e683817c3cd91e3fce9fd1bc9a6f106880
|
|
7
|
+
data.tar.gz: 9cc7b12ec3ab35d565970653f5c37aeae1bf81b4f2531bd3b226e087f54a114fd9417bff5abe72586147113f1bf63194b15e74ef3fca07575635117dea80df10
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 2
|
|
3
|
+
updates:
|
|
4
|
+
- package-ecosystem: 'bundler'
|
|
5
|
+
directory: '/'
|
|
6
|
+
schedule:
|
|
7
|
+
interval: 'weekly'
|
|
8
|
+
commit-message:
|
|
9
|
+
prefix: 'chore(deps)'
|
|
10
|
+
groups:
|
|
11
|
+
dependencies:
|
|
12
|
+
applies-to: version-updates
|
|
13
|
+
update-types:
|
|
14
|
+
- 'minor'
|
|
15
|
+
- 'patch'
|
|
16
|
+
- package-ecosystem: 'github-actions'
|
|
17
|
+
directory: '/'
|
|
18
|
+
schedule:
|
|
19
|
+
interval: 'weekly'
|
|
20
|
+
commit-message:
|
|
21
|
+
prefix: 'chore(deps)'
|
|
22
|
+
groups:
|
|
23
|
+
dependencies:
|
|
24
|
+
applies-to: version-updates
|
|
25
|
+
update-types:
|
|
26
|
+
- 'minor'
|
|
27
|
+
- 'patch'
|
|
28
|
+
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -4,6 +4,9 @@ on: [push, pull_request]
|
|
|
4
4
|
env:
|
|
5
5
|
JRUBY_OPTS: -Xcext.enabled=true
|
|
6
6
|
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
7
10
|
jobs:
|
|
8
11
|
build:
|
|
9
12
|
name: "Test / Ruby ${{ matrix.ruby }}"
|
|
@@ -11,29 +14,28 @@ jobs:
|
|
|
11
14
|
strategy:
|
|
12
15
|
matrix:
|
|
13
16
|
ruby:
|
|
14
|
-
- "3.0"
|
|
15
|
-
- "3.1"
|
|
16
|
-
- "3.2"
|
|
17
17
|
- "3.3"
|
|
18
|
+
- "3.4"
|
|
19
|
+
- "4.0"
|
|
18
20
|
fail-fast: false
|
|
19
21
|
|
|
20
22
|
steps:
|
|
21
23
|
- name: Checkout
|
|
22
|
-
uses: actions/checkout@
|
|
24
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
23
25
|
with:
|
|
24
26
|
fetch-depth: 10
|
|
25
27
|
|
|
26
|
-
- uses: ruby/setup-ruby@v1
|
|
28
|
+
- uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1
|
|
27
29
|
with:
|
|
28
30
|
ruby-version: ${{ matrix.ruby }}
|
|
29
31
|
bundler-cache: true
|
|
30
32
|
|
|
31
|
-
- uses: actions/setup-python@
|
|
33
|
+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
32
34
|
with:
|
|
33
|
-
#
|
|
34
|
-
python-version:
|
|
35
|
+
# Required by lib/github/commands/rest2html (RST rendering)
|
|
36
|
+
python-version: "3.x"
|
|
35
37
|
|
|
36
|
-
- uses: actions/cache@
|
|
38
|
+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
|
37
39
|
with:
|
|
38
40
|
path: ~/.cache/pip
|
|
39
41
|
key: ${{ runner.os }}-pip
|
|
@@ -46,11 +48,13 @@ jobs:
|
|
|
46
48
|
sudo apt-get update -qq
|
|
47
49
|
sudo apt-get install perl rakudo-pkg
|
|
48
50
|
|
|
49
|
-
curl -
|
|
51
|
+
curl -fsSL https://cpanmin.us | perl - --sudo App::cpanminus
|
|
50
52
|
sudo cpanm --installdeps --notest Pod::Simple
|
|
51
53
|
|
|
52
54
|
- name: Install Python dependencies
|
|
53
|
-
run:
|
|
55
|
+
run: |
|
|
56
|
+
echo 'docutils==0.22.4 --hash=sha256:d0013f540772d1420576855455d050a2180186c91c15779301ac2ccb3eeb68de' > /tmp/requirements.txt
|
|
57
|
+
python -m pip install --require-hashes --no-deps -r /tmp/requirements.txt
|
|
54
58
|
|
|
55
59
|
- name: Run rake
|
|
56
60
|
run: |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Mark stale issues and pull requests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "0 12 * * *"
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
stale:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
issues: write
|
|
12
|
+
pull-requests: write
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
|
|
16
|
+
with:
|
|
17
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
18
|
+
stale-issue-message: >
|
|
19
|
+
This issue has been automatically marked as stale because it has not
|
|
20
|
+
had recent activity. It will be closed if no further activity occurs.
|
|
21
|
+
Thank you for your contributions.
|
|
22
|
+
stale-pr-message: >
|
|
23
|
+
This pull request has been automatically marked as stale because it has not
|
|
24
|
+
had recent activity. It will be closed if no further activity occurs.
|
|
25
|
+
Thank you for your contributions.
|
|
26
|
+
exempt-issue-labels: keep
|
|
27
|
+
exempt-pr-labels: keep
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
source "
|
|
1
|
+
source "https://rubygems.org"
|
|
2
2
|
gemspec
|
|
3
3
|
|
|
4
4
|
gem "redcarpet", :platforms => :ruby
|
|
@@ -7,11 +7,12 @@ gem "RedCloth"
|
|
|
7
7
|
# using a tag version here because 0.18.3 was not published by the author to encourage users to upgrade.
|
|
8
8
|
# however we want to bump up to this version since this has a security patch
|
|
9
9
|
gem "commonmarker", git: "https://github.com/gjtorikian/commonmarker.git", tag: "v0.18.3"
|
|
10
|
-
gem "rdoc", "~> 6.
|
|
11
|
-
gem "org-ruby", "
|
|
12
|
-
gem "creole", "~>0.
|
|
10
|
+
gem "rdoc", "~> 6.13.1"
|
|
11
|
+
gem "org-ruby", "0.9.12"
|
|
12
|
+
gem "creole", "~>0.5.0"
|
|
13
13
|
gem "wikicloth", "=0.8.3"
|
|
14
14
|
gem "twitter-text", "~> 1.14"
|
|
15
|
-
gem "asciidoctor", "~> 2.0.
|
|
15
|
+
gem "asciidoctor", "~> 2.0.26"
|
|
16
16
|
gem "rake"
|
|
17
17
|
gem "rexml"
|
|
18
|
+
gem "nokogiri", "~> 1.19"
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
GIT
|
|
2
|
+
remote: https://github.com/gjtorikian/commonmarker.git
|
|
3
|
+
revision: 2838ebaa83ee0081d481c21f3bc0e4cb3e8de9da
|
|
4
|
+
tag: v0.18.3
|
|
5
|
+
specs:
|
|
6
|
+
commonmarker (0.18.3)
|
|
7
|
+
ruby-enum (~> 0.5)
|
|
8
|
+
|
|
9
|
+
PATH
|
|
10
|
+
remote: .
|
|
11
|
+
specs:
|
|
12
|
+
github-markup (6.0.0)
|
|
13
|
+
|
|
14
|
+
GEM
|
|
15
|
+
remote: https://rubygems.org/
|
|
16
|
+
specs:
|
|
17
|
+
RedCloth (4.3.4)
|
|
18
|
+
activesupport (7.2.3.1)
|
|
19
|
+
base64
|
|
20
|
+
benchmark (>= 0.3)
|
|
21
|
+
bigdecimal
|
|
22
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
23
|
+
connection_pool (>= 2.2.5)
|
|
24
|
+
drb
|
|
25
|
+
i18n (>= 1.6, < 2)
|
|
26
|
+
logger (>= 1.4.2)
|
|
27
|
+
minitest (>= 5.1, < 6)
|
|
28
|
+
securerandom (>= 0.3)
|
|
29
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
30
|
+
asciidoctor (2.0.26)
|
|
31
|
+
base64 (0.3.0)
|
|
32
|
+
benchmark (0.5.0)
|
|
33
|
+
bigdecimal (4.1.0)
|
|
34
|
+
builder (3.3.0)
|
|
35
|
+
cgi (0.5.1)
|
|
36
|
+
charlock_holmes (0.7.9)
|
|
37
|
+
concurrent-ruby (1.3.6)
|
|
38
|
+
connection_pool (3.0.2)
|
|
39
|
+
crass (1.0.6)
|
|
40
|
+
creole (0.5.0)
|
|
41
|
+
date (3.4.1)
|
|
42
|
+
drb (2.2.3)
|
|
43
|
+
expression_parser (0.9.0)
|
|
44
|
+
github-linguist (9.3.0)
|
|
45
|
+
cgi
|
|
46
|
+
charlock_holmes (~> 0.7.7)
|
|
47
|
+
mini_mime (~> 1.0)
|
|
48
|
+
rugged (~> 1.0)
|
|
49
|
+
html-pipeline (1.11.0)
|
|
50
|
+
activesupport (>= 2)
|
|
51
|
+
nokogiri (~> 1.4)
|
|
52
|
+
htmlentities (4.3.4)
|
|
53
|
+
i18n (1.14.8)
|
|
54
|
+
concurrent-ruby (~> 1.0)
|
|
55
|
+
logger (1.7.0)
|
|
56
|
+
mini_mime (1.1.5)
|
|
57
|
+
mini_portile2 (2.8.9)
|
|
58
|
+
minitest (5.27.0)
|
|
59
|
+
nokogiri (1.19.2)
|
|
60
|
+
mini_portile2 (~> 2.8.2)
|
|
61
|
+
racc (~> 1.4)
|
|
62
|
+
nokogiri (1.19.2-aarch64-linux-gnu)
|
|
63
|
+
racc (~> 1.4)
|
|
64
|
+
nokogiri (1.19.2-arm-linux-gnu)
|
|
65
|
+
racc (~> 1.4)
|
|
66
|
+
nokogiri (1.19.2-arm64-darwin)
|
|
67
|
+
racc (~> 1.4)
|
|
68
|
+
nokogiri (1.19.2-x86_64-darwin)
|
|
69
|
+
racc (~> 1.4)
|
|
70
|
+
nokogiri (1.19.2-x86_64-linux-gnu)
|
|
71
|
+
racc (~> 1.4)
|
|
72
|
+
nokogiri-diff (0.3.0)
|
|
73
|
+
nokogiri (~> 1.5)
|
|
74
|
+
tdiff (~> 0.4)
|
|
75
|
+
org-ruby (0.9.12)
|
|
76
|
+
rubypants (~> 0.2)
|
|
77
|
+
psych (5.2.3)
|
|
78
|
+
date
|
|
79
|
+
stringio
|
|
80
|
+
racc (1.8.1)
|
|
81
|
+
rake (13.3.1)
|
|
82
|
+
rdoc (6.13.1)
|
|
83
|
+
psych (>= 4.0.0)
|
|
84
|
+
redcarpet (3.6.1)
|
|
85
|
+
rexml (3.4.4)
|
|
86
|
+
ruby-enum (0.9.0)
|
|
87
|
+
i18n
|
|
88
|
+
rubypants (0.7.1)
|
|
89
|
+
rugged (1.9.0)
|
|
90
|
+
sanitize (6.1.3)
|
|
91
|
+
crass (~> 1.0.2)
|
|
92
|
+
nokogiri (>= 1.12.0)
|
|
93
|
+
securerandom (0.4.1)
|
|
94
|
+
stringio (3.1.6)
|
|
95
|
+
tdiff (0.4.0)
|
|
96
|
+
twitter-text (1.14.7)
|
|
97
|
+
unf (~> 0.1.0)
|
|
98
|
+
tzinfo (2.0.6)
|
|
99
|
+
concurrent-ruby (~> 1.0)
|
|
100
|
+
unf (0.1.4)
|
|
101
|
+
unf_ext
|
|
102
|
+
unf_ext (0.0.9.1)
|
|
103
|
+
wikicloth (0.8.3)
|
|
104
|
+
builder
|
|
105
|
+
expression_parser
|
|
106
|
+
htmlentities
|
|
107
|
+
nokogiri
|
|
108
|
+
twitter-text
|
|
109
|
+
|
|
110
|
+
PLATFORMS
|
|
111
|
+
aarch64-linux
|
|
112
|
+
arm-linux
|
|
113
|
+
arm64-darwin
|
|
114
|
+
x86-linux
|
|
115
|
+
x86_64-darwin
|
|
116
|
+
x86_64-linux
|
|
117
|
+
|
|
118
|
+
DEPENDENCIES
|
|
119
|
+
RedCloth
|
|
120
|
+
activesupport (~> 7.2.3)
|
|
121
|
+
asciidoctor (~> 2.0.26)
|
|
122
|
+
commonmarker!
|
|
123
|
+
creole (~> 0.5.0)
|
|
124
|
+
github-linguist (>= 7.1.3)
|
|
125
|
+
github-markup!
|
|
126
|
+
html-pipeline (~> 1.0)
|
|
127
|
+
kramdown
|
|
128
|
+
minitest (~> 5.4, >= 5.4.3)
|
|
129
|
+
nokogiri (~> 1.19)
|
|
130
|
+
nokogiri-diff (~> 0.3.0)
|
|
131
|
+
org-ruby (= 0.9.12)
|
|
132
|
+
rake
|
|
133
|
+
rdoc (~> 6.13.1)
|
|
134
|
+
redcarpet
|
|
135
|
+
rexml
|
|
136
|
+
sanitize (>= 4.6.3)
|
|
137
|
+
twitter-text (~> 1.14)
|
|
138
|
+
wikicloth (= 0.8.3)
|
|
139
|
+
|
|
140
|
+
BUNDLED WITH
|
|
141
|
+
2.3.26
|
data/HISTORY.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
## 6.0.0 - 2026-05-04
|
|
2
|
+
|
|
3
|
+
### Breaking
|
|
4
|
+
|
|
5
|
+
* Drop support for Ruby < 3.3 (Ruby 3.1 EOL March 2025, Ruby 3.2 EOL March 2026)
|
|
6
|
+
|
|
7
|
+
### Security
|
|
8
|
+
|
|
9
|
+
* Use HTTPS for cpanminus download in CI to prevent MITM attacks [#2050](https://github.com/github/markup/pull/2050)
|
|
10
|
+
* Bump nokogiri to >= 1.19.1 to fix GHSA-wx95-c6cv-8532
|
|
11
|
+
* Harden CI pip install with `--require-hashes --no-deps` [#2048](https://github.com/github/markup/pull/2048)
|
|
12
|
+
* Use HTTPS for RubyGems source URL in Gemfile [#1854](https://github.com/github/markup/pull/1854)
|
|
13
|
+
* Add explicit `contents: read` permissions to CI workflow [#1855](https://github.com/github/markup/pull/1855)
|
|
14
|
+
* Bump rexml from 3.3.0 to 3.3.9 (multiple security fixes)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* Fix RST section ID rendering to iterate all anchors instead of only the first [040f91d](https://github.com/github/markup/commit/040f91d)
|
|
19
|
+
|
|
20
|
+
### Documentation
|
|
21
|
+
|
|
22
|
+
* Fix spelling errors in codebase [#1479](https://github.com/github/markup/pull/1479)
|
|
23
|
+
* Fix broken Textile language link in README [#1703](https://github.com/github/markup/pull/1703)
|
|
24
|
+
|
|
25
|
+
### Infrastructure
|
|
26
|
+
|
|
27
|
+
* Remove legacy Dockerfile and .dockerignore (Ubuntu Trusty, non-functional) [#2048](https://github.com/github/markup/pull/2048)
|
|
28
|
+
* Update CI test matrix: drop Ruby 3.2, add Ruby 4.0 (now testing 3.3, 3.4, 4.0)
|
|
29
|
+
* Bump nokogiri to 1.19.2, activesupport to 7.2.3.1
|
|
30
|
+
* Bump github-linguist from 7.30.0 to 9.1.0, then to 9.3.0
|
|
31
|
+
* Pin all GitHub Actions to commit SHAs for supply chain hardening
|
|
32
|
+
* Add Dependabot configuration for automated dependency updates
|
|
33
|
+
* Various Dependabot bumps for CI actions (ruby/setup-ruby, actions/checkout, actions/cache, actions/setup-python, actions/stale)
|
|
34
|
+
|
|
35
|
+
## 5.0.1 - 2024-06-17
|
|
36
|
+
* Bump activesupport from 4.0 to 7.1.3.4
|
|
37
|
+
|
|
1
38
|
## 5.0.0 - 2024-06-17
|
|
2
39
|
* Drop support for Ruby versions < 3
|
|
3
40
|
* Bump nokogiri from 1.8.1 to 1.16.5
|
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ The following markups are supported. The dependencies listed are required if
|
|
|
20
20
|
you wish to run the library. You can also run `script/bootstrap` to fetch them all.
|
|
21
21
|
|
|
22
22
|
* [.markdown, .mdown, .mkdn, .md](http://daringfireball.net/projects/markdown/) -- `gem install commonmarker` (https://github.com/gjtorikian/commonmarker)
|
|
23
|
-
* [.textile](https://
|
|
23
|
+
* [.textile](https://textile-lang.com/) -- `gem install RedCloth` (https://github.com/jgarber/redcloth)
|
|
24
24
|
* [.rdoc](https://ruby.github.io/rdoc/) -- `gem install rdoc -v 3.6.1`
|
|
25
25
|
* [.org](http://orgmode.org/) -- `gem install org-ruby` (https://github.com/wallyqs/org-ruby)
|
|
26
26
|
* [.creole](http://wikicreole.org/) -- `gem install creole` (https://github.com/larsch/creole)
|
|
@@ -72,6 +72,15 @@ require 'github/markup'
|
|
|
72
72
|
GitHub::Markup.render_s(GitHub::Markups::MARKUP_MARKDOWN, "* One\n* Two")
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
+
Local Development
|
|
76
|
+
-----------------
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
python3 -m venv .venv
|
|
80
|
+
source .venv/bin/activate
|
|
81
|
+
cd script
|
|
82
|
+
./bootstrap
|
|
83
|
+
```
|
|
75
84
|
|
|
76
85
|
Contributing
|
|
77
86
|
------------
|
data/github-markup.gemspec
CHANGED
|
@@ -13,19 +13,19 @@ Gem::Specification.new do |s|
|
|
|
13
13
|
s.homepage = "https://github.com/github/markup"
|
|
14
14
|
s.license = "MIT"
|
|
15
15
|
|
|
16
|
-
s.required_ruby_version = '>= 3.
|
|
16
|
+
s.required_ruby_version = '>= 3.3.0'
|
|
17
17
|
|
|
18
18
|
s.files = `git ls-files`.split($\)
|
|
19
19
|
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
20
20
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
|
21
21
|
s.require_paths = %w[lib]
|
|
22
22
|
|
|
23
|
-
s.add_development_dependency 'rake', '~>
|
|
24
|
-
s.add_development_dependency 'activesupport', '~>
|
|
23
|
+
s.add_development_dependency 'rake', '~> 13'
|
|
24
|
+
s.add_development_dependency 'activesupport', '~> 7.2.3'
|
|
25
25
|
s.add_development_dependency 'minitest', '~> 5.4', '>= 5.4.3'
|
|
26
26
|
s.add_development_dependency 'html-pipeline', '~> 1.0'
|
|
27
27
|
s.add_development_dependency 'sanitize', '>= 4.6.3'
|
|
28
|
-
s.add_development_dependency 'nokogiri', '~> 1.
|
|
28
|
+
s.add_development_dependency 'nokogiri', '~> 1.19.2'
|
|
29
29
|
s.add_development_dependency 'nokogiri-diff', '~> 0.3.0'
|
|
30
30
|
s.add_development_dependency "github-linguist", ">= 7.1.3"
|
|
31
31
|
end
|
|
@@ -199,8 +199,8 @@ class GitHubHTMLTranslator(HTMLTranslator):
|
|
|
199
199
|
# see also: http://bit.ly/NHtyRx
|
|
200
200
|
# the a is to support ::contents with ::sectnums: http://git.io/N1yC
|
|
201
201
|
def visit_section(self, node):
|
|
202
|
-
id_attribute
|
|
203
|
-
|
|
202
|
+
for id_attribute in node.attributes['ids']:
|
|
203
|
+
self.body.append('<a name="%s"></a>\n' % id_attribute)
|
|
204
204
|
self.section_level += 1
|
|
205
205
|
|
|
206
206
|
def depart_section(self, node):
|
data/lib/github-markup.rb
CHANGED
data/test/markups/README.org
CHANGED
|
@@ -58,7 +58,7 @@ end
|
|
|
58
58
|
- Skipping text before the first headline (option skip:t)
|
|
59
59
|
- Skipping tables (option |:nil)
|
|
60
60
|
- Custom todo keywords
|
|
61
|
-
- EXPORT_SELECT_TAGS and
|
|
61
|
+
- EXPORT_SELECT_TAGS and EXPORT_EXCLUDE_TAGS for controlling parts of
|
|
62
62
|
the tree to export
|
|
63
63
|
- Rewrite "file:(blah).org" links to "http:(blah).html" links. This
|
|
64
64
|
makes the inter-links to other org-mode files work.
|
|
@@ -52,7 +52,7 @@ end
|
|
|
52
52
|
<li>Skipping text before the first headline (option skip:t)</li>
|
|
53
53
|
<li>Skipping tables (option |:nil)</li>
|
|
54
54
|
<li>Custom todo keywords</li>
|
|
55
|
-
<li>EXPORT_SELECT_TAGS and
|
|
55
|
+
<li>EXPORT_SELECT_TAGS and EXPORT_EXCLUDE_TAGS for controlling parts of
|
|
56
56
|
the tree to export</li>
|
|
57
57
|
</ul>
|
|
58
58
|
</li>
|
data/test/markups/README.rst
CHANGED
|
@@ -8,6 +8,8 @@ Example text.
|
|
|
8
8
|
|
|
9
9
|
.. contents:: Table of Contents
|
|
10
10
|
|
|
11
|
+
.. _label_for_header_2:
|
|
12
|
+
|
|
11
13
|
Header 2
|
|
12
14
|
--------
|
|
13
15
|
|
|
@@ -17,6 +19,8 @@ Header 2
|
|
|
17
19
|
|
|
18
20
|
3. Somé UTF-8°
|
|
19
21
|
|
|
22
|
+
4. `Link to the above header <label_for_header_2_>`_
|
|
23
|
+
|
|
20
24
|
The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.
|
|
21
25
|
|
|
22
26
|
.. csv-table:: Things that are Awesome (on a scale of 1-11)
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
</ul>
|
|
10
10
|
</div>
|
|
11
11
|
<a name="header-2"></a>
|
|
12
|
+
<a name="label-for-header-2"></a>
|
|
12
13
|
<h2><a href="#toc-entry-1">Header 2</a></h2>
|
|
13
14
|
<ol>
|
|
14
15
|
<li>Blah blah <code>code</code> blah</li>
|
|
15
16
|
<li>More <code>code</code>, hooray</li>
|
|
16
17
|
<li>Somé UTF-8°</li>
|
|
18
|
+
<li><a href="#label-for-header-2">Link to the above header</a></li>
|
|
17
19
|
</ol>
|
|
18
20
|
<p>The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.</p>
|
|
19
21
|
<table>
|
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: 6.0.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:
|
|
11
|
+
date: 2026-05-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '13'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '13'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: activesupport
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 7.2.3
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 7.2.3
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: minitest
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -92,14 +92,14 @@ dependencies:
|
|
|
92
92
|
requirements:
|
|
93
93
|
- - "~>"
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: 1.
|
|
95
|
+
version: 1.19.2
|
|
96
96
|
type: :development
|
|
97
97
|
prerelease: false
|
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: 1.
|
|
102
|
+
version: 1.19.2
|
|
103
103
|
- !ruby/object:Gem::Dependency
|
|
104
104
|
name: nokogiri-diff
|
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -137,14 +137,15 @@ executables:
|
|
|
137
137
|
extensions: []
|
|
138
138
|
extra_rdoc_files: []
|
|
139
139
|
files:
|
|
140
|
-
- ".
|
|
140
|
+
- ".github/dependabot.yaml"
|
|
141
141
|
- ".github/workflows/ci.yml"
|
|
142
|
+
- ".github/workflows/stale.yml"
|
|
142
143
|
- ".gitignore"
|
|
143
144
|
- ".kick"
|
|
144
145
|
- CODE_OF_CONDUCT.md
|
|
145
146
|
- CONTRIBUTING.md
|
|
146
|
-
- Dockerfile
|
|
147
147
|
- Gemfile
|
|
148
|
+
- Gemfile.lock
|
|
148
149
|
- HISTORY.md
|
|
149
150
|
- LICENSE
|
|
150
151
|
- README.md
|
|
@@ -215,14 +216,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
215
216
|
requirements:
|
|
216
217
|
- - ">="
|
|
217
218
|
- !ruby/object:Gem::Version
|
|
218
|
-
version: 3.
|
|
219
|
+
version: 3.3.0
|
|
219
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
221
|
requirements:
|
|
221
222
|
- - ">="
|
|
222
223
|
- !ruby/object:Gem::Version
|
|
223
224
|
version: '0'
|
|
224
225
|
requirements: []
|
|
225
|
-
rubygems_version: 3.
|
|
226
|
+
rubygems_version: 3.4.10
|
|
226
227
|
signing_key:
|
|
227
228
|
specification_version: 4
|
|
228
229
|
summary: The code GitHub uses to render README.markup
|
data/.dockerignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Dockerfile
|
data/Dockerfile
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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
|