Added Markdown and Textile support. Added more tests.