Mon, 20 Jul 2009 23:49:43 +0100
Add publish command to jorvick
0 | 1 | parsers = {}; |
2 | ||
3 | function parsers.text(text) | |
4 | --FIXME: HTML-escape | |
5 | return text; | |
6 | end | |
7 | ||
12
4c759312950b
Update to modularise a little, and prepare for a system-wide installation support
Matthew Wild <mwild1@gmail.com>
parents:
0
diff
changeset
|
8 | local markdown = require "jorvick.parsers.markdown" |
0 | 9 | function parsers.markdown(text) |
10 | return markdown(text); | |
11 | end | |
12 | ||
13 | ||
12
4c759312950b
Update to modularise a little, and prepare for a system-wide installation support
Matthew Wild <mwild1@gmail.com>
parents:
0
diff
changeset
|
14 | local textile = require "jorvick.parsers.textile" |
0 | 15 | function parsers.textile(text) |
16 | return textile(text); | |
17 | end | |
18 | ||
19 | return parsers; |