Skip to content

Commit 825436f

Browse files
committed
Fixed code blocks not being recognized other than PHP.
1 parent 8f7ef0f commit 825436f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function renderCode(string $code, string $language) : string
131131
$geshi->set_strings_highlighting(true);
132132
$high = $geshi->parse_code();
133133

134-
$high = str_replace('<pre class="php geshifilter">', '', $high);
134+
$high = str_replace('<pre class="'.$language.' geshifilter">', '', $high);
135135
$high = str_replace('</pre>', '', $high);
136136

137137
return $high;

0 commit comments

Comments
 (0)