Browse Source

不替换 <p>

visuddhinanda 2 years ago
parent
commit
b6379b90d5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Api/MdRender.php

+ 2 - 2
app/Http/Api/MdRender.php

@@ -105,8 +105,8 @@ class MdRender{
 
 
         $html = implode('' , $buffer);
         $html = implode('' , $buffer);
 
 
-        $html = str_replace("<p>","<div>",$html);
-        $html = str_replace("</p>","</div>",$html);
+        //$html = str_replace("<p>","<div>",$html);
+        //$html = str_replace("</p>","</div>",$html);
         $html = "<span>".$html."</span>";
         $html = "<span>".$html."</span>";
         return $html;
         return $html;
     }
     }