зеркало из https://github.com/github/pages-gem.git
Upgrade to kramdown v2 and add kramdown-parser-gfm to allow GFM input
This commit is contained in:
Родитель
597b1405d9
Коммит
aaf0227d2c
|
@ -11,7 +11,8 @@ module GitHubPages
|
|||
"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
|
|
@ -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
|
||||
|
|
|
@ -95,6 +95,12 @@ RSpec.describe "Pages Gem Integration spec" do
|
|||
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
|
||||
it "renders liquid templates" do
|
||||
expect(contents).to match("Value of foo: bar")
|
||||
|
|
Загрузка…
Ссылка в новой задаче