parent
5925c1a531
commit
c7a99f276c
|
@ -106,7 +106,6 @@
|
||||||
* Drop support for pygments as syntax-highlighter (#7118)
|
* Drop support for pygments as syntax-highlighter (#7118)
|
||||||
* Add Cache class (#7169)
|
* Add Cache class (#7169)
|
||||||
* Cache converted markdown (#7159)
|
* Cache converted markdown (#7159)
|
||||||
* Cache converter in renderer (#7183)
|
|
||||||
* Ignore cache directory (#7184)
|
* Ignore cache directory (#7184)
|
||||||
|
|
||||||
### Development Fixes
|
### Development Fixes
|
||||||
|
|
|
@ -96,17 +96,15 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns String the converted content.
|
# Returns String the converted content.
|
||||||
def convert(content)
|
def convert(content)
|
||||||
Jekyll::Cache.new("Jekyll::Renderer").getset(content) do
|
converters.reduce(content) do |output, converter|
|
||||||
converters.reduce(content) do |output, converter|
|
begin
|
||||||
begin
|
converter.convert output
|
||||||
converter.convert output
|
rescue StandardError => e
|
||||||
rescue StandardError => e
|
Jekyll.logger.error "Conversion error:",
|
||||||
Jekyll.logger.error "Conversion error:",
|
"#{converter.class} encountered an error while "\
|
||||||
"#{converter.class} encountered an error while "\
|
"converting '#{document.relative_path}':"
|
||||||
"converting '#{document.relative_path}':"
|
Jekyll.logger.error("", e.to_s)
|
||||||
Jekyll.logger.error("", e.to_s)
|
raise e
|
||||||
raise e
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue