prarupa 0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/prarupa/text_helpers.rb +4 -4
- data/lib/prarupa/version.rb +1 -1
- metadata +3 -2
data/lib/prarupa/text_helpers.rb
CHANGED
|
@@ -32,8 +32,8 @@ module Prarupa
|
|
|
32
32
|
""
|
|
33
33
|
else
|
|
34
34
|
textilized = RedCloth.new(text, options)
|
|
35
|
-
textilized.to_html
|
|
36
|
-
end
|
|
35
|
+
textilized.to_html
|
|
36
|
+
end.html_safe
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
# Returns the text with all the Textile codes turned into HTML tags,
|
|
@@ -85,8 +85,8 @@ module Prarupa
|
|
|
85
85
|
""
|
|
86
86
|
else
|
|
87
87
|
markdowned = RDiscount.new(text, *options)
|
|
88
|
-
markdowned.to_html.chomp
|
|
89
|
-
end
|
|
88
|
+
markdowned.to_html.chomp #used chomp to remove the \n appended by RDiscount
|
|
89
|
+
end.html_safe
|
|
90
90
|
end
|
|
91
91
|
end
|
|
92
92
|
end
|
data/lib/prarupa/version.rb
CHANGED
metadata
CHANGED
|
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.1.1
|
|
9
10
|
platform: ruby
|
|
10
11
|
authors:
|
|
11
12
|
- Rohit Arondekar
|
|
@@ -13,7 +14,7 @@ autorequire:
|
|
|
13
14
|
bindir: bin
|
|
14
15
|
cert_chain: []
|
|
15
16
|
|
|
16
|
-
date: 2010-06-
|
|
17
|
+
date: 2010-06-11 00:00:00 +05:30
|
|
17
18
|
default_executable:
|
|
18
19
|
dependencies:
|
|
19
20
|
- !ruby/object:Gem::Dependency
|