Uploaded HTML though post API endpoint leaves ugly #5286

Open
opened 2026-02-05 09:54:14 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @Kornosky on GitHub (May 19, 2025).

Describe the Bug

Moving over a database from Notion, and the best way to preserve the styling was by exporting with HTML. But we ran into an issue where uploading HTML gives you an ugly page-preview ONLY until you manually go in -> Edit page -> Save and then it looks good. No need to make any actual edits though.

Steps to Reproduce

  1. Upload HTML via bookstack POST API
  2. View page preview from book-view
  3. Edit page and save
  4. See preview from book-view look a lot cleaner

Expected Behaviour

To only grab div text at least, instead it's showing the html code which isn't useful for end-users. Expected behavior would be for it to be how it looks when manually saving the page via the GUI.

Screenshots or Additional Context

Image

Browser Details

No response

Exact BookStack Version

v25.02.2

Originally created by @Kornosky on GitHub (May 19, 2025). ### Describe the Bug Moving over a database from Notion, and the best way to preserve the styling was by exporting with HTML. But we ran into an issue where uploading HTML gives you an ugly page-preview ONLY until you manually go in -> Edit page -> Save and then it looks good. No need to make any actual edits though. ### Steps to Reproduce 1. Upload HTML via bookstack POST API 2. View page preview from book-view 3. Edit page and save 4. See preview from book-view look a lot cleaner ### Expected Behaviour To only grab div text at least, instead it's showing the html code which isn't useful for end-users. Expected behavior would be for it to be how it looks when manually saving the page via the GUI. ### Screenshots or Additional Context ![Image](https://github.com/user-attachments/assets/ed3da027-66be-4517-9524-481346de6c73) ### Browser Details _No response_ ### Exact BookStack Version v25.02.2
OVERLORD added the 🐛 Bug label 2026-02-05 09:54:14 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5286