qiita-markdown 0.29.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of qiita-markdown might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/qiita/markdown/version.rb +1 -1
- data/qiita-markdown.gemspec +1 -1
- data/spec/qiita/markdown/processor_spec.rb +20 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42cc63e59c291528b6941557bab180be94412a558f0c24870542ea77527fad9f
|
4
|
+
data.tar.gz: b777d78995b04138e71ece8dec23ef25b186264592edadbf9269aa5a782931bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c3bd31ede849e9e75d07527de512df7dbe4f4ce3d72bc0e2de82820ce83324c5f4f9473672b3ee35e4e7f4136d613d033f225e95e30318e61deed43757b6aea
|
7
|
+
data.tar.gz: aed9e848764dad909246821c8e30074c7317496fcfe5dd89fb374d693e39c43da0a4c71e957d3f6764cb89199d27ac2e17c161abda8aeb0333568f96d2644475
|
data/CHANGELOG.md
CHANGED
data/qiita-markdown.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency "html-pipeline", "~> 2.0"
|
24
24
|
spec.add_dependency "mem"
|
25
25
|
spec.add_dependency "pygments.rb", "~> 1.0"
|
26
|
-
spec.add_dependency "greenmat", "3.
|
26
|
+
spec.add_dependency "greenmat", "3.5.1.0"
|
27
27
|
spec.add_dependency "sanitize"
|
28
28
|
spec.add_dependency "addressable"
|
29
29
|
spec.add_development_dependency "activesupport", "4.2.6"
|
@@ -740,7 +740,7 @@ describe Qiita::Markdown::Processor do
|
|
740
740
|
|
741
741
|
it "generates footnotes elements" do
|
742
742
|
should eq <<-HTML.strip_heredoc
|
743
|
-
<p><sup id="fnref1"><a href="#fn1"
|
743
|
+
<p><sup id="fnref1"><a href="#fn1" title="test">1</a></sup></p>
|
744
744
|
|
745
745
|
<div class="footnotes">
|
746
746
|
<hr>
|
@@ -756,6 +756,25 @@ describe Qiita::Markdown::Processor do
|
|
756
756
|
end
|
757
757
|
end
|
758
758
|
|
759
|
+
context "with footenotes syntax with code block" do
|
760
|
+
let(:markdown) do
|
761
|
+
<<-MARKDOWN.strip_heredoc
|
762
|
+
```
|
763
|
+
[^1]
|
764
|
+
[^1]: test
|
765
|
+
```
|
766
|
+
MARKDOWN
|
767
|
+
end
|
768
|
+
|
769
|
+
it "generates only code blocks without footnotes" do
|
770
|
+
should eq <<-HTML.strip_heredoc
|
771
|
+
<div class="code-frame" data-lang="text"><div class="highlight"><pre><span></span>[^1]
|
772
|
+
[^1]: test
|
773
|
+
</pre></div></div>
|
774
|
+
HTML
|
775
|
+
end
|
776
|
+
end
|
777
|
+
|
759
778
|
context "with manually written link inside of <sup> tag" do
|
760
779
|
let(:markdown) do
|
761
780
|
<<-MARKDOWN.strip_heredoc
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qiita-markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gemoji
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 3.
|
89
|
+
version: 3.5.1.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 3.
|
96
|
+
version: 3.5.1.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: sanitize
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|