[Bug Report]: Markdown drafts being converted to HTML #2485

Closed
opened 2026-02-05 04:18:21 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @serenewaffles on GitHub (Nov 12, 2021).

Describe the Bug

Markdown drafts are replaced with HTML when going back to editing.

Steps to Reproduce

  1. Create a new page with markdown editor enabled
  2. Save that page as a draft
  3. Click "Back" in upper left
  4. Click new draft page to go back into editor
  5. Page is now full of HTML

Expected Behaviour

The draft should still be in Markdown.

Screenshots or Additional Context

Saving the page normally (instead of as a draft) does not cause the markdown to be replaced with HTML. Saving a draft of an existing page works as expected.

Exact BookStack Version

21.10.3

PHP Version

No response

Hosting Environment

Linuxserver.io docker container

Originally created by @serenewaffles on GitHub (Nov 12, 2021). ### Describe the Bug Markdown drafts are replaced with HTML when going back to editing. ### Steps to Reproduce 1. Create a new page with markdown editor enabled 2. Save that page as a draft 3. Click "Back" in upper left 4. Click new draft page to go back into editor 5. Page is now full of HTML ### Expected Behaviour The draft should still be in Markdown. ### Screenshots or Additional Context Saving the page normally (instead of as a draft) does not cause the markdown to be replaced with HTML. Saving a draft of an existing page works as expected. ### Exact BookStack Version 21.10.3 ### PHP Version _No response_ ### Hosting Environment Linuxserver.io docker container
OVERLORD added the 🐛 Bug label 2026-02-05 04:18:21 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 14, 2021):

Thanks for reporting @serenewaffles, was able to reproduce on my instance. Have now applied a patch and added a test to help prevent regression. Will be part of the next feature release.

@ssddanbrown commented on GitHub (Nov 14, 2021): Thanks for reporting @serenewaffles, was able to reproduce on my instance. Have now applied a patch and added a test to help prevent regression. Will be part of the next feature release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2485