ghpreview 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ module GHPreview
10
10
 
11
11
  pipeline = HTML::Pipeline.new([
12
12
  HTML::Pipeline::MarkdownFilter,
13
+ HTML::Pipeline::TableOfContentsFilter,
13
14
  HTML::Pipeline::SanitizationFilter,
14
15
  HTML::Pipeline::ImageMaxWidthFilter,
15
16
  HTML::Pipeline::HttpsFilter,
@@ -1,3 +1,3 @@
1
1
  module GHPreview
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -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('# Foo')).to eql('<h1>Foo</h1>')
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('# Baña')).to eql('<h1>Baña</h1>')
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.8
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-06-22 00:00:00.000000000 Z
12
+ date: 2013-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: listen