mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-12 03:09:38 +03:00
markdown export of a book results in page-title headers being directly concatenated to the previous page's text #2721
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @flan on GitHub (Mar 23, 2022).
Describe the Bug
Observed in BookStack 22.02.3
After creating a book comprised of multiple pages, I went to export it as markdown for use in another rendering pipeline. This mostly worked as expected, but there was an oddity: where one page ends and the next begins, no linebreaks were inserted, so the output looks like this:
The title of the next page, "Discovery", is rendered as a header, but it is quite literally concatenated to the last sentence of the previous page.
I did not test this against books comprised of chapters.
Steps to Reproduce
Export, as markdown, any book comprised of pages.
Expected Behaviour
Rather than what was seen,
I expected to see
with two linebreaks at the point of page-concatenation to produce valid markdown.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
22.02.3
PHP Version
No response
Hosting Environment
Self-hosted, deployed from installer scripts in a Debian Bullseye VM.
@ssddanbrown commented on GitHub (Mar 23, 2022):
Thanks for reporting @flan, Can confirm this. Have assigned to the next feature release.
@ssddanbrown commented on GitHub (Mar 23, 2022):
This has now been addressed in
1c859e94e0and will be part of the next feature release hence will therefore close this.Thanks again for reporting.