Skip to content

Export of Pages with Include Tags as MD files #6086

@Doctor-Macintosh

Description

@Doctor-Macintosh

Describe the Bug

When exporting a page in MD format that only has an include tag like {{@page_id#content_id}} the system does not export the content from the source page, it just exports the include tag, which is totally useless.

Image

When exporting a page in PDF format that same page exports totally fine with all the content from the source page and not only the tag.

Steps to Reproduce

  1. Generate an include page of an existing page
  2. Crate a new page and paste the include tag
  3. Use Export > Markdown File (.md)

Expected Behaviour

Exporting a page with an include tag should always - no matter what file type for the export is used - export the content and not the tag.

Screenshots or Additional Context

We are using BookStack as an SOP system and do create the content in pages hierarchically organized in the way the company is organized:

  • Shelfs = Departments (e.g. Sales)
  • Books = Topics (e.g. Product Line A)
  • Chapters = Frame (e.g. Produce Development)
  • Books = Content (e.g. Product Price Matrix)

But sometimes, e.g. when doing product development with the help of AI we need a basket of different pages tog give the AI all the necessary background information. We prefer MD files over PDF because the file size is way smaller and uses less memory of the AI and takes less time for the AI to process.

Browser Details

Apple Safari 26

Exact BookStack Version

v26.03.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions