Convert input to string before markdownify or smartify
This commit is contained in:
parent
5dfaa66d48
commit
714c99b418
|
@ -13,7 +13,7 @@ module Jekyll
|
||||||
def markdownify(input)
|
def markdownify(input)
|
||||||
site = @context.registers[:site]
|
site = @context.registers[:site]
|
||||||
converter = site.find_converter_instance(Jekyll::Converters::Markdown)
|
converter = site.find_converter_instance(Jekyll::Converters::Markdown)
|
||||||
converter.convert(input)
|
converter.convert(input.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Convert quotes into smart quotes.
|
# Convert quotes into smart quotes.
|
||||||
|
@ -24,7 +24,7 @@ module Jekyll
|
||||||
def smartify(input)
|
def smartify(input)
|
||||||
site = @context.registers[:site]
|
site = @context.registers[:site]
|
||||||
converter = site.find_converter_instance(Jekyll::Converters::SmartyPants)
|
converter = site.find_converter_instance(Jekyll::Converters::SmartyPants)
|
||||||
converter.convert(input)
|
converter.convert(input.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Convert a Sass string into CSS output.
|
# Convert a Sass string into CSS output.
|
||||||
|
|
Loading…
Reference in New Issue