markdownizer 0.3.5 → 0.3.6

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdownizer (0.3.4)
4
+ markdownizer (0.3.5)
5
5
  activerecord (>= 3.0.3)
6
6
  coderay
7
7
  rdiscount
data/lib/markdownizer.rb CHANGED
@@ -86,7 +86,7 @@ module Markdownizer
86
86
  # To parse the markdown in a coherent hierarchical context, you must provide it
87
87
  # with the current hierarchical level of the text to be parsed.
88
88
  def markdown(text, hierarchy = 0)
89
- text.gsub! %r[^(\s*)(#+)([\w\s]+)$] do
89
+ text.gsub! %r[^(\s*)(#+)(.+)$] do
90
90
  $1 << ('#' * hierarchy) << $2 << $3
91
91
  end
92
92
  text.gsub!("\\#",'#')
@@ -1,3 +1,3 @@
1
1
  module Markdownizer
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 5
9
- version: 0.3.5
8
+ - 6
9
+ version: 0.3.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Josep M. Bach