зеркало из https://github.com/github/pages-gem.git
Merge pull request #704 from github/hubot/jekyll-v3-9-0
Bump jekyll to v3.9.0, kramdown to v2.3.0
This commit is contained in:
Коммит
f8d73456cb
|
@ -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
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
---
|
||||
|
||||
# Test
|
||||
|
||||
~~Nope~~Yes
|
|
@ -2,3 +2,7 @@
|
|||
---
|
||||
|
||||
# Test
|
||||
|
||||
### Math
|
||||
|
||||
$$a^2 + b^2 = c^2$$
|
||||
|
|
|
@ -4,7 +4,7 @@ require "spec_helper"
|
|||
|
||||
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
|
||||
|
|
|
@ -93,6 +93,16 @@ RSpec.describe "Pages Gem Integration spec" do
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче