mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[GH-ISSUE #23393] Notes: PDF export has black background (dark theme) and loses Markdown formatting #35497
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zacharyshupp on GitHub (Apr 3, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23393
Describe the Bug
When downloading a Note as PDF Document (via the note's Download menu), the generated PDF has two distinct problems:
Steps to Reproduce
Expected: PDF renders with a white background and preserves all Markdown formatting (headings, lists, bold, etc.) as displayed in the note editor.
Actual: PDF renders with a black background (when using dark theme) and the formatting is stripped — bullet/numbered lists appear as plain lines, heading structure is lost.
Screenshots
Note as displayed in OpenWebUI
The note renders correctly in the editor with bullet lists, numbered steps, bold text, and section headings.
Resulting PDF output
The PDF has a black background and all list/heading formatting is lost.
Environment
Additional Context
background-colorwithout a print stylesheet override.@media printCSS rule settingbackground: white; color: blackon the note container, combined with ensuring the fully-rendered HTML (not raw Markdown) is used as the PDF source, should address both issues.@Classic298 commented on GitHub (Apr 3, 2026):
CC @ShirasawaSama i think you tackle this?
@Classic298 commented on GitHub (Apr 3, 2026):
https://github.com/open-webui/open-webui/pull/21364