app/models/stenographer/change.rb in stenographer-rails-0.7.1 vs app/models/stenographer/change.rb in stenographer-rails-0.7.3
- old
+ new
@@ -19,11 +19,12 @@
environments_array.uniq!
environments_array.join(', ')
end
end
- def to_markdown
- Stenographer.markdown_renderer.render(message).html_safe
+ def to_markdown(truncate: nil)
+ msg = truncate ? message.truncate(truncate) : message
+ Stenographer.markdown_renderer.render(msg).html_safe
end
def matches_filters(output = nil)
return false if output.blank?