提交 39473053 编写于 作者: R Rafael Mendonça França

Merge pull request #15242 from JuanitoFatas/guides-anchor

[Guides] Do not gsub non ASCII characters in header anchor.
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册