Skip to content

Commit 5c4a8d3

Browse files
author
Shawn McCool
committed
improve prettyprint
1 parent 66371fe commit 5c4a8d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/domain/Lio/Markdown/Markdown.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)