Changeset 82519 in spip-zone


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

code mort

File:
1 edited

Legend:

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

    r82518 r82519  
    225225        return code_echappement($md);
    226226}
    227 function markdown_link_repair($r){
    228         $href = extraire_attribut($r[2],"href");
    229         return $r[1]."($href)";
    230 }
    231 function markdown_link_repair2($r){
    232         $href = ((strpos($r[4],"<a")!==false)?extraire_attribut($r[4],"href"):$r[4]);
    233         return $r[1].$r[3]."$href";
    234 }
    235 
    236 
    237 /*
    238  * DEBUG
    239 $apres = Parsedown::instance()->parse($texte);
    240 
    241 if (_request('var_dbmarkdown') AND $apres!==$texte){
    242 
    243 include_once _DIR_PLUGIN_MARKDOWN.'lib/finediff.php';
    244 $diff = new FineDiff($texte, $apres);
    245 var_dump($apres);
    246 echo "<style>
    247 del {
    248 background: none repeat scroll 0 0 #FFDDDD;
    249 color: #FF0000;
    250 text-decoration: none;
    251 }
    252 ins {
    253 background: none repeat scroll 0 0 #DDFFDD;
    254 color: #008000;
    255 text-decoration: none;
    256 }
    257 </style>";
    258 echo "<pre>".$diff->renderDiffToHTML()."</pre>";
    259 die();
    260 }*/
    261 
    262 ?>
Note: See TracChangeset for help on using the changeset viewer.