Skip to content

Commit

Permalink
fix rendering blade before replacing version number
Browse files Browse the repository at this point in the history
  • Loading branch information
saleem-hadad committed Sep 25, 2018
1 parent 4a69ed2 commit 43e1195
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Models/Documentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ public function get($version, $page, $data = [])

if ($this->files->exists($path)) {
$content = $this->parse($this->files->get($path));
$parsedContent = $this->renderBlade($content, $data);

return $this->replaceLinks($version, $parsedContent);
$parsedContent = $this->replaceLinks($version, $content);

return $this->renderBlade($parsedContent, $data);
}

return null;
Expand Down

0 comments on commit 43e1195

Please sign in to comment.