Class: Mumukit::ContentType::Markdown::HTML
- Inherits:
-
Emoji::Render
- Object
- Redcarpet::Render::HTML
- Emoji::Render
- Mumukit::ContentType::Markdown::HTML
- Includes:
- Rouge::Plugins::Redcarpet
- Defined in:
- lib/mumukit/content_type/markdown.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Emoji::Render
#initialize, #list_item, #paragraph, #replace_emoji
Constructor Details
This class inherits a constructor from Mumukit::ContentType::Emoji::Render
Instance Method Details
#link(link, title, content) ⇒ Object
15 16 17 |
# File 'lib/mumukit/content_type/markdown.rb', line 15 def link(link, title, content) "<a title=\"#{title}\" href=\"#{link}\" target=\"_blank\">#{content}</a>" end |
#table(header, body) ⇒ Object
11 12 13 |
# File 'lib/mumukit/content_type/markdown.rb', line 11 def table(header, body) "<table class=\"table\"><thead>\n#{header}</thead><tbody>\n#{body}</tbody></table>\n" end |