generic text markup tools
Revision | 569c9f1a76a1b2b8b8257791d9fd95ab75b3cb25 (tree) |
---|---|
Time | 2013-11-15 20:26:24 |
Author | hylom <hylom@hylo...> |
Commiter | hylom |
implementing ctable extension
@@ -0,0 +1,32 @@ | ||
1 | +{ | |
2 | + "rules": { | |
3 | + "ctable": { | |
4 | + "extends": "table", | |
5 | + "rules": { | |
6 | + "tableRow": { | |
7 | + "priority": 102, | |
8 | + "regexp": "^(.*)$", | |
9 | + "call:" ["ctable.tableRow", "$1"] | |
10 | + }, | |
11 | + "tableHeaderRow": { | |
12 | + "priority": 104, | |
13 | + "regexp": "^〓(.*)$", | |
14 | + "set": [ | |
15 | + "isHeader", | |
16 | + "yes" | |
17 | + ], | |
18 | + "call:" ["ctable.tableHeaderRow", "$1"] | |
19 | + }, | |
20 | + "tableCell": { | |
21 | + "priority": 103, | |
22 | + "regexp": "\\t", | |
23 | + "replace": "\\t" | |
24 | + } | |
25 | + }, | |
26 | + "onFinished": { | |
27 | + "call:" ["ctable.getTable"], | |
28 | + "insert": "${table}" | |
29 | + } | |
30 | + } | |
31 | + } | |
32 | +} | |
\ No newline at end of file |