markdownizer 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/markdownizer.rb +1 -1
- data/lib/markdownizer/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
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*)(#+)(
|
89
|
+
text.gsub! %r[^(\s*)(#+)(.+)$] do
|
90
90
|
$1 << ('#' * hierarchy) << $2 << $3
|
91
91
|
end
|
92
92
|
text.gsub!("\\#",'#')
|
data/lib/markdownizer/version.rb
CHANGED