From d2b45a845f2927b4a99e62741a071854fda94d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Goetz?= Date: Fri, 31 Jul 2015 12:53:22 +0200 Subject: [PATCH] Pass the original node on generation --- libs/ContentTypes/ContentType.php | 8 +++++++- libs/ContentTypes/Markdown/ContentType.php | 5 +++-- libs/Daux.php | 2 ++ libs/Format/Base/ContentPage.php | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/libs/ContentTypes/ContentType.php b/libs/ContentTypes/ContentType.php index d0c4fb4..3bb8244 100644 --- a/libs/ContentTypes/ContentType.php +++ b/libs/ContentTypes/ContentType.php @@ -1,6 +1,7 @@ converter->convertToHtml($html); + return $this->converter->convertToHtml($raw); } } diff --git a/libs/Daux.php b/libs/Daux.php index a29eb07..180d5a5 100644 --- a/libs/Daux.php +++ b/libs/Daux.php @@ -98,6 +98,8 @@ class Daux ) { throw new Exception('The Docs directory does not exist. Check the path again : ' . $this->docs_path); } + + $this->options['docs_path'] = $this->docs_path; } /** diff --git a/libs/Format/Base/ContentPage.php b/libs/Format/Base/ContentPage.php index 3a57a10..585e756 100644 --- a/libs/Format/Base/ContentPage.php +++ b/libs/Format/Base/ContentPage.php @@ -51,7 +51,7 @@ abstract class ContentPage extends SimplePage protected function convertPage($content) { - return $this->contentType->convert($content); + return $this->contentType->convert($content, $this->getFile()); } protected function generatePage()