diff --git a/lib/github-pages/dependencies.rb b/lib/github-pages/dependencies.rb index 932f4cf6..a97c879c 100644 --- a/lib/github-pages/dependencies.rb +++ b/lib/github-pages/dependencies.rb @@ -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 diff --git a/spec/fixtures/kramdown-parser-gfm.md b/spec/fixtures/kramdown-parser-gfm.md new file mode 100644 index 00000000..fa8c7e25 --- /dev/null +++ b/spec/fixtures/kramdown-parser-gfm.md @@ -0,0 +1,6 @@ +--- +--- + +# Test + +~~Nope~~Yes diff --git a/spec/fixtures/kramdown.md b/spec/fixtures/kramdown.md index ef355dc0..6ab7ec60 100644 --- a/spec/fixtures/kramdown.md +++ b/spec/fixtures/kramdown.md @@ -2,3 +2,7 @@ --- # Test + +### Math + +$$a^2 + b^2 = c^2$$ diff --git a/spec/github-pages/dependencies_spec.rb b/spec/github-pages/dependencies_spec.rb index 1e592eb0..619e9739 100644 --- a/spec/github-pages/dependencies_spec.rb +++ b/spec/github-pages/dependencies_spec.rb @@ -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 diff --git a/spec/github-pages/integration_spec.rb b/spec/github-pages/integration_spec.rb index 0e7c097d..339277bd 100644 --- a/spec/github-pages/integration_spec.rb +++ b/spec/github-pages/integration_spec.rb @@ -93,6 +93,16 @@ def rm_destination it "converts markdown to HTML" do expect(contents).to match('

Test

') 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("NopeYes") + end end context "liquid" do