提交 bf7b8cf6 编写于 作者: T Tony Jian

Revert "Make non English title indexable (such as Chinese or Japanese) using MD5."

This reverts commit 70e0edf0.
上级 70e0edf0
......@@ -59,9 +59,8 @@ def process(string, current_level=3, counters=[1])
def title_to_idx(title)
idx = title.strip.parameterize.sub(/^\d+/, '')
if idx.blank?
puts "BLANK ID: please put an explicit ID for section #{title}, as in h5(#my-id)" if warnings
idx = ("id-"+Digest::MD5.hexdigest(title.strip)).parameterize.sub(/^\d+/, '')
if warnings && idx.blank?
puts "BLANK ID: please put an explicit ID for section #{title}, as in h5(#my-id)"
end
idx
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册