Class: Tufte::Markdown
- Inherits:
-
Object
- Object
- Tufte::Markdown
- Defined in:
- lib/tufte/markdown.rb
Instance Method Summary collapse
-
#initialize(markdown, renderer: HTML.renderer) ⇒ Markdown
constructor
A new instance of Markdown.
- #to_html ⇒ Object
Constructor Details
Instance Method Details
#to_html ⇒ Object
20 21 22 |
# File 'lib/tufte/markdown.rb', line 20 def to_html @renderer.render(@markdown) end |