Markdown export leaks HTML tags into exported content #5580

Open
opened 2026-02-05 10:11:00 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @nekromoff on GitHub (Jan 27, 2026).

Describe the Bug

Image

Steps to Reproduce

  1. Go to any book.
  2. Export.
  3. HTML leaking into Markdown.

Strip tags strategy could be probably used after conversion, but before export.

Expected Behaviour

No HTML leaking into MD.

Screenshots or Additional Context

No response

Browser Details

Firefox / Linux - not applicable

Exact BookStack Version

v25.12.1

Originally created by @nekromoff on GitHub (Jan 27, 2026). ### Describe the Bug <img width="804" height="139" alt="Image" src="https://github.com/user-attachments/assets/e9375c02-4ed7-44f1-809c-e00b84ea4c93" /> ### Steps to Reproduce 1. Go to any book. 2. Export. 3. HTML leaking into Markdown. Strip tags strategy could be probably used after conversion, but before export. ### Expected Behaviour No HTML leaking into MD. ### Screenshots or Additional Context _No response_ ### Browser Details Firefox / Linux - not applicable ### Exact BookStack Version v25.12.1
OVERLORD added the 🐛 Bug label 2026-02-05 10:11:00 +03:00
Author
Owner

@nekromoff commented on GitHub (Jan 28, 2026):

More examples:
Image

Image
@nekromoff commented on GitHub (Jan 28, 2026): More examples: <img width="678" height="44" alt="Image" src="https://github.com/user-attachments/assets/f630b668-69a3-4d67-9568-757ae3fa0375" /> <img width="810" height="56" alt="Image" src="https://github.com/user-attachments/assets/9c3602b3-e162-4880-a7e2-6ab72f206509" />
Author
Owner

@nekromoff commented on GitHub (Feb 2, 2026):

Likely this:
https://github.com/thephpleague/html-to-markdown?tab=readme-ov-file#conversion-options

@nekromoff commented on GitHub (Feb 2, 2026): Likely this: https://github.com/thephpleague/html-to-markdown?tab=readme-ov-file#conversion-options
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5580