Skip to content

Uploaded HTML though post API endpoint leaves ugly #5617

@Kornosky

Description

@Kornosky

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

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