Skip to content

Commit a86823c

Browse files
Apply color to missing functions
1 parent 55491a3 commit a86823c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build/src/ApiGenerator/Application/ApiMarkdownGenerator.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ private function buildFunctionSection(PhelFunction $fn): array
6969
$lines[] = $deprecation;
7070
}
7171

72+
if ($fn->name === 'conj') {
73+
$a = '';
74+
}
75+
7276
// Handle exceptional documentation blocks
77+
$input = preg_replace('/```phel/', '```clojure', $fn->doc);
7378
if ($fn->name === 'with-mock-wrapper' || $fn->name === 'with-mocks') {
74-
$input = preg_replace('/```phel/', '```clojure', $fn->doc, 1);
7579
$input = preg_replace('/^[ \t]+/m', '', $input);
7680
$input = preg_replace('/(?<!\n)\n(```phel)/', "\n\n$1", $input);
77-
} else {
78-
$input = $fn->doc;
7981
}
8082

8183
$lines[] = $input;

0 commit comments

Comments
 (0)