Because of this change in rails, the template source that gets passed into here could be an ActionView::OutputBuffer which doesn't respond to valid_encoding?. The quick fix here is to cast it into a string first.
I'm sorry but the quick fix here is to follow the kramdown API documentation and provide a string to the method and not an object from some some other library:
Because of this change in rails, the template source that gets passed into here could be an
ActionView::OutputBuffer
which doesn't respond tovalid_encoding?
. The quick fix here is to cast it into a string first.