--- # Syntaxe des raccourcis SPIP, version 0.0.1 # # Si on nomme une regle, elle devient surchargeable traiter_retours_chariots_1: # Harmonise les retours chariots et mange les paragraphes html if_chars: "\r" match: ",\r\n?,S" replace: "\n" priority: -40 # avant tout traiter_retours_chariots_2: if_str: "
[:space:]],iS" replace: "\n\n$0" priority: -40 # avant tout traiter_retours_chariots_3: if_str: "
[:space:]],iS" replace: "$0\n\n" priority: -40 # avant tout init-trim: # trim type: all is_callback: y replace: trim priority: -40 # avant tout init-saut: type: all replace: "\n$0" priority: -40 lignes-vides: match: ",^[ \t]+$,m" replace: "" priority: -35 # avant les tableaux tableaux: type: all # included subwheel with relative filepath replace: spip/spip-tableaux.yaml is_wheel: Y if_str: "\n|" priority: -30 # avant les raccourcis listes: if_str: "\n-" is_wheel: Y type: all replace: spip/spip-listes.yaml priority: -20 # avant !paragraphes echappe-tags: # voir restaure-tags plus bas match: ",?[a-z!][^<>]*?[{}_-][^<>]*>,imsS" if_chars: "{}_-" priority: -20 # avant !paragraphes is_wheel: Y replace: echappe-tags-sub: if_match: "/[{}]|\n[_-]|--/" match: ['{', '}', '_', '-'] replace: ["\x1\x1", "\x1\x2", "\x1\x3", "\x1\x4"] type: str ligne-horizontale: match: "/\n(----+|____+)/S" replace: "\n\n\n]*>)\n*(?:
\n*)+/S"]
replace: ['
', '
', '$1']
priority: 0
quote:
# raccourci ', ' ']
if_str: '
match: ['
', '
']
replace: [''
type: str
intro:
# suppr raccourci
@S"
replace: ''
if_str: "\n
(.*),UimsS"
replace: spip/spip-poesie.yaml
pick_match: 2
is_wheel: Y
if_str: '