Yes, you can configure KOReader to start each new header on a new page for Markdown files! However, the exact method depends on which rendering engine you're using. Let me give you the complete solution:
Method 1: Using Style Tweaks (Most Reliable)
Step 1: Open your Markdown file
Open your .md file in KOReader.
Step 2: Access the Style Menu
- Tap the top center of the screen to bring up the menu
- Look for the Aa icon (Style menu) in the top toolbar
- Tap it to open style settings
Step 3: Navigate to Style Tweaks
- In the Style menu, find and tap "Style tweaks"
- Look for "Page breaks" section
Step 4: Enable Page Breaks for Headers
- Find options like:
- "Page break before h1"
- "Page break before h2"
- "Page break before h3"
- Enable the ones you want (typically h1 and h2 for main sections)
Method 2: Custom CSS (For Advanced Control)
If the above doesn't work or you want more control:
Step 1: Create a Custom CSS
- In the Style menu, tap "Manage styles"
- Tap "User style tweaks" or "Custom CSS"
- Add this CSS code:
h1 { page-break-before: always; }
h2 { page-break-before: always; }
h3 { page-break-before: always; }
Step 2: Apply the Custom Style
- Make sure your custom style is enabled
- Return to your book
Important Notes:
-
Rendering Engine Matters: KOReader uses different engines:
- CREngine (default for Markdown): Supports page breaks well
- MuPDF: May not support page breaks for Markdown
-
Check Your Engine:
- Tap top center → Gear icon → "Document" tab
- Look for "Rendering engine"
- For Markdown with page breaks, use CREngine
-
Refresh After Changes:
- After changing settings, you may need to:
- Close and reopen the document
- Or tap Menu → "Reflow" → "Re-render document"
If you're still not seeing page breaks, let me know which rendering engine you're using and I can provide more specific troubleshooting!