提交 699babe8 编写于 作者: J Juanito Fatas

Do not gsub non ASCII characters in header anchor.

上级 6ffe9293
......@@ -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.
先完成此消息的编辑!
想要评论请 注册