From 714c99b418b03d7b131ebbafaf5e2e580d6d377d Mon Sep 17 00:00:00 2001 From: Pat Hawks Date: Sat, 28 May 2016 15:19:15 -0500 Subject: [PATCH] Convert input to string before markdownify or smartify --- lib/jekyll/filters.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/filters.rb b/lib/jekyll/filters.rb index 65fc7e41..3c5d125d 100644 --- a/lib/jekyll/filters.rb +++ b/lib/jekyll/filters.rb @@ -13,7 +13,7 @@ module Jekyll def markdownify(input) site = @context.registers[:site] converter = site.find_converter_instance(Jekyll::Converters::Markdown) - converter.convert(input) + converter.convert(input.to_s) end # Convert quotes into smart quotes. @@ -24,7 +24,7 @@ module Jekyll def smartify(input) site = @context.registers[:site] converter = site.find_converter_instance(Jekyll::Converters::SmartyPants) - converter.convert(input) + converter.convert(input.to_s) end # Convert a Sass string into CSS output.