Skip to content

Commit

Permalink
Remove obsolete code.
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandijck committed Mar 29, 2024
1 parent cc37858 commit eb04c52
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/Docs/DocumentationContentParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ public function parse(string $contents): array

$htmlContents = $this->markdownRenderer->toHtml($document->body());

$htmlContents = Str::of($htmlContents)
->replace('[good]', '<div class="hl-addition">')
->replace('[bad]', '<div class="hl-deletion">')
->replace(['[/good]', '[/bad]'], '</div>')
->toString();

return array_merge(
$document->matter(),
['contents' => new HtmlString($htmlContents)]
Expand Down

0 comments on commit eb04c52

Please sign in to comment.