Skip to content

Commit 425d2a6

Browse files
committed
Use greenmat 3.5.1.1
1 parent ae12ee5 commit 425d2a6

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Unreleased
22

3+
- Use greenmat 3.5.1.1
4+
35
## 0.30.0
46

57
- Use greenmat 3.5.1.0

qiita-markdown.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
2323
spec.add_dependency "html-pipeline", "~> 2.0"
2424
spec.add_dependency "mem"
2525
spec.add_dependency "pygments.rb", "~> 1.0"
26-
spec.add_dependency "greenmat", "3.5.1.0"
26+
spec.add_dependency "greenmat", "3.5.1.1"
2727
spec.add_dependency "sanitize"
2828
spec.add_dependency "addressable"
2929
spec.add_development_dependency "activesupport", "4.2.6"

spec/qiita/markdown/processor_spec.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,31 @@
10501050
end
10511051
end
10521052
end
1053+
1054+
context "with details tag" do
1055+
let(:markdown) do
1056+
<<-MARKDOWN.strip_heredoc
1057+
<details><summary>Folding sample</summary><div>
1058+
1059+
```rb
1060+
puts "Hello, World"
1061+
```
1062+
</div></details>
1063+
MARKDOWN
1064+
end
1065+
1066+
it "returns HTML output parsed as markdown" do
1067+
expect(subject).to eq <<-HTML.strip_heredoc
1068+
<p><details><summary>Folding sample</summary><div>
1069+
1070+
<div class="code-frame" data-lang="rb"><div class="highlight"><pre><span></span><span class="nb">puts</span> <span class="s2">"Hello, World"</span>
1071+
</pre></div></div>
1072+
1073+
<p></p>
1074+
</div></details></p>
1075+
HTML
1076+
end
1077+
end
10531078
end
10541079

10551080
shared_examples_for "script element" do |allowed:|

0 commit comments

Comments
 (0)