Link to tex image at wiki base path

This commit is contained in:
Joshua Peek
2011-11-28 13:41:43 -06:00
parent fa20343253
commit ac24213d53
+1 -1
View File
@@ -98,7 +98,7 @@ module Gollum
def process_tex(data)
@texmap.each do |id, spec|
type, tex = *spec
out = %{<img src="/_tex.png?type=#{type}&data=#{Base64.encode64(tex).chomp}" alt="#{CGI.escapeHTML(tex)}">}
out = %{<img src="#{::File.join(@wiki.base_path, '_tex.png')}?type=#{type}&data=#{Base64.encode64(tex).chomp}" alt="#{CGI.escapeHTML(tex)}">}
data.gsub!(id, out)
end
data