diff --git a/lib/maildown/markdown_engine.rb b/lib/maildown/markdown_engine.rb index 7cc5354..d1c0bca 100644 --- a/lib/maildown/markdown_engine.rb +++ b/lib/maildown/markdown_engine.rb @@ -21,10 +21,12 @@ module MarkdownEngine @maildown_markdown_engine_text_block = nil def self.to_html(string) + string = string.to_s if string.ia_a?(ActionView::OutputBuffer) # Needed for Rails 7.1 support. See https://github.com/zombocom/maildown/pull/71 html_block.call(string) end def self.to_text(string) + string = string.to_s if string.ia_a?(ActionView::OutputBuffer) # Needed for Rails 7.1 support. See https://github.com/zombocom/maildown/pull/71 text_block.call(string) end