Skip to content

Commit

Permalink
Merge pull request #704 from github/hubot/jekyll-v3-9-0
Browse files Browse the repository at this point in the history
Bump jekyll to v3.9.0, kramdown to v2.3.0
  • Loading branch information
parkr committed Aug 7, 2020
2 parents 3716171 + 044a9e1 commit f8d7345
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/github-pages/dependencies.rb
Expand Up @@ -7,11 +7,12 @@ module GitHubPages
class Dependencies
VERSIONS = {
# Jekyll
"jekyll" => "3.8.7",
"jekyll" => "3.9.0",
"jekyll-sass-converter" => "1.5.2",

# Converters
"kramdown" => "1.17.0",
"kramdown" => "2.3.0",
"kramdown-parser-gfm" => "1.1.0",
"jekyll-commonmark-ghpages" => "0.1.6",

# Misc
Expand Down
6 changes: 6 additions & 0 deletions spec/fixtures/kramdown-parser-gfm.md
@@ -0,0 +1,6 @@
---
---

# Test

~~Nope~~Yes
4 changes: 4 additions & 0 deletions spec/fixtures/kramdown.md
Expand Up @@ -2,3 +2,7 @@
---

# Test

### Math

$$a^2 + b^2 = c^2$$
2 changes: 1 addition & 1 deletion spec/github-pages/dependencies_spec.rb
Expand Up @@ -4,7 +4,7 @@

describe(GitHubPages::Dependencies) do
CORE_DEPENDENCIES = %w(
jekyll kramdown liquid rouge jekyll-sass-converter
jekyll kramdown kramdown-parser-gfm liquid rouge jekyll-sass-converter
github-pages-health-check
).freeze
PLUGINS = described_class::VERSIONS.keys - CORE_DEPENDENCIES
Expand Down
10 changes: 10 additions & 0 deletions spec/github-pages/integration_spec.rb
Expand Up @@ -93,6 +93,16 @@ def rm_destination
it "converts markdown to HTML" do
expect(contents).to match('<h1 id="test">Test</h1>')
end

it "converts math to mathjax" do
expect(contents).to include('\[a^2 + b^2 = c^2\]')
end
end

context "kramdown-parser-gfm" do
it "converts GFM to HTML" do
expect(contents).to match("<del>Nope</del>Yes")
end
end

context "liquid" do
Expand Down

0 comments on commit f8d7345

Please sign in to comment.