0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-20 23:19:38 +00:00

Updated markdown export implementation

- Removed ZIP system for now, until the idea can be fleshed out.
- Added testing to cover.
- Upgraded used library.
- Added custom handling for BookStack callouts.
- Added HTML cleanup to better produce output for things like code
  blocks.
This commit is contained in:
Dan Brown 2021-06-22 21:02:18 +01:00
parent 9af636bd48
commit 57ea2e92ec
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
10 changed files with 344 additions and 112 deletions
app/Http/Controllers

View 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');
}
}