Module: Homeland::Markup

Defined in:
lib/homeland/markup.rb,
lib/homeland/markup/base.rb,
lib/homeland/markup/html.rb,
lib/homeland/markup/simple.rb,
lib/homeland/markup/markdown.rb

Defined Under Namespace

Classes: Base, Html, Markdown, Simple

Class Method Summary collapse

Class Method Details

.render(raw) ⇒ Object

Convert Topic, Reply content with custom format



10
11
12
13
14
# File 'lib/homeland/markup.rb', line 10

def render(raw)
  const_name = "Homeland::Markup::#{Homeland.config.markup.to_s.classify}"
  klass = const_name.constantize
  klass.render(raw)
end