Skip to content

Commit

Permalink
Do not gsub non ASCII characters in header anchor.
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanitoFatas committed May 22, 2014
1 parent 6ffe929 commit 699babe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions guides/rails_guides/markdown.rb
Expand Up @@ -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
Expand Down

0 comments on commit 699babe

Please sign in to comment.