Class: Mumukit::ContentType::Markdown::HTML

Inherits:
Emoji::Render
  • Object
show all
Includes:
Rouge::Plugins::Redcarpet
Defined in:
lib/mumukit/content_type/markdown.rb

Direct Known Subclasses

OneLinerHTML

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



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