8b02589d007a81bca2fb72b22aa892e714cf9733
[lhc/web/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 # Feu les dl/dt/dd via -? -! cf https://core.spip.net/issues/1934
44 definitions-disabled:
45 if_match: "/\n-( )?[\?!]\s/S"
46 type: all
47 disabled: Y
48 is_wheel: Y
49 replace:
50 listes-decoupe-para2:
51 match: "\n\n"
52 type: split
53 is_wheel: Y
54 replace:
55 def-check:
56 if_str: "-"
57 if_match: "/-( )?[!\?]\s/S"
58 is_wheel: Y
59 type: all
60 replace:
61 def-wrap:
62 type: all
63 is_callback: Y
64 replace: tw_def_wrap
65 def-p-titre:
66 match: ",(\n-( )?\?\s+)(.*)(?=(\z|\n-)),UsS"
67 replace: "<dt>$3</dt>"
68 def-p-desc:
69 match: ",(\n-(&nbsp;)?!\s+)(.*)(?=(<dt>|</dl>|\z|\n-)),UsS"
70 replace: "<dd>$3</dd>"
71