Skip to content
Snippets Groups Projects
Commit 31f007f7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix skipping of some elements in makrdown

parent 36b2f2e3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment