Class: Serve::MarkdownHandler

Inherits:
FileTypeHandler show all
Defined in:
lib/serve/handlers/markdown_handler.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from FileTypeHandler

#content_type, extension, find, handlers, #initialize, #process

Constructor Details

This class inherits a constructor from Serve::FileTypeHandler

Instance Method Details

#parse(string) ⇒ Object



5
6
7
8
# File 'lib/serve/handlers/markdown_handler.rb', line 5

def parse(string)
  require 'bluecloth'
  "<html><body>#{ BlueCloth.new(string).to_html }</body></html>"
end