Skip to content

Commit ee71ce5

Browse files
authored
Merge pull request #179 from phel-lang/apply-color-missing-signatures
Apply color to missing functions
2 parents 55491a3 + 3e109a5 commit ee71ce5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build/src/ApiGenerator/Application/ApiMarkdownGenerator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@ private function buildFunctionSection(PhelFunction $fn): array
7070
}
7171

7272
// Handle exceptional documentation blocks
73+
$input = preg_replace('/```phel/', '```clojure', $fn->doc);
7374
if ($fn->name === 'with-mock-wrapper' || $fn->name === 'with-mocks') {
74-
$input = preg_replace('/```phel/', '```clojure', $fn->doc, 1);
7575
$input = preg_replace('/^[ \t]+/m', '', $input);
7676
$input = preg_replace('/(?<!\n)\n(```phel)/', "\n\n$1", $input);
77-
} else {
78-
$input = $fn->doc;
7977
}
8078

8179
$lines[] = $input;

0 commit comments

Comments
 (0)