From 43e1195ac985519747dcb871daa39f40bc749f0a Mon Sep 17 00:00:00 2001 From: Saleem Hadad Date: Wed, 26 Sep 2018 02:36:02 +0800 Subject: [PATCH] fix rendering blade before replacing version number --- src/Models/Documentation.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Models/Documentation.php b/src/Models/Documentation.php index a79186ef..720db5d9 100644 --- a/src/Models/Documentation.php +++ b/src/Models/Documentation.php @@ -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;