Class: RedcarpetCompat
- Inherits:
-
Object
- Object
- RedcarpetCompat
- Defined in:
- lib/redcarpet.rb
Overview
Compatibility class; Creates a instance of Redcarpet with the RedCloth API. This instance has no extensions enabled whatsoever, and no accessors to change this. 100% pure, standard Markdown.
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, *_dummy) ⇒ RedcarpetCompat
constructor
A new instance of RedcarpetCompat.
- #to_html(*_dummy) ⇒ Object
Constructor Details
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
62 63 64 |
# File 'lib/redcarpet.rb', line 62 def text @text end |
Instance Method Details
#to_html(*_dummy) ⇒ Object
69 70 71 |
# File 'lib/redcarpet.rb', line 69 def to_html(*_dummy) @markdown.render(@text) end |