提交 31f007f7 编写于 作者: D Dmitriy Zaporozhets

Fix skipping of some elements in makrdown

上级 36b2f2e3
......@@ -115,15 +115,17 @@ module Gitlab
suffix = $~[:suffix]
type = TYPES.select{|t| !$~[t].nil?}.first
next unless type
identifier = $~[type]
# Avoid HTML entities
if prefix && suffix && prefix[0] == '&' && suffix[-1] == ';'
match
elsif ref_link = reference_link(type, identifier)
"#{prefix}#{ref_link}#{suffix}"
if type
identifier = $~[type]
# Avoid HTML entities
if prefix && suffix && prefix[0] == '&' && suffix[-1] == ';'
match
elsif ref_link = reference_link(type, identifier)
"#{prefix}#{ref_link}#{suffix}"
else
match
end
else
match
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册