jekyll-commonmark-ghpages 0.1.6 → 0.2.0

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: 84973ca273559f8820dcbaeebd7a0063fea813995591990bd7a65541a3065342
4
- data.tar.gz: 895b71c42a24135c5b24f047f357ecfb1a4de1d7e3efbaf489c06b7c7b665eed
3
+ metadata.gz: 8b6560d6d39742b63f7976d4b6df8dcc4f0cbf96cbfd72d786b2884f9623144a
4
+ data.tar.gz: d5f9045e89575c3b4a32690976e90a4c2783f970a78a068a79a5409aa8e99753
5
5
  SHA512:
6
- metadata.gz: 744eaf673bc6868d7ec277483e572ae0548ff3538ddf9b622f3144724c036bb07f5bb6ff42831c3e3a61c2a57e8ee9d5b6d1929442a16bf6e713b0e704d35986
7
- data.tar.gz: 71637825b3da4ef1c4e064cccc9aac0afd83d422e77f9bcb2f78a4beb5241d38b285052b1986c54191dfd98d8f90c1eadf1bc68628487cccd03286def4e6653a
6
+ metadata.gz: 3746a5a1699a22924cd92e8175dcd38f51a07208ac90e8730724964a48a1b56ecec41c0d7a0a619aac089dd6f9f3d586018746761e7240f7b28f3092d82e089d
7
+ data.tar.gz: 034d544a15c89930b5691ef68324f8a37857aacd0d21ee802c31f19703d61eae1c6fe4c71860a1dd547482d638512b95d52c1cca50363815e2e9e773c7535ee2
@@ -0,0 +1,2 @@
1
+ # Automatically add our team to each pull request in this repo
2
+ * @github/pages-reviewers
@@ -0,0 +1,17 @@
1
+ on: push
2
+ name: cibuild
3
+ jobs:
4
+ build:
5
+ name: Test
6
+ strategy:
7
+ matrix:
8
+ ruby: [2.6, 2.7]
9
+ os: [ubuntu-latest, macos-latest, windows-latest]
10
+ runs-on: ${{ matrix.os }}
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ - uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: ${{ matrix.ruby }}
16
+ - name: script/cibuild
17
+ run: script/cibuild
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  Gemfile.lock
3
3
  spec/dest
4
4
  .bundle
5
+ vendor/
data/README.md CHANGED
@@ -3,8 +3,7 @@
3
3
  *GitHub Flavored Markdown converter for Jekyll, based on [`jekyll-commonmark`](https://github.com/jekyll/jekyll-commonmark)*
4
4
 
5
5
  [![Gem Version](https://img.shields.io/gem/v/jekyll-commonmark-ghpages.svg)](https://rubygems.org/gems/jekyll-commonmark-ghpages)
6
- [![Build Status](https://img.shields.io/travis/github/jekyll-commonmark-ghpages/master.svg)](https://travis-ci.org/github/jekyll-commonmark-ghpages)
7
- [![Windows Build status](https://img.shields.io/appveyor/ci/github/jekyll-commonmark-ghpages/master.svg?label=Windows%20build)](https://ci.appveyor.com/project/github/jekyll-commonmark-ghpages)
6
+ [![Build Status](https://github.com/github/jekyll-commonmark-ghpages/actions/workflows/cibuild.yaml/badge.svg)](https://github.com/github/jekyll-commonmark-ghpages/actions/workflows/cibuild.yaml)
8
7
 
9
8
  Jekyll Markdown converter that uses [libcmark-gfm](https://github.com/github/cmark), GitHub's fork of [cmark](https://github.com/commonmark/cmark), the reference parser for CommonMark, with some additions to ensure compatibility with existing Kramdown-based sites.
10
9
 
@@ -30,6 +29,8 @@ To specify extensions and options for use in converting Markdown to HTML, supply
30
29
 
31
30
  ```yaml
32
31
  commonmark:
33
- options: ["SMART", "FOOTNOTES"]
32
+ options: ["UNSAFE", "SMART", "FOOTNOTES"]
34
33
  extensions: ["strikethrough", "autolink", "table", "tagfilter"]
35
34
  ```
35
+
36
+ ⚠ The `UNSAFE` option is required for HTML rendering.
@@ -3,9 +3,9 @@
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-commonmark-ghpages"
5
5
  spec.summary = "CommonMark generator for Jekyll"
6
- spec.version = "0.1.6"
7
- spec.authors = ["Ashe Connor"]
8
- spec.email = "kivikakk@github.com"
6
+ spec.version = "0.2.0"
7
+ spec.authors = ["GitHub, Inc."]
8
+ spec.email = "support@github.com"
9
9
  spec.homepage = "https://github.com/github/jekyll-commonmark-ghpages"
10
10
  spec.licenses = ["MIT"]
11
11
 
@@ -14,8 +14,9 @@ Gem::Specification.new do |spec|
14
14
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
15
  spec.require_paths = ["lib"]
16
16
 
17
- spec.add_runtime_dependency "jekyll-commonmark", "~> 1.2"
18
- spec.add_runtime_dependency "commonmarker", "~> 0.17.6"
17
+ spec.add_runtime_dependency "jekyll", "~> 3.9.0"
18
+ spec.add_runtime_dependency "jekyll-commonmark", "~> 1.4.0"
19
+ spec.add_runtime_dependency "commonmarker", "~> 0.23.4"
19
20
  spec.add_runtime_dependency "rouge", ">= 2.0", "< 4.0"
20
21
 
21
22
  spec.add_development_dependency "rspec", "~> 3.0"
data/script/cibuild CHANGED
@@ -1,3 +1,13 @@
1
1
  #!/bin/bash
2
2
 
3
+ # Update gems
4
+ gem update --system 3.2.3
5
+
6
+ # Install bundler
7
+ gem install bundler
8
+
9
+ # Install dependencies
10
+ bundle install
11
+
12
+ # Run tests
3
13
  bundle exec rspec
data/spec/test_spec.rb CHANGED
@@ -21,7 +21,7 @@ describe Jekyll::Converters::Markdown::CommonMarkGhPages do
21
21
  let(:converter) { Jekyll::Converters::Markdown::CommonMarkGhPages.new(config) }
22
22
  let(:config) {
23
23
  {"commonmark" => {
24
- "options" => ["SMART", "FOOTNOTES"],
24
+ "options" => ["UNSAFE", "SMART", "FOOTNOTES"],
25
25
  "extensions" => ["tagfilter"],
26
26
  }}
27
27
  }
@@ -32,7 +32,7 @@ end
32
32
 
33
33
  describe Jekyll::Renderer do
34
34
  it "should not re-process markdown in a liquid tag" do
35
- site = Jekyll::Site.new(Jekyll.configuration("markdown" => "CommonMarkGhPages"))
35
+ site = Jekyll::Site.new(Jekyll.configuration("markdown" => "CommonMarkGhPages", "commonmark" => { "options" => ["UNSAFE"] }))
36
36
  collection = Jekyll::Collection.new(site, "pages")
37
37
  document = Jekyll::Document.new("hello.md", site: site, collection: collection)
38
38
  document.content = "**Hi**\n" \
metadata CHANGED
@@ -1,43 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-commonmark-ghpages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Ashe Connor
8
- autorequire:
7
+ - GitHub, Inc.
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-21 00:00:00.000000000 Z
11
+ date: 2022-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.9.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.9.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: jekyll-commonmark
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: '1.2'
33
+ version: 1.4.0
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '1.2'
40
+ version: 1.4.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: commonmarker
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 0.17.6
47
+ version: 0.23.4
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 0.17.6
54
+ version: 0.23.4
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rouge
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,19 +100,19 @@ dependencies:
86
100
  - - ">="
87
101
  - !ruby/object:Gem::Version
88
102
  version: '0'
89
- description:
90
- email: kivikakk@github.com
103
+ description:
104
+ email: support@github.com
91
105
  executables: []
92
106
  extensions: []
93
107
  extra_rdoc_files: []
94
108
  files:
109
+ - ".github/CODEOWNERS"
110
+ - ".github/workflows/cibuild.yaml"
95
111
  - ".gitignore"
96
- - ".travis.yml"
97
112
  - Gemfile
98
113
  - LICENSE
99
114
  - README.md
100
115
  - Rakefile
101
- - appveyor.yml
102
116
  - jekyll-commonmark-ghpages.gemspec
103
117
  - lib/jekyll-commonmark-ghpages.rb
104
118
  - script/cibuild
@@ -108,7 +122,7 @@ homepage: https://github.com/github/jekyll-commonmark-ghpages
108
122
  licenses:
109
123
  - MIT
110
124
  metadata: {}
111
- post_install_message:
125
+ post_install_message:
112
126
  rdoc_options: []
113
127
  require_paths:
114
128
  - lib
@@ -123,9 +137,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  requirements: []
126
- rubyforge_project:
127
- rubygems_version: 2.7.6
128
- signing_key:
140
+ rubygems_version: 3.1.6
141
+ signing_key:
129
142
  specification_version: 4
130
143
  summary: CommonMark generator for Jekyll
131
144
  test_files:
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - 2.4
5
- - 2.3
6
- git:
7
- depth: 1
8
-
9
- sudo: false
10
-
11
- addons:
12
- apt:
13
- sources:
14
- - kalakris-cmake
15
- packages:
16
- - cmake
17
-
18
- before_install:
19
- - gem install bundler
20
-
21
- before_script: bundle update
22
- script: script/cibuild
data/appveyor.yml DELETED
@@ -1,23 +0,0 @@
1
- version: "{build}"
2
- clone_depth: 5
3
- build: off
4
-
5
- install:
6
- - SET PATH=C:\Ruby%RUBY_FOLDER_VER%\bin;%PATH%
7
- - bundle install --retry 5 --jobs=%NUMBER_OF_PROCESSORS% --clean --path vendor\bundle
8
-
9
- environment:
10
- matrix:
11
- - RUBY_FOLDER_VER: "24"
12
- - RUBY_FOLDER_VER: "24-x64"
13
- - RUBY_FOLDER_VER: "23"
14
- - RUBY_FOLDER_VER: "22"
15
-
16
- test_script:
17
- - ruby --version
18
- - gem --version
19
- - bundler --version
20
- - bash script/cibuild
21
-
22
- cache:
23
- - 'vendor\bundle -> appveyor.yml,Gemfile,jekyll-commonmark-ghpages.gemspec'