File "spip-paragrapher.json"
Full path: /home/argothem/www/v4_old/plugins-dist/textwheel/wheels/spip/spip-paragrapher.json
File size: 1.94 KB
MIME-type: application/json
Charset: utf-8
{
"paragrapher-init-trim": {
"type": "all",
"is_callback": "y",
"replace": "trim"
},
"toujours-paragrapher": {
"type": "all",
"replace": "<p>$0"
},
"toujours-ouvrir": {
"if_str": "<\/",
"match": ",<\/(?:address|applet|article|aside|blockquote|button|center|d[ltd]|div|fieldset|fig(ure|caption)|footer|form|h[1-6r]|hgroup|head|header|iframe|li|map|marquee|nav|noscript|object|ol|pre|section|t(able|[rdh]|body|foot|extarea)|ul|script|style)[^>]*>\\s*?,UimsS",
"replace": "$0<p>"
},
"liens-block": {
"if_str": "<\/a>",
"type": "preg",
"match": ",(<a\\s[^>]*>)(.*)(<\/a>),Uims",
"is_callback": "Y",
"replace": "detecter_liens_blocs"
},
"li-ouvrir": {
"if_str": "<li",
"match": ",<li[^>]*>\\s*?,UimsS",
"replace": "$0<p>",
"disabled": "Y"
},
"ajouter-stop-p1": {
"if_str": "<p>",
"match": "\/^.*$\/msS",
"replace": "<p>$0<STOP P>"
},
"ajouter-stop-p2": {
"if_str": "<",
"match": ",<\/?p\\b\\s?(.*?)>,iS",
"replace": "<STOP P><p $1>"
},
"fermer-para-preg": {
"match": ",<p (.*)\\s*<(\/?)(stop p|address|applet|article|aside|blockquote|button|center|d[ltd]|div|fieldset|fig(ure|caption)|footer|form|h[1-6r]|hgroup|head|header|iframe|li|map|marquee|nav|noscript|object|ol|pre|section|t(able|[rdh]|body|foot|extarea)|ul|script|style)\\b,UimsS",
"replace": "<p $1<\/p>\n<$2$3",
"disabled": "Y"
},
"fermer-para-mano": {
"type": "all",
"is_callback": "Y",
"replace": "fermer_para_mano"
},
"supprimer-stop-p": {
"match": "<STOP P>",
"replace": "",
"type": "str"
},
"suppr-para-presque-vides": {
"match": ",<p [^>]*>(<(?:\/\\w+|\\w+[^>]*[^\/])>)<\/p>,S",
"replace": "$1"
},
"suppr-para-vides": {
"match": ",<p [^>]*>\\s*<\/p>\\s*,S",
"replace": ""
},
"renommer-para-normaux": {
"match": [
"\n<p >",
"<p >"
],
"replace": [
"\n<p>",
"\n<p>"
],
"type": "str"
}
}