Class: Administrate::Field::SimpleMarkdown
- Inherits:
-
Text
- Object
- Text
- Administrate::Field::SimpleMarkdown
- Defined in:
- lib/administrate/field/simple_markdown.rb
Defined Under Namespace
Classes: Engine
Instance Method Summary collapse
Instance Method Details
#to_html ⇒ Object
13 14 15 |
# File 'lib/administrate/field/simple_markdown.rb', line 13 def to_html markdown(html_renderer).render(data).html_safe end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/administrate/field/simple_markdown.rb', line 17 def to_s markdown(plaintext_renderer).render(data) end |