mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
readme中变量图片相对路径
This commit is contained in:
@@ -166,6 +166,9 @@ module RepositoriesHelper
|
||||
content = content.gsub("src=\"#{s[0]}\"", "src=\"/#{s_content}\"")
|
||||
when 'ss_src_1'
|
||||
content = content.gsub("src=\'#{s[0]}\'", "src=\'/#{s_content}\'")
|
||||
when 'ss_2'
|
||||
img_regex = s[0].gsub(" ", "")
|
||||
content = content.gsub(/]:#{img_regex}/, "]: #{s_content}")
|
||||
else
|
||||
content = content.gsub("(#{s[0]})", "(/#{s_content})")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user