File "spip-listes.yaml"
Full path: /home/argothem/www/v4_old/plugins-dist/textwheel/wheels/spip/spip-listes.yaml
File size: 1.1 KB
MIME-type: text/plain
Charset: utf-8
--- # Syntaxe des raccourcis SPIP, version 0.0.1
#
# Si on nomme une regle, elle devient surchargeable
-
if_match: "/\n-[*#]/S"
type: all
is_wheel: Y
replace:
listes-decoupe-para:
match: "\n\n"
type: split
is_wheel: Y
replace:
liste-check:
if_str: "-"
if_match: "/-[*#]/S"
is_wheel: Y
type: all
replace:
liste-prepend:
type: all
replace: "\n$0"
liste-p-init:
type: all
replace: tw_liste_init
is_callback: Y
liste-p-item:
# premiere parenthese ne compte pas dans la profondeur
# capture * deuxieme parenthese : ul
# capture # deuxieme parenthese : ol
# nombre de car dans la 2eme parenthese = profondeur
match: ",(\n-)(\*+|\#+)([^*#].*)?(?=(?:\z|\n-)),UsS"
replace: tw_liste_item
is_callback: Y
liste-p-close:
type: all
replace: tw_liste_close
is_callback: Y