diff --git a/Fix-test-error.patch b/Fix-test-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..7d95a1fec97b9954033aa4408d60a7e456b0ae8f --- /dev/null +++ b/Fix-test-error.patch @@ -0,0 +1,24 @@ +From ad48572d75299355563fc20ba1dd90cbec35ba81 Mon Sep 17 00:00:00 2001 +From: Ashwin Maroli +Date: Wed, 22 Jul 2020 23:33:50 +0530 +Subject: [PATCH] Update test expectation to reflect current result + +The change in generated markup is external to the GFM Parser: +kramdown-2.2.0 changed output of MathJax math engine to be compatible with +MathJax v2 and v3. + +Resolves https://github.com/kramdown/parser-gfm/issues/19 +--- + test/testcases/header_ids.html | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/testcases/header_ids.html b/test/testcases/header_ids.html +index b45fe8f..f2fb65f 100644 +--- a/test/testcases/header_ids.html ++++ b/test/testcases/header_ids.html +@@ -24,4 +24,4 @@ + +

with — « typographic » … symbols

+ +-

with

++

with \(m=5\)

diff --git a/rubygem-kramdown-parser-gfm.spec b/rubygem-kramdown-parser-gfm.spec index 2d4d33290c50658cfe4230b5b753634015f1c3e0..837eef0b0a9edbdb7fbe59ff6024939611c3cd98 100644 --- a/rubygem-kramdown-parser-gfm.spec +++ b/rubygem-kramdown-parser-gfm.spec @@ -2,10 +2,11 @@ Name: rubygem-%{gem_name} Summary: Kramdown parser for GitHub-flavored markdown Version: 1.1.0 -Release: 1 +Release: 2 License: MIT URL: https://github.com/kramdown/parser-gfm Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Patch0: Fix-test-error.patch BuildArch: noarch BuildRequires: ruby(release) rubygems-devel ruby >= 2.3 BuildRequires: rubygem(kramdown) >= 2.0.0 rubygem(minitest) rubygem(rouge) @@ -23,6 +24,7 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} +%patch0 -p1 %build gem build ../%{gem_name}-%{version}.gemspec @@ -53,5 +55,8 @@ popd %{gem_instdir}/test %changelog +* Wed Feb 09 2022 xu_ping - 1.1.0-2 +- Fix test Failure + * Tue Dec 15 2020 chengzihan - 1.1.0-1 - Package init