From 5344e44a331efceb3b6b67cb78cc30a333b03c19 Mon Sep 17 00:00:00 2001 From: Aaron Gustafson Date: Thu, 17 Mar 2016 14:10:27 -0400 Subject: [PATCH] Added fork for Jekyll API change --- webmention_io.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/webmention_io.rb b/webmention_io.rb index 9686555..f2bcef0 100644 --- a/webmention_io.rb +++ b/webmention_io.rb @@ -46,7 +46,15 @@ def render(context) response = get_response(api_params) site = context.registers[:site] - @converter = site.getConverterImpl(::Jekyll::Converters::Markdown) + + # post Jekyll commit 0c0aea3 + # https://github.com/jekyll/jekyll/commit/0c0aea3ad7d2605325d420a23d21729c5cf7cf88 + if defined? site.find_converter_instance + @converter = @site.find_converter_instance(::Jekyll::Converters::Markdown) + # Prior to Jekyll commit 0c0aea3 + else + @converter = @site.getConverterImpl(::Jekyll::Converters::Markdown) + end html_output_for(response) end