[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / plugins-dist / textwheel / wheels / spip / spip-listes.yaml
1 --- # Syntaxe des raccourcis SPIP, version 0.0.1
2 #
3 # Si on nomme une regle, elle devient surchargeable
4
5 -
6 if_match: "/\n-[*#]/S"
7 type: all
8 is_wheel: Y
9 replace:
10
11 listes-decoupe-para:
12 match: "\n\n"
13 type: split
14 is_wheel: Y
15 replace:
16
17 liste-check:
18 if_str: "-"
19 if_match: "/-[*#]/S"
20 is_wheel: Y
21 type: all
22 replace:
23 liste-prepend:
24 type: all
25 replace: "\n$0"
26 liste-p-init:
27 type: all
28 replace: tw_liste_init
29 is_callback: Y
30 liste-p-item:
31 # premiere parenthese ne compte pas dans la profondeur
32 # capture * deuxieme parenthese : ul
33 # capture # deuxieme parenthese : ol
34 # nombre de car dans la 2eme parenthese = profondeur
35 match: ",(\n-)(\*+|\#+)([^*#].*)(?=(?:\z|\n-)),UsS"
36 replace: tw_liste_item
37 is_callback: Y
38 liste-p-close:
39 type: all
40 replace: tw_liste_close
41 is_callback: Y
42
43 -
44 if_match: "/\n-( )?[\?!]\s/S"
45 type: all
46 is_wheel: Y
47 replace:
48 listes-decoupe-para2:
49 match: "\n\n"
50 type: split
51 is_wheel: Y
52 replace:
53 def-check:
54 if_str: "-"
55 if_match: "/-( )?[!\?]\s/S"
56 is_wheel: Y
57 type: all
58 replace:
59 def-wrap:
60 type: all
61 is_callback: Y
62 replace: tw_def_wrap
63 def-p-titre:
64 match: ",(\n-( )?\?\s+)(.*)(?=(\z|\n-)),UsS"
65 replace: "<dt>$3</dt>"
66 def-p-desc:
67 match: ",(\n-(&nbsp;)?!\s+)(.*)(?=(<dt>|</dl>|\z|\n-)),UsS"
68 replace: "<dd>$3</dd>"
69