module Hamdown::MdHandler

Module to recognize markdown patterns in text and compile it to html

Constants

OBJECTS

list of objects with rules: how to recognize markdown patterns by reg_ex how to replace it by html

Public Class Methods

perform(text = '') click to toggle source

render text (haml + html) to html

   # File lib/hamdown/md_handler.rb
32 def self.perform(text = '')
33   OBJECTS.each do |object|
34     text = object.new.perform(text)
35   end
36   text
37 end