lib/plutonium/ui/display/component/markdown.rb in plutonium-0.15.21 vs lib/plutonium/ui/display/component/markdown.rb in plutonium-0.15.22

- old
+ new

@@ -14,9 +14,19 @@ def render_value(value) article(**attributes) do unsafe_raw RENDERER.render(value) end end + + private + + def normalize_value(value) + if value.respond_to?(:to_plain_text) + value.to_plain_text + else + value.to_s + end + end end end end end end