ghpreview 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ghpreview/converter.rb +1 -0
- data/lib/ghpreview/version.rb +1 -1
- data/spec/converter_spec.rb +6 -2
- metadata +2 -2
data/lib/ghpreview/converter.rb
CHANGED
data/lib/ghpreview/version.rb
CHANGED
data/spec/converter_spec.rb
CHANGED
@@ -6,10 +6,14 @@ describe GHPreview::Converter do
|
|
6
6
|
let(:converter) { GHPreview::Converter }
|
7
7
|
|
8
8
|
it "converts markdown to HTML" do
|
9
|
-
expect(converter.to_html('
|
9
|
+
expect(converter.to_html('*Foo*')).to eql('<p><em>Foo</em></p>')
|
10
|
+
end
|
11
|
+
|
12
|
+
it "includes anchor links in headings" do
|
13
|
+
expect(converter.to_html('# Foo')).to eql("<h1>\n<a name=\"foo\" href=\"#foo\"></a>Foo</h1>")
|
10
14
|
end
|
11
15
|
|
12
16
|
it "passes through non-ASCII characters" do
|
13
|
-
expect(converter.to_html('
|
17
|
+
expect(converter.to_html('Baña')).to eql('<p>Baña</p>')
|
14
18
|
end
|
15
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghpreview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: listen
|