BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Uploaded HTML though post API endpoint leaves ugly

Open Kornosky opened this issue 8 months ago • 0 comments

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

Kornosky avatar May 19 '25 16:05 Kornosky