Mon, 18 May 2009 01:21:10 +0100
Initial commit
0 | 1 | parsers = {}; |
2 | ||
3 | function parsers.text(text) | |
4 | --FIXME: HTML-escape | |
5 | return text; | |
6 | end | |
7 | ||
8 | local markdown = require "LuaTemplates.markdown" | |
9 | function parsers.markdown(text) | |
10 | return markdown(text); | |
11 | end | |
12 | ||
13 | ||
14 | local textile = require "LuaTemplates.textile" | |
15 | function parsers.textile(text) | |
16 | return textile(text); | |
17 | end | |
18 | ||
19 | return parsers; |