Changeset 82492 in spip-zone


Ignore:
Timestamp:
May 17, 2014, 10:24:41 AM (5 years ago)
Author:
cedric@…
Message:

bugfix : ~permet aussi de faire un bloc de code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/markdown/branches/v0.12.0/markdown_options.php

    r82490 r82492  
    4040
    4141
    42         if (strpos($texte,"```")!==false){
    43                 //var_dump(preg_match(',^```\w+?\s.*\s```,Uims',$texte,$m));
    44                 //var_dump($m);
    45                 $texte = echappe_html($texte,'md',true,',^```\w+?\s.*\s```,Uims');
     42        if (strpos($texte,"```")!==false OR strpos($texte,"~~~")!==false){
     43                $texte = echappe_html($texte,'md',true,',^(```|~~~)\w*?\s.*\s(\1),Uims');
    4644        }
    4745        if (strpos($texte,"`")!==false){
Note: See TracChangeset for help on using the changeset viewer.