spip-tableaux.yaml 407 B

12345678910111213141516171819202122
  1. --- # Syntaxe des raccourcis SPIP, version 0.0.1
  2. #
  3. # Si on nomme une regle, elle devient surchargeable
  4. tableaux-init:
  5. match: "/^\n?[|]/S"
  6. replace: "\n\n|"
  7. tableaux-start:
  8. match: "/\n\n+[|]/S"
  9. replace: "\n\n\n\n|"
  10. tableaux-end:
  11. match: "/[|](\n\n+|\n?$)/S"
  12. replace: "|\n\n\n\n"
  13. tableaux-middle:
  14. match: "/([^|])(\n[|].*[|]\n)([^|])/UmsS"
  15. replace: replace_tableaux
  16. is_callback: Y