File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ public function transform($content)
88 {
99 $ parsedContent = parent ::transform ($ content );
1010
11- $ parsedContent = str_replace ('<p><code> ' , '<pre><code> ' , $ parsedContent );
12- $ parsedContent = str_replace ('</code></p> ' , '</code></pre> ' , $ parsedContent );
11+ // $parsedContent = str_replace('<p><code>', '<pre><code>', $parsedContent);
12+ // $parsedContent = str_replace('</code></p>', '</code></pre>', $parsedContent);
1313
14- $ parsedContent = str_replace ('<pre><code> ' , '<pre class="prettyprint"><code> ' , $ parsedContent );
14+ // $parsedContent = str_replace('<pre><code>', '<pre class="prettyprint"><code>', $parsedContent);
15+ $ parsedContent = str_replace ('<code> ' , '<code class="prettyprint"> ' , $ parsedContent );
1516
1617 return $ parsedContent ;
1718 }
You can’t perform that action at this time.
0 commit comments