markdownizer 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdownizer (0.3.3)
4
+ markdownizer (0.3.4)
5
5
  activerecord (>= 3.0.3)
6
6
  coderay
7
7
  rdiscount
data/lib/markdownizer.rb CHANGED
@@ -89,7 +89,7 @@ module Markdownizer
89
89
  text.gsub! %r[^(\s*)(#+)([\w\s]+)$] do
90
90
  $1 << ('#' * hierarchy) << $2 << $3
91
91
  end
92
- text.gsub!('\#','#')
92
+ text.gsub!("\\#",'#')
93
93
  RDiscount.new(text).to_html
94
94
  end
95
95
 
@@ -1,3 +1,3 @@
1
1
  module Markdownizer
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -44,6 +44,7 @@ describe Markdownizer do
44
44
  t.should_not =~ /###method/
45
45
  t.should =~ /#My comment/
46
46
  t.should_not =~ /###My comment/
47
+ t.should_not =~ /\\#My comment/
47
48
  t.should =~ /#####This is an H3/
48
49
  end.and_return result
49
50
  subject.markdown(my_text, 2)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 4
9
- version: 0.3.4
8
+ - 5
9
+ version: 0.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Josep M. Bach
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-02-15 00:00:00 +01:00
19
+ date: 2011-02-17 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency