Module: Jekyll::PDF::Helper
Instance Method Summary collapse
Instance Method Details
#fix_relative_paths ⇒ Object
4 5 6 |
# File 'lib/jekyll/pdf/helper.rb', line 4 def fix_relative_paths output.gsub!(/(href|src)=(['"])\/([^\/"']([^\"']*|[^"']*))?['"]/, "\\1=\\2file://#{site.dest}/\\3\\2") if output != nil end |