#
# Si on nomme une regle, elle devient surchargeable
+math:
+ if_str: "<math>"
+ type: all
+ is_callback: y
+ replace: "replace_math"
+ priority: -50 # en tout premier : le contenu des formules math ne doit pas etre modifie
+
traiter_retours_chariots_1:
# Harmonise les retours chariots et mange les paragraphes html
if_chars: "\r"
replace: "\n"
priority: -40 # avant tout
-traiter_retours_chariots_2:
- if_str: "<p"
- match: ",<p[>[:space:]],iS"
- replace: "\n\n$0"
- priority: -40 # avant tout
-
-traiter_retours_chariots_3:
- if_str: "</p"
- match: ",</p[>[:space:]],iS"
- replace: "$0\n\n"
- priority: -40 # avant tout
-
init-trim:
# trim
type: all
replace: ["\x1\x1", "\x1\x2", "\x1\x3", "\x1\x4"]
type: str
+echappe-raccourcis:
+ if_str: '\'
+ priority: -20 # avant !paragraphes
+ match: ['\{', '\}', '\_', '\-', '\[', '\]', '\|', '\<', '\>', '\\', '\*', '\#', '\+', '\~']
+ replace: ["\x1\x1", "\x1\x2", "\x1\x3", "\x1\x4", "\x1\x5", "\x1\x6", "\x1\x7", "\x1\x8", "\x1\x9", "\x1\x10", "\x1\x11", "\x1\x12", "\x1\x13", "\x1\x14"]
+ type: str
+
ligne-horizontale:
match: "/\n(----+|____+)/S"
replace: "\n\n\n<hr class=\"spip\" />\n\n\n"
if_str: '{{{'
type: str
+gras-vide:
+ # faux raccourcis vides en {{}}
+ # echappes
+ match: '{{}}'
+ replace: "\x1\x1\x1\x1\x1\x2\x1\x2"
+ type: str
+ if_str: '{{'
+
gras:
# raccourcis en {{..}}
# strong
type: str
if_str: '{{'
+italiques-vide:
+ # faux raccourcis vides en {}
+ # echappes
+ match: '{}'
+ replace: "\x1\x1\x1\x2"
+ type: str
+ if_str: '{'
+
italiques:
# raccourcis en {..}
- # strong
+ # i
match: ['{', '}']
replace: ['<i>', '</i>']
type: str
quote:
# raccourci <quote>
match: ['<quote>', '</quote>']
- replace: ['<blockquote class="spip"><p>', '</blockquote><p>']
+ replace: ['<blockquote class="spip"><p>', '</blockquote>']
if_str: '<quote>'
type: str
restaure-tags:
# voir echappe-tags ci-dessus
if_chars: "\x1"
- match: ["\x1\x1", "\x1\x2", "\x1\x3", "\x1\x4"]
- replace: ['{', '}', '_', '-']
+ match: ["\x1\x1", "\x1\x2", "\x1\x3", "\x1\x4", "\x1\x5", "\x1\x6", "\x1\x7", "\x1\x8", "\x1\x9", "\x1\x10", "\x1\x11", "\x1\x12", "\x1\x13", "\x1\x14"]
+ replace: ['{', '}', '_', '-', '[', ']', '|', '<', '>', '\', '*', '#', '+', '~']
type: str
echappe-chevron-solitaire: