mort666-pricetag 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -54,10 +54,10 @@ module PriceTag
54
54
  case style
55
55
  when :setext
56
56
  separator = (tag == :h1 ? "=" : "-")
57
- "#{node.text}\n#{separator * node.text.length}"
57
+ "#{node.text}\n#{separator * node.text.length}\n"
58
58
  when :atx
59
59
  octothorps = "#" * level_for_heading(node)
60
- "#{octothorps} #{node.text}"
60
+ "#{octothorps} #{node.text}\n"
61
61
  end
62
62
  when :li
63
63
  indentation = "\t" * (indentation_level_for_list_item(node) - 1)
@@ -93,9 +93,9 @@ module PriceTag
93
93
  else
94
94
  "![#{node['alt']}](#{node['href']})"
95
95
  end
96
- when :em
96
+ when :em, :i
97
97
  "_#{node.text}_"
98
- when :strong
98
+ when :strong, :b
99
99
  "**#{node.text}**"
100
100
  when :pre
101
101
  node.text.match(/^\t/) ? node.text : node.to_s
@@ -1,3 +1,3 @@
1
1
  module PriceTag
2
- Version = VERSION = '0.1.6'
2
+ Version = VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mort666-pricetag
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mattt Thompson