Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. two:wheels fil$ diff -pu ../../plugins/textwheel/wheels/spip/spip.yaml spip/spip.yaml
  2. --- ../../plugins/textwheel/wheels/spip/spip.yaml   2010-09-26 01:44:11.000000000 +0200
  3. +++ spip/spip.yaml  2010-10-23 13:45:32.000000000 +0200
  4. @@ -72,6 +72,12 @@ ligne-horizontale:
  5.    if_chars: "\n"
  6.    priority: -20 # avant !paragraphes
  7.  
  8. +ligne-etoilee:
  9. +  match: "/^ ?[*] ?[*] ?[*] ?$/mS"
  10. +  replace: "\n\n\n<hr class=\"spip etoile\" />\n\n\n"
  11. +  if_chars: "*"
  12. +  priority: -20 # avant !paragraphes
  13. +
  14.  alinea:
  15.    match: "/\n-- */"
  16.    replace: "\n<br />&mdash;&nbsp;"
  17. @@ -85,6 +91,13 @@ puce:
  18.    is_callback: Y
  19.    priority: -20 # avant !paragraphes
  20.  
  21. +puce-etoilee:
  22. +  match: "/^[*] */mS"
  23. +  replace: replace_puce
  24. +  if_str: "\n*"
  25. +  is_callback: Y
  26. +  priority: -20 # avant !paragraphes
  27. +
  28.  br:
  29.    match: "/\n_ +/S"
  30.    replace: "\n<br />"
  31. @@ -106,6 +119,42 @@ intertitres:
  32.    if_str: '{{{'
  33.    type: str
  34.  
  35. +niveauh1:
  36. +    # = xxxx
  37. +    match: '/^= +(.+)(:? =+)?$/m'
  38. +    replace: "\n\n<h1>$1</h1>\n\n"
  39. +    if_str: "\n="
  40. +
  41. +niveauh2:
  42. +    # = xxxx
  43. +    match: '/^== +(.+)(:? =+)?$/m'
  44. +    replace: "\n\n<h2>$1</h2>\n\n"
  45. +    if_str: "\n=="
  46. +
  47. +niveauh3:
  48. +    # = xxxx
  49. +    match: '/^=== +(.+)(:? =+)?$/m'
  50. +    replace: "\n\n<h3>$1</h3>\n\n"
  51. +    if_str: "\n==="
  52. +
  53. +niveauh4:
  54. +    # = xxxx
  55. +    match: '/^==== +(.+)(:? =+)?$/m'
  56. +    replace: "\n\n<h4>$1</h4>\n\n"
  57. +    if_str: "\n===="
  58. +
  59. +niveauh5:
  60. +    # = xxxx
  61. +    match: '/^===== +(.+)(:? =+)?$/m'
  62. +    replace: "\n\n<h5>$1</h5>\n\n"
  63. +    if_str: "\n====="
  64. +
  65. +niveauh6:
  66. +    # = xxxx
  67. +    match: '/^====== +(.+)(:? =+)?$/m'
  68. +    replace: "\n\n<h6>$1</h6>\n\n"
  69. +    if_str: "\n======"
  70. +
  71.  gras:
  72.    # raccourcis en {{..}}
  73.    # strong
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement