PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/test/marks/title.t2t

http://txt2tags.googlecode.com/
Unknown | 39 lines | 34 code | 5 blank | 0 comment | 0 complexity | abbbd2ae769628b6cd3304cdd84e9f4f MD5 | raw file
 1
 2%!includeconf: test.conf
 3BODYINIT
 4
 5%%% Syntax: Balanced equal signs (from 1 to 5)
 6= Title Level 1 =
 7== Title Level 2 ==
 8=== Title Level 3 ===
 9==== Title Level 4 ====
10===== Title Level 5 =====
11%%% Label: Between brackets, alphanumeric [A-Za-z0-9_-]
12= Title Level 1 =[lab_el-1]
13== Title Level 2 ==[lab_el-2]
14=== Title Level 3 ===[lab_el-3]
15==== Title Level 4 ====[lab_el-4]
16===== Title Level 5 =====[lab_el-5]
17%%% Syntax: Spaces around and/or inside are allowed (and ignored)
18     ===Title Level 3===    
19    === Title Level 3 ===    
20   ===  Title Level 3  ===   
21===     Title Level 3      ===
22===          Title Level 3 ===
23   ===  Title Level 3  ===[lab_el-9]   
24%%% Invalid: Unbalanced equal signs
25      =Not Title
26
27     ==Not Title=
28
29    ===Not Title====
30%%% Invalid: Level deeper than 5
31 ======Not Title 6======
32
33=======Not Title 7=======
34%%% Invalid: Space between title and label
35=Not Title= [label1]
36%%% Invalid: Space inside label
37=Not Title=[ label ]
38%%% Invalid: Strange chars inside label
39=Not Title=[la/bel]