]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/ChapterExportController.php
Reviewed #2393, Removed image guessing and added testing
[bookstack] / app / Http / Controllers / ChapterExportController.php
index bc709771bd2f04e653fbad58c2562cec5632d18f..b934eefce616f68269449c418f2574d7381b4b64 100644 (file)
@@ -63,7 +63,7 @@ class ChapterExportController extends Controller
     {
         // TODO: This should probably export to a zip file.
         $chapter = $this->chapterRepo->getBySlug($bookSlug, $chapterSlug);
-        $chapterText = $this->exportService->chapterToMarkdown($chapter);
+        $chapterText = $this->exportFormatter->chapterToMarkdown($chapter);
         return $this->downloadResponse($chapterText, $chapterSlug . '.md');
     }
 }