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 +1 -1
- data/lib/pricetag/processors/markdown.rb +4 -4
- data/lib/pricetag/version.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
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
|
data/lib/pricetag/version.rb
CHANGED
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mattt Thompson
|