X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins-dist%2Ftextwheel%2Fwheels%2Fspip%2Fspip.yaml;h=0d85b83482e4306aa67220cadafd8adff0a5b55e;hp=1164afc6f5770830780129e8efa1bc8f80ddf841;hb=e847eea4a82a7396dd0abf860f9b30d654f38629;hpb=d686c3e22e97dd46ef42bcd0f138c65083f8f232 diff --git a/www/plugins-dist/textwheel/wheels/spip/spip.yaml b/www/plugins-dist/textwheel/wheels/spip/spip.yaml index 1164afc..0d85b83 100644 --- a/www/plugins-dist/textwheel/wheels/spip/spip.yaml +++ b/www/plugins-dist/textwheel/wheels/spip/spip.yaml @@ -85,6 +85,12 @@ puce: is_callback: Y priority: -20 # avant !paragraphes +br-inutile: + match: "/(^|^\n|\n\n)_ +/S" + replace: "$1" + if_str: "_ " + priority: -20 # avant !paragraphes + br: match: "/\n_ +/S" replace: "
" @@ -177,3 +183,15 @@ restaure-tags: match: ["\x1\x1", "\x1\x2", "\x1\x3", "\x1\x4"] replace: ['{', '}', '_', '-'] type: str + +echappe-chevron-solitaire: + # un < qui n'est pas suivi d'une lettre ou d'un / est toujours echappe + type: preg + match: "/<(?=[^a-z\/!])/Uims" + replace: "<" + +echappe-chevron-pas-ferme: + # un < suivi d'une lettre ou d'un / est echappe si il semble mal ferme + type: preg + match: "/<([^><\"'!]*)(?=<|$)/Uims" + replace: "<$1" \ No newline at end of file