Skip to content

Commit 9bc5971

Browse files
committed
Bump commonmarker to the latest
1 parent fcd4e0b commit 9bc5971

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Automatically add our team to each pull request in this repo
2+
* @github/pages-reviewers

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
Gemfile.lock
33
spec/dest
44
.bundle
5+
vendor/

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ To specify extensions and options for use in converting Markdown to HTML, supply
3030
3131
```yaml
3232
commonmark:
33-
options: ["SMART", "FOOTNOTES"]
33+
options: ["UNSAFE", "SMART", "FOOTNOTES"]
3434
extensions: ["strikethrough", "autolink", "table", "tagfilter"]
3535
```
36+
37+
⚠ The `UNSAFE` option is required for HTML rendering.

jekyll-commonmark-ghpages.gemspec

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Gem::Specification.new do |spec|
44
spec.name = "jekyll-commonmark-ghpages"
55
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"
99
spec.homepage = "https://github.com/github/jekyll-commonmark-ghpages"
1010
spec.licenses = ["MIT"]
1111

@@ -14,8 +14,9 @@ Gem::Specification.new do |spec|
1414
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
1515
spec.require_paths = ["lib"]
1616

17+
spec.add_runtime_dependency "jekyll", "~> 3.9.0"
1718
spec.add_runtime_dependency "jekyll-commonmark", "~> 1.2"
18-
spec.add_runtime_dependency "commonmarker", "~> 0.17.6"
19+
spec.add_runtime_dependency "commonmarker", "~> 0.23.4"
1920
spec.add_runtime_dependency "rouge", ">= 2.0", "< 4.0"
2021

2122
spec.add_development_dependency "rspec", "~> 3.0"

spec/test_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
let(:converter) { Jekyll::Converters::Markdown::CommonMarkGhPages.new(config) }
2222
let(:config) {
2323
{"commonmark" => {
24-
"options" => ["SMART", "FOOTNOTES"],
24+
"options" => ["UNSAFE", "SMART", "FOOTNOTES"],
2525
"extensions" => ["tagfilter"],
2626
}}
2727
}
@@ -32,7 +32,7 @@
3232

3333
describe Jekyll::Renderer do
3434
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"] }))
3636
collection = Jekyll::Collection.new(site, "pages")
3737
document = Jekyll::Document.new("hello.md", site: site, collection: collection)
3838
document.content = "**Hi**\n" \

0 commit comments

Comments
 (0)