Skip to content

fix: CSS style of exported documents (PDF/HTML)#1632

Open
Kiki-bo-zhang wants to merge 1 commit intoBoostIO:masterfrom
Kiki-bo-zhang:fix/css-export-style
Open

fix: CSS style of exported documents (PDF/HTML)#1632
Kiki-bo-zhang wants to merge 1 commit intoBoostIO:masterfrom
Kiki-bo-zhang:fix/css-export-style

Conversation

@Kiki-bo-zhang
Copy link

@Kiki-bo-zhang Kiki-bo-zhang commented Mar 6, 2026

Fix code block contrast issues in BoostHub exports.\n\nChanges:\n1. Fixed fetchCorrectMdThemeName to return 'default' theme instead of null\n2. Added print styles for better code block readability\n\nFixes #726


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


Fix code block contrast issues in BoostHub exports:

1. Fix fetchCorrectMdThemeName to return 'default' theme instead of null
   - When theme was 'default' and appTheme was 'light', it returned null
   - This caused code blocks to have no styling and poor contrast
   - Now returns 'default' to ensure proper CodeMirror CSS is loaded

2. Add print styles for better code block readability
   - Force background color to #f5f5f5 (light gray)
   - Force text color to BoostIO#333 (dark gray)
   - Add padding and border-radius for better appearance
   - Ensure dark theme exports in light mode also have proper contrast

Fixes BoostIO#726
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant