Sat, 11 Jul 2009 03:37:48 +0100
Strip trailing punctuation from short titles
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; |