Proxy Convertible#transform to Renderer

This commit is contained in:
Parker Moore 2016-08-30 14:14:03 -07:00
parent 741102bd40
commit d0f57b61d4
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 1 additions and 12 deletions

View File

@ -76,18 +76,7 @@ module Jekyll
# #
# Returns the transformed contents. # Returns the transformed contents.
def transform def transform
converters.reduce(content) do |output, converter| _renderer.transform
begin
converter.convert output
rescue => e
Jekyll.logger.error(
"Conversion error:",
"#{converter.class} encountered an error while converting '#{path}':"
)
Jekyll.logger.error("", e.to_s)
raise e
end
end
end end
# Determine the extension depending on content_type. # Determine the extension depending on content_type.