Class: Quiver::Cell::Markdown
- Inherits:
-
Quiver::Cell
- Object
- Quiver::Cell
- Quiver::Cell::Markdown
- Defined in:
- lib/quiver/cell.rb
Instance Method Summary collapse
-
#initialize(note, json) ⇒ Markdown
constructor
A new instance of Markdown.
- #to_html ⇒ Object
Constructor Details
#initialize(note, json) ⇒ Markdown
Returns a new instance of Markdown.
14 15 16 17 18 19 |
# File 'lib/quiver/cell.rb', line 14 def initialize(note, json) super @data.gsub!(%r|quiver-image-url/([^)]+)|) do |path| @note.image_url(path) end end |