BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.43k stars 1.94k forks source link

Render includes in markdown exports #5297

Open JasonGehring opened 3 weeks ago

JasonGehring commented 3 weeks ago

Describe the Bug

I am not sure if this is intended behavior, but using the API endpoint or the Export as Markdown function on a Page, will not include the content of an included page. It will come back as {{@123}}

Steps to Reproduce

  1. Include a page with the {{@123}} functionality
  2. Export the page as PDF to confirm the content is Included correctly
  3. Export as Markdown to find the {{@123}} include tag

Expected Behaviour

I would have expected the Markdown to export the included Page, like pdf or plaintext do. Or at least to have the option to include it.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v24.10

ssddanbrown commented 3 weeks ago

Hi @JasonGehring, Yeah, includes won't be handled with markdown, as no parts of the system consider includes when it comes to markdown content, so would need specific added handling.

I've updated this to an export feature request rather than a bug since it's more of a bug relative to expectations rather than a bug in existing functionality.