Skip to content
Browse files

Do not gsub non ASCII characters in header anchor.

  • Loading branch information...
1 parent 6ffe929 commit 699babe8e30e9e2e9345c3117e404dff1e62c049 @JuanitoFatas JuanitoFatas committed May 22, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 guides/rails_guides/markdown.rb
View
3 guides/rails_guides/markdown.rb
@@ -47,8 +47,7 @@ def dom_id(nodes)
end
def dom_id_text(text)
- text.downcase.gsub(/\?/, '-questionmark').gsub(/!/, '-bang').gsub(/[^a-z0-9]+/, ' ')
- .strip.gsub(/\s+/, '-')
+ text.downcase.gsub(/\?/, '-questionmark').gsub(/!/, '-bang').gsub(/\s+/, '-')
end
def engine

0 comments on commit 699babe

Please sign in to comment.
Something went wrong with that request. Please try again.